Image-Text-to-Text
Transformers
Safetensors
English
qwen2_5_vl
viewsuite
view-planning
active-perception
camera-control
embodied-ai
vision-language-model
reinforcement-learning
conversational
text-generation-inference
Instructions to use MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet") model = AutoModelForMultimodalLM.from_pretrained("MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet
- SGLang
How to use MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet with Docker Model Runner:
docker model run hf.co/MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet
Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- LICENSE +202 -0
- MANIFEST.json +60 -0
- NOTICE +8 -0
- README.md +131 -0
- SHA256SUMS +10 -0
- chat_template.jinja +7 -0
- config.json +108 -0
- generation_config.json +11 -0
- model.safetensors +3 -0
- processor_config.json +61 -0
- tokenizer.json +3 -0
- tokenizer_config.json +17 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
MANIFEST.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"package": "VGD-Qwen2.5-VL-7B-ScanNet",
|
| 3 |
+
"generated_utc": "2026-11-20T11:13:19Z",
|
| 4 |
+
"files": [
|
| 5 |
+
{
|
| 6 |
+
"path": "LICENSE",
|
| 7 |
+
"bytes": 11358,
|
| 8 |
+
"sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"path": "NOTICE",
|
| 12 |
+
"bytes": 509,
|
| 13 |
+
"sha256": "b7f7076e360aa10ef2847202dfa7d556487a4caec10cb53ae1b7e472f73e80c9"
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"path": "README.md",
|
| 17 |
+
"bytes": 8610,
|
| 18 |
+
"sha256": "8e411ac8729d5b784c84ef9d29fc0681d8c547fbade3dac880228cda663afd82"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"path": "chat_template.jinja",
|
| 22 |
+
"bytes": 1017,
|
| 23 |
+
"sha256": "a0bc6f6fc7a29a80017a433e8f03a1cc1236e838a944a2d034295a60c4f2fddb"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"path": "config.json",
|
| 27 |
+
"bytes": 2566,
|
| 28 |
+
"sha256": "abd219fb7c9a6ec3e78c1c334d0691f3a522fcdc7d86df1be0326949d591e69d"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"path": "generation_config.json",
|
| 32 |
+
"bytes": 187,
|
| 33 |
+
"sha256": "80a2a196300d8ee59c3759d424a30cec4f2e9ab8d126881b5f856b706ab220e6"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"path": "model.safetensors",
|
| 37 |
+
"bytes": 33168748432,
|
| 38 |
+
"sha256": "69c522eee127dc142b77750cb7e803dcf4d6f6a7cb34832b3527461fc97d035c"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"path": "processor_config.json",
|
| 42 |
+
"bytes": 1330,
|
| 43 |
+
"sha256": "1928ac3837a6e791fc368608aa1bc0d6b8dabf2f6fdfc5fa52e16531af2a16d5"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"path": "tokenizer.json",
|
| 47 |
+
"bytes": 11422166,
|
| 48 |
+
"sha256": "6b4360dd6a184650ffc48056c2569bc603f896c5adfe94b10f1c79f809638aa5"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"path": "tokenizer_config.json",
|
| 52 |
+
"bytes": 447,
|
| 53 |
+
"sha256": "10545495962f944c18cefbe79c4c6e1542589a42e3285acdd92313358e72117d"
|
| 54 |
+
}
|
| 55 |
+
],
|
| 56 |
+
"totals": {
|
| 57 |
+
"files": 10,
|
| 58 |
+
"bytes": 33180196622
|
| 59 |
+
}
|
| 60 |
+
}
|
NOTICE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
VGD-Qwen2.5-VL-7B-ScanNet
|
| 2 |
+
|
| 3 |
+
This model is a modified version of Qwen2.5-VL-7B-Instruct (https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct,
|
| 4 |
+
revision cc594898137f460bfe9f0759e9844b3ce807cfb5), which is licensed under the Apache License, Version 2.0.
|
| 5 |
+
|
| 6 |
+
Modifications: all weights were fine-tuned with View Graph Distillation (supervised fine-tuning and PPO
|
| 7 |
+
reinforcement learning) for camera-view planning. The tokenizer, processor and chat template are those of the base
|
| 8 |
+
model as re-saved by Transformers 5.8.1.
|
README.md
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen2.5-VL-7B-Instruct
|
| 4 |
+
base_model_relation: finetune
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: image-text-to-text
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
datasets:
|
| 10 |
+
- MLL-Lab/ViewSuite-ScanNet
|
| 11 |
+
tags:
|
| 12 |
+
- viewsuite
|
| 13 |
+
- view-planning
|
| 14 |
+
- active-perception
|
| 15 |
+
- camera-control
|
| 16 |
+
- embodied-ai
|
| 17 |
+
- vision-language-model
|
| 18 |
+
- reinforcement-learning
|
| 19 |
+
- qwen2_5_vl
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# VGD-Qwen2.5-VL-7B-ScanNet
|
| 23 |
+
|
| 24 |
+
Qwen2.5-VL-7B-Instruct trained with **View Graph Distillation (VGD)** for camera control in ViewSuite (ScanNet). Given a target view, a start view and a top-down view of a scene, the model moves a camera with discrete actions, sees the new view after every turn, and finally submits the 6-DoF pose of the target view (Interactive View Planning, IVP). The model was trained and evaluated for the paper [*Planning with the Views*](https://arxiv.org/abs/2605.29563).
|
| 25 |
+
|
| 26 |
+
## Results
|
| 27 |
+
|
| 28 |
+
These results come from the updated experiments (Habitat-Sim renders, horizontal-plane action space) and differ from the numbers in arXiv v1.
|
| 29 |
+
|
| 30 |
+
Test split of ViewSuite (ScanNet), 530 instances per task, success rate (%). Short / Long: unified view distance between the start and target views d < 3 / d >= 3 (187 / 343 instances).
|
| 31 |
+
|
| 32 |
+
| Model | IVP Short | IVP Long | IVP All | IVP No-Submit | P2V | V2P |
|
| 33 |
+
|---|---|---|---|---|---|---|
|
| 34 |
+
| Qwen2.5-VL-7B-Instruct (base) | 1.1 | 0.0 | 0.4 | 4.5 | 28.5 | 27.9 |
|
| 35 |
+
| **This model** | 66.3 | 50.1 | **55.8** | 67.4 | 27.0 | 33.0 |
|
| 36 |
+
|
| 37 |
+
- **IVP**: success when the submitted pose is within the position and rotation thresholds of the target. **No-Submit** credits an episode once an observed camera pose is within the thresholds, whatever is submitted.
|
| 38 |
+
- **P2V** (Path-to-View) and **V2P** (View-to-Path) are four-way multiple-choice questions about one action sequence (chance 25%).
|
| 39 |
+
- Gemini 3.1 Pro, the strongest zero-shot model evaluated in the same setting, reaches 24.0% IVP.
|
| 40 |
+
- With 3D Gaussian-splatting renders of the same test scenes (SceneSplat-7K reconstructions) instead of mesh renders, IVP All is 46.6%.
|
| 41 |
+
- Every request used temperature 0, top-p 1, repetition penalty 1.0 and at most 1,024 new tokens; the checkpoint was served with SGLang 0.5.13 in bfloat16 (PyTorch 2.11, Transformers 5.8.1). Batched serving is not bit-deterministic even at temperature 0, so a re-run can differ slightly.
|
| 42 |
+
|
| 43 |
+
## Task and environment
|
| 44 |
+
|
| 45 |
+
ScanNet indoor scenes, rendered from the ScanNet meshes with Habitat-Sim at 256 x 256 pixels. Ten camera actions: move forward / backward / left / right in the horizontal plane (0.5 m), move up / down along the world vertical axis (0.5 m), turn left / right (30 deg yaw) and look up / down (30 deg pitch, limited to +-60 deg); no roll. Up to four actions per turn, ten turns including the final answer. Success: submitted pose within 0.5 m and 30 deg of the target.
|
| 46 |
+
|
| 47 |
+
The system prompt, the observation messages and the action syntax are produced by the environment code (https://github.com/mll-lab-nu/viewagent). Replies have the form `<think>...</think><action>a1|a2|...</action>`, and the final turn calls `answer(tx, ty, tz, rx, ry, rz)` with the camera-to-world position in meters and Euler XYZ angles in degrees. Complete example conversations of this model are in the evaluation trajectories dataset (MLL-Lab/ViewSuite-Eval-Trajectories).
|
| 48 |
+
|
| 49 |
+
## How to use
|
| 50 |
+
|
| 51 |
+
Evaluation with the released code (one SGLang server per GPU; it needs the corpus with its images and the environment's render service, see the code release and the dataset card):
|
| 52 |
+
|
| 53 |
+
```bash
|
| 54 |
+
hf download MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet --local-dir models/VGD-Qwen2.5-VL-7B-ScanNet
|
| 55 |
+
SCANNET_CORPUS=<corpus dir> bash examples/eval_checkpoint/run.sh models/VGD-Qwen2.5-VL-7B-ScanNet --corpus scannet
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
Serving (OpenAI-compatible API) as in our evaluation:
|
| 59 |
+
|
| 60 |
+
```bash
|
| 61 |
+
python -m sglang.launch_server --model-path models/VGD-Qwen2.5-VL-7B-ScanNet --dtype bfloat16 \
|
| 62 |
+
--context-length 32768 --port 30000
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
We evaluated with SGLang only; other servers (for example vLLM) have not been tested with this checkpoint.
|
| 66 |
+
|
| 67 |
+
Transformers 5 (tested with 5.8.1, which wrote the configuration; Transformers 4.x does not read the rotary-embedding settings stored under `rope_parameters`):
|
| 68 |
+
|
| 69 |
+
```python
|
| 70 |
+
import torch
|
| 71 |
+
from transformers import AutoProcessor, Qwen2_5_VLForConditionalGeneration
|
| 72 |
+
|
| 73 |
+
model_id = "MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet"
|
| 74 |
+
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
|
| 75 |
+
processor = AutoProcessor.from_pretrained(model_id)
|
| 76 |
+
|
| 77 |
+
# One turn: a system prompt and a user message with the images, as produced by the environment.
|
| 78 |
+
messages = [
|
| 79 |
+
{"role": "system", "content": SYSTEM_PROMPT},
|
| 80 |
+
{"role": "user", "content": [{"type": "image", "image": target_view},
|
| 81 |
+
{"type": "image", "image": initial_view},
|
| 82 |
+
{"type": "image", "image": top_down_view},
|
| 83 |
+
{"type": "text", "text": FIRST_OBSERVATION_TEXT}]},
|
| 84 |
+
]
|
| 85 |
+
inputs = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=True,
|
| 86 |
+
return_dict=True, return_tensors="pt").to(model.device)
|
| 87 |
+
out = model.generate(**inputs, max_new_tokens=1024, do_sample=False, repetition_penalty=1.0)
|
| 88 |
+
print(processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
In the environment the three images are placed where the prompt text has `<image>`; use the code release for the exact message construction. `generation_config.json` is the one saved with the checkpoint; pass the decoding settings above explicitly.
|
| 92 |
+
|
| 93 |
+
## Training
|
| 94 |
+
|
| 95 |
+
- Base model: [Qwen/Qwen2.5-VL-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct) (revision `cc594898`).
|
| 96 |
+
- Data: the ViewSuite ScanNet training split: 3,419 instances over 193 scenes; checkpoint selection on 100 of the 378 dev instances.
|
| 97 |
+
- View Graph Distillation, three rounds. In each round the current policy explores the training scenes with PPO (60 steps of 128 episodes, 7,680 recorded episodes); the visited views and the actions between them are merged into a view graph that grows over the rounds; shortest-path plans, view-difference estimates and multiple-choice questions are distilled from the graph; and the model is fine-tuned on them (3 epochs).
|
| 98 |
+
- Final RL stage: PPO for up to 1,000 steps, validated every 20 steps on 100 dev instances, stopped after 200 steps without improvement. This checkpoint is step 400 (dev success 0.57); training stopped after step 600.
|
| 99 |
+
- Hardware: 1 node with 8 H200 GPUs (about 36 hours). One training run per configuration.
|
| 100 |
+
|
| 101 |
+
## Files
|
| 102 |
+
|
| 103 |
+
- `model.safetensors`: the evaluated weights, unchanged: one file, 33.2 GB, 729 tensors, 8,292,166,656 parameters, stored in **float32** (the training export). The evaluation served them in bfloat16 (`--dtype bfloat16`); `config.json` declares `dtype: bfloat16`, so `dtype="auto"` also loads bfloat16.
|
| 104 |
+
- `config.json`, `generation_config.json`, `tokenizer.json`, `tokenizer_config.json`, `processor_config.json`, `chat_template.jinja`: as saved with the checkpoint (in `config.json` a local file path stored under `text_config._name_or_path` was removed; it has no effect on loading).
|
| 105 |
+
- `MANIFEST.json` and `SHA256SUMS`: size and SHA-256 of every file.
|
| 106 |
+
|
| 107 |
+
## Limitations
|
| 108 |
+
|
| 109 |
+
- Trained for one rendering style, one camera model and one discrete action space; other renderers, fields of view or action sets reduce success.
|
| 110 |
+
- The model plans camera viewpoints; it was not trained or tested for physical navigation, collision avoidance or robot control.
|
| 111 |
+
- Training targets IVP. The single-step multiple-choice tasks do not improve consistently: P2V 27.0 vs 28.5 for the base model, V2P 33.0 vs 27.9.
|
| 112 |
+
- One training run per configuration; differences of a few points between models are within run-to-run variation.
|
| 113 |
+
|
| 114 |
+
## Training data and license
|
| 115 |
+
|
| 116 |
+
The training views are renders of ScanNet scenes. ScanNet is available under the ScanNet Terms of Use (non-commercial research and education); the renders are not part of this repository.
|
| 117 |
+
|
| 118 |
+
Released under the Apache License 2.0 (`LICENSE`), the license of the base model [Qwen2.5-VL-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct). The weights are a modified (fine-tuned) version of the base model; see `NOTICE`.
|
| 119 |
+
|
| 120 |
+
## Citation
|
| 121 |
+
|
| 122 |
+
```bibtex
|
| 123 |
+
@article{wang2026viewagent,
|
| 124 |
+
title = {Planning with the Views},
|
| 125 |
+
author = {Wang, Kangrui and Li, Linjie and Yang, Zhengyuan and Chen, Shiqi and
|
| 126 |
+
Wang, Zihan and Fei-Fei, Li and Wu, Jiajun and Guibas, Leonidas and
|
| 127 |
+
Wang, Lijuan and Li, Manling},
|
| 128 |
+
journal = {arXiv preprint arXiv:2605.29563},
|
| 129 |
+
year = {2026}
|
| 130 |
+
}
|
| 131 |
+
```
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
|
| 2 |
+
b7f7076e360aa10ef2847202dfa7d556487a4caec10cb53ae1b7e472f73e80c9 NOTICE
|
| 3 |
+
8e411ac8729d5b784c84ef9d29fc0681d8c547fbade3dac880228cda663afd82 README.md
|
| 4 |
+
a0bc6f6fc7a29a80017a433e8f03a1cc1236e838a944a2d034295a60c4f2fddb chat_template.jinja
|
| 5 |
+
abd219fb7c9a6ec3e78c1c334d0691f3a522fcdc7d86df1be0326949d591e69d config.json
|
| 6 |
+
80a2a196300d8ee59c3759d424a30cec4f2e9ab8d126881b5f856b706ab220e6 generation_config.json
|
| 7 |
+
69c522eee127dc142b77750cb7e803dcf4d6f6a7cb34832b3527461fc97d035c model.safetensors
|
| 8 |
+
1928ac3837a6e791fc368608aa1bc0d6b8dabf2f6fdfc5fa52e16531af2a16d5 processor_config.json
|
| 9 |
+
6b4360dd6a184650ffc48056c2569bc603f896c5adfe94b10f1c79f809638aa5 tokenizer.json
|
| 10 |
+
10545495962f944c18cefbe79c4c6e1542589a42e3285acdd92313358e72117d tokenizer_config.json
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system
|
| 2 |
+
You are a helpful assistant.<|im_end|>
|
| 3 |
+
{% endif %}<|im_start|>{{ message['role'] }}
|
| 4 |
+
{% if message['content'] is string %}{{ message['content'] }}<|im_end|>
|
| 5 |
+
{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>
|
| 6 |
+
{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
|
| 7 |
+
{% endif %}
|
config.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"bos_token_id": null,
|
| 6 |
+
"dtype": "bfloat16",
|
| 7 |
+
"eos_token_id": 151645,
|
| 8 |
+
"image_token_id": 151655,
|
| 9 |
+
"model_type": "qwen2_5_vl",
|
| 10 |
+
"pad_token_id": 151643,
|
| 11 |
+
"text_config": {
|
| 12 |
+
"architectures": [
|
| 13 |
+
"Qwen2_5_VLForConditionalGeneration"
|
| 14 |
+
],
|
| 15 |
+
"attention_dropout": 0.0,
|
| 16 |
+
"bos_token_id": 151643,
|
| 17 |
+
"dtype": "bfloat16",
|
| 18 |
+
"eos_token_id": 151645,
|
| 19 |
+
"hidden_act": "silu",
|
| 20 |
+
"hidden_size": 3584,
|
| 21 |
+
"initializer_range": 0.02,
|
| 22 |
+
"intermediate_size": 18944,
|
| 23 |
+
"layer_types": [
|
| 24 |
+
"full_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"full_attention",
|
| 38 |
+
"full_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"full_attention",
|
| 41 |
+
"full_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"full_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"full_attention",
|
| 50 |
+
"full_attention",
|
| 51 |
+
"full_attention"
|
| 52 |
+
],
|
| 53 |
+
"max_position_embeddings": 128000,
|
| 54 |
+
"max_window_layers": 28,
|
| 55 |
+
"model_type": "qwen2_5_vl_text",
|
| 56 |
+
"num_attention_heads": 28,
|
| 57 |
+
"num_hidden_layers": 28,
|
| 58 |
+
"num_key_value_heads": 4,
|
| 59 |
+
"pad_token_id": 151643,
|
| 60 |
+
"rms_norm_eps": 1e-06,
|
| 61 |
+
"rope_parameters": {
|
| 62 |
+
"mrope_section": [
|
| 63 |
+
16,
|
| 64 |
+
24,
|
| 65 |
+
24
|
| 66 |
+
],
|
| 67 |
+
"rope_theta": 1000000.0,
|
| 68 |
+
"rope_type": "default",
|
| 69 |
+
"type": "default"
|
| 70 |
+
},
|
| 71 |
+
"sliding_window": null,
|
| 72 |
+
"use_cache": false,
|
| 73 |
+
"use_sliding_window": false,
|
| 74 |
+
"vision_token_id": 151654,
|
| 75 |
+
"vocab_size": 152064
|
| 76 |
+
},
|
| 77 |
+
"tie_word_embeddings": false,
|
| 78 |
+
"transformers_version": "5.8.1",
|
| 79 |
+
"video_token_id": 151656,
|
| 80 |
+
"vision_config": {
|
| 81 |
+
"depth": 32,
|
| 82 |
+
"dtype": "bfloat16",
|
| 83 |
+
"fullatt_block_indexes": [
|
| 84 |
+
7,
|
| 85 |
+
15,
|
| 86 |
+
23,
|
| 87 |
+
31
|
| 88 |
+
],
|
| 89 |
+
"hidden_act": "silu",
|
| 90 |
+
"hidden_size": 1280,
|
| 91 |
+
"in_channels": 3,
|
| 92 |
+
"in_chans": 3,
|
| 93 |
+
"initializer_range": 0.02,
|
| 94 |
+
"intermediate_size": 3420,
|
| 95 |
+
"model_type": "qwen2_5_vl_vision",
|
| 96 |
+
"num_heads": 16,
|
| 97 |
+
"out_hidden_size": 3584,
|
| 98 |
+
"patch_size": 14,
|
| 99 |
+
"spatial_merge_size": 2,
|
| 100 |
+
"spatial_patch_size": 14,
|
| 101 |
+
"temporal_patch_size": 2,
|
| 102 |
+
"tokens_per_second": 2,
|
| 103 |
+
"window_size": 112
|
| 104 |
+
},
|
| 105 |
+
"vision_end_token_id": 151653,
|
| 106 |
+
"vision_start_token_id": 151652,
|
| 107 |
+
"vision_token_id": 151654
|
| 108 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_sample": true,
|
| 3 |
+
"eos_token_id": [
|
| 4 |
+
151645,
|
| 5 |
+
151643
|
| 6 |
+
],
|
| 7 |
+
"pad_token_id": 151643,
|
| 8 |
+
"repetition_penalty": 1.05,
|
| 9 |
+
"temperature": 1e-06,
|
| 10 |
+
"transformers_version": "5.8.1"
|
| 11 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69c522eee127dc142b77750cb7e803dcf4d6f6a7cb34832b3527461fc97d035c
|
| 3 |
+
size 33168748432
|
processor_config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_convert_rgb": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.48145466,
|
| 9 |
+
0.4578275,
|
| 10 |
+
0.40821073
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.26862954,
|
| 15 |
+
0.26130258,
|
| 16 |
+
0.27577711
|
| 17 |
+
],
|
| 18 |
+
"merge_size": 2,
|
| 19 |
+
"patch_size": 14,
|
| 20 |
+
"resample": 3,
|
| 21 |
+
"rescale_factor": 0.00392156862745098,
|
| 22 |
+
"size": {
|
| 23 |
+
"longest_edge": 12845056,
|
| 24 |
+
"shortest_edge": 3136
|
| 25 |
+
},
|
| 26 |
+
"temporal_patch_size": 2
|
| 27 |
+
},
|
| 28 |
+
"processor_class": "Qwen2_5_VLProcessor",
|
| 29 |
+
"video_processor": {
|
| 30 |
+
"data_format": "channels_first",
|
| 31 |
+
"default_to_square": true,
|
| 32 |
+
"do_convert_rgb": true,
|
| 33 |
+
"do_normalize": true,
|
| 34 |
+
"do_rescale": true,
|
| 35 |
+
"do_resize": true,
|
| 36 |
+
"do_sample_frames": false,
|
| 37 |
+
"image_mean": [
|
| 38 |
+
0.48145466,
|
| 39 |
+
0.4578275,
|
| 40 |
+
0.40821073
|
| 41 |
+
],
|
| 42 |
+
"image_std": [
|
| 43 |
+
0.26862954,
|
| 44 |
+
0.26130258,
|
| 45 |
+
0.27577711
|
| 46 |
+
],
|
| 47 |
+
"max_frames": 768,
|
| 48 |
+
"merge_size": 2,
|
| 49 |
+
"min_frames": 4,
|
| 50 |
+
"patch_size": 14,
|
| 51 |
+
"resample": 3,
|
| 52 |
+
"rescale_factor": 0.00392156862745098,
|
| 53 |
+
"return_metadata": false,
|
| 54 |
+
"size": {
|
| 55 |
+
"longest_edge": 12845056,
|
| 56 |
+
"shortest_edge": 3136
|
| 57 |
+
},
|
| 58 |
+
"temporal_patch_size": 2,
|
| 59 |
+
"video_processor_type": "Qwen2VLVideoProcessor"
|
| 60 |
+
}
|
| 61 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b4360dd6a184650ffc48056c2569bc603f896c5adfe94b10f1c79f809638aa5
|
| 3 |
+
size 11422166
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": null,
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"is_local": true,
|
| 9 |
+
"local_files_only": true,
|
| 10 |
+
"model_max_length": 131072,
|
| 11 |
+
"pad_token": "<|endoftext|>",
|
| 12 |
+
"padding_side": "right",
|
| 13 |
+
"processor_class": "Qwen2_5_VLProcessor",
|
| 14 |
+
"split_special_tokens": false,
|
| 15 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 16 |
+
"unk_token": null
|
| 17 |
+
}
|