JamesK2W commited on
Commit
38c539c
·
verified ·
1 Parent(s): eb473e1

Add files using upload-large-folder tool

Browse files
.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,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Qwen LICENSE AGREEMENT
2
+
3
+ Qwen LICENSE AGREEMENT Release Date: September 19, 2024
4
+
5
+ By clicking to agree or by using or distributing any portion or element of the Qwen Materials, you will be deemed to have recognized and accepted the content of this Agreement, which is effective immediately.
6
+
7
+ 1. Definitions
8
+ a. This Qwen LICENSE AGREEMENT (this "Agreement") shall mean the terms and conditions for use, reproduction, distribution and modification of the Materials as defined by this Agreement.
9
+ b. "We" (or "Us") shall mean Alibaba Cloud.
10
+ c. "You" (or "Your") shall mean a natural person or legal entity exercising the rights granted by this Agreement and/or using the Materials for any purpose and in any field of use.
11
+ d. "Third Parties" shall mean individuals or legal entities that are not under common control with us or you.
12
+ e. "Qwen" shall mean the large language models, and software and algorithms, consisting of trained model weights, parameters (including optimizer states), machine-learning model code, inference-enabling code, training-enabling code, fine-tuning enabling code and other elements of the foregoing distributed by us.
13
+ f. "Materials" shall mean, collectively, Alibaba Cloud's proprietary Qwen and Documentation (and any portion thereof) made available under this Agreement.
14
+ g. "Source" form shall mean the preferred form for making modifications, including but not limited to model source code, documentation source, and configuration files.
15
+ h. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
16
+
17
+ 2. Grant of Rights
18
+ You are granted a non-exclusive, worldwide, non-transferable and royalty-free limited license under Alibaba Cloud's intellectual property or other rights owned by us embodied in the Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the Materials.
19
+
20
+ 3. Redistribution
21
+ You may distribute copies or make the Materials, or derivative works thereof, available as part of a product or service that contains any of them, with or without modifications, and in Source or Object form, provided that you meet the following conditions:
22
+ a. You shall give any other recipients of the Materials or derivative works a copy of this Agreement;
23
+ b. You shall cause any modified files to carry prominent notices stating that you changed the files;
24
+ c. You shall retain in all copies of the Materials that you distribute the following attribution notices within a "Notice" text file distributed as a part of such copies: "Qwen is licensed under the Qwen LICENSE AGREEMENT, Copyright (c) Alibaba Cloud. All Rights Reserved."; and
25
+ d. You may add your own copyright statement to your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of your modifications, or for any such derivative works as a whole, provided your use, reproduction, and distribution of the work otherwise complies with the terms and conditions of this Agreement.
26
+
27
+ 4. Restrictions
28
+ If you are commercially using the Materials, and your product or service has more than 100 million monthly active users, you shall request a license from us. You cannot exercise your rights under this Agreement without our express authorization.
29
+
30
+ 5. Rules of use
31
+ a. The Materials may be subject to export controls or restrictions in China, the United States or other countries or regions. You shall comply with applicable laws and regulations in your use of the Materials.
32
+ b. If you use the Materials or any outputs or results therefrom to create, train, fine-tune, or improve an AI model that is distributed or made available, you shall prominently display “Built with Qwen” or “Improved using Qwen” in the related product documentation.
33
+
34
+ 6. Intellectual Property
35
+ a. We retain ownership of all intellectual property rights in and to the Materials and derivatives made by or for us. Conditioned upon compliance with the terms and conditions of this Agreement, with respect to any derivative works and modifications of the Materials that are made by you, you are and will be the owner of such derivative works and modifications.
36
+ b. No trademark license is granted to use the trade names, trademarks, service marks, or product names of us, except as required to fulfill notice requirements under this Agreement or as required for reasonable and customary use in describing and redistributing the Materials.
37
+ c. If you commence a lawsuit or other proceedings (including a cross-claim or counterclaim in a lawsuit) against us or any entity alleging that the Materials or any output therefrom, or any part of the foregoing, infringe any intellectual property or other right owned or licensable by you, then all licenses granted to you under this Agreement shall terminate as of the date such lawsuit or other proceeding is commenced or brought.
38
+
39
+ 7. Disclaimer of Warranty and Limitation of Liability
40
+ a. We are not obligated to support, update, provide training for, or develop any further version of the Qwen Materials or to grant any license thereto.
41
+ b. THE MATERIALS ARE PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY OF ANY KIND INCLUDING WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. WE MAKE NO WARRANTY AND ASSUME NO RESPONSIBILITY FOR THE SAFETY OR STABILITY OF THE MATERIALS AND ANY OUTPUT THEREFROM.
42
+ c. IN NO EVENT SHALL WE BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE MATERIALS OR ANY OUTPUT OF IT, NO MATTER HOW IT’S CAUSED.
43
+ d. You will defend, indemnify and hold harmless us from and against any claim by any third party arising out of or related to your use or distribution of the Materials.
44
+
45
+ 8. Survival and Termination.
46
+ a. The term of this Agreement shall commence upon your acceptance of this Agreement or access to the Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein.
47
+ b. We may terminate this Agreement if you breach any of the terms or conditions of this Agreement. Upon termination of this Agreement, you must delete and cease use of the Materials. Sections 7 and 9 shall survive the termination of this Agreement.
48
+
49
+ 9. Governing Law and Jurisdiction.
50
+ a. This Agreement and any dispute arising out of or relating to it will be governed by the laws of China, without regard to conflict of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement.
51
+ b. The People's Courts in Hangzhou City shall have exclusive jurisdiction over any dispute arising out of this Agreement.
LICENSE-InternVL-MIT ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 OpenGVLab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
MANIFEST.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "package": "VGD-InternVL3-8B-ScanNet",
3
+ "generated_utc": "2026-11-20T11:13:19Z",
4
+ "files": [
5
+ {
6
+ "path": "LICENSE",
7
+ "bytes": 6962,
8
+ "sha256": "8aff84e2629edb092f195c1d91bc368d8bb40eeb5fcedce2df19e405ee2cc876"
9
+ },
10
+ {
11
+ "path": "LICENSE-InternVL-MIT",
12
+ "bytes": 1066,
13
+ "sha256": "8f03d25fbcffafa2254d4d1414bf2a38423a966006b4a6964ee21f728d610bff"
14
+ },
15
+ {
16
+ "path": "NOTICE",
17
+ "bytes": 843,
18
+ "sha256": "4c4cd166377d0e3e76b270a7e1ba5c0ea834c6304d3d23b298b1711bd49554f0"
19
+ },
20
+ {
21
+ "path": "README.md",
22
+ "bytes": 9230,
23
+ "sha256": "12da4fe9e450de07873d39bf7253c66c248efd854f0d3881e1252b9554f2d68c"
24
+ },
25
+ {
26
+ "path": "chat_template.jinja",
27
+ "bytes": 481,
28
+ "sha256": "b3e3fa7cdeceec1d3dfe0d17b77724baf3857714e688f3a700261567e96140eb"
29
+ },
30
+ {
31
+ "path": "config.json",
32
+ "bytes": 2832,
33
+ "sha256": "89ae63617a10055d900af2fe3a125e9a1f7cabe30bbeca0d61e07cb34f7bbd3b"
34
+ },
35
+ {
36
+ "path": "generation_config.json",
37
+ "bytes": 142,
38
+ "sha256": "1d48a6bc0b88930087c763dfd7d22a7de1835fb027c499dfaaaf00e5815d2dcb"
39
+ },
40
+ {
41
+ "path": "model.safetensors",
42
+ "bytes": 31777594648,
43
+ "sha256": "e893ec24d3f74e67fd4e61641f68246664a47698a76de6e492281f4802493ec2"
44
+ },
45
+ {
46
+ "path": "processor_config.json",
47
+ "bytes": 1313,
48
+ "sha256": "e6c43a0255b748883485531a22936ca3b770348ddd6afbae2cdc51ac505ae7c3"
49
+ },
50
+ {
51
+ "path": "tokenizer.json",
52
+ "bytes": 11423728,
53
+ "sha256": "fd0c8be238c81a5f0450067d9565e16794aef2699df631fcf3dd0c2ac4842b06"
54
+ },
55
+ {
56
+ "path": "tokenizer_config.json",
57
+ "bytes": 843,
58
+ "sha256": "c8a6d7b051ec07a08050eb666974a7c4891909592724095645bddf8a5f41260c"
59
+ }
60
+ ],
61
+ "totals": {
62
+ "files": 11,
63
+ "bytes": 31789042088
64
+ }
65
+ }
NOTICE ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ VGD-InternVL3-8B-ScanNet
2
+
3
+ Qwen is licensed under the Qwen LICENSE AGREEMENT, Copyright (c) Alibaba Cloud. All Rights Reserved.
4
+
5
+ This model is a modified version of InternVL3-8B-hf (https://huggingface.co/OpenGVLab/InternVL3-8B-hf, revision
6
+ 259a3b64a14623c0ec91a045cb43f7c5af5fa6af). InternVL is released under the MIT License (LICENSE-InternVL-MIT, Copyright (c) 2023 OpenGVLab); its
7
+ Qwen2.5 component is licensed under the Qwen LICENSE AGREEMENT (LICENSE).
8
+
9
+ Modifications: "tie_word_embeddings": false was added to the configuration, and all weights were fine-tuned with
10
+ View Graph Distillation (supervised fine-tuning and PPO reinforcement learning) for camera-view planning. The
11
+ tokenizer, processor and generation configuration were re-saved by Transformers 5.8.1 (same rendered prompts and
12
+ token ids as the base model).
13
+
14
+ Built with Qwen.
README.md ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: qwen
4
+ license_link: https://huggingface.co/Qwen/Qwen2.5-72B-Instruct/blob/main/LICENSE
5
+ base_model: OpenGVLab/InternVL3-8B-hf
6
+ base_model_relation: finetune
7
+ library_name: transformers
8
+ pipeline_tag: image-text-to-text
9
+ language:
10
+ - en
11
+ datasets:
12
+ - MLL-Lab/ViewSuite-ScanNet
13
+ tags:
14
+ - viewsuite
15
+ - view-planning
16
+ - active-perception
17
+ - camera-control
18
+ - embodied-ai
19
+ - vision-language-model
20
+ - reinforcement-learning
21
+ - internvl
22
+ ---
23
+
24
+ # VGD-InternVL3-8B-ScanNet
25
+
26
+ InternVL3-8B (Hugging Face format) 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).
27
+
28
+ ## Results
29
+
30
+ These results come from the updated experiments (Habitat-Sim renders, horizontal-plane action space) and differ from the numbers in arXiv v1.
31
+
32
+ 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).
33
+
34
+ | Model | IVP Short | IVP Long | IVP All | IVP No-Submit | P2V | V2P |
35
+ |---|---|---|---|---|---|---|
36
+ | InternVL3-8B (base) | 0.0 | 0.0 | 0.0 | 5.3 | 31.9 | 27.5 |
37
+ | **This model** | 81.8 | 59.2 | **67.2** | 75.8 | 23.6 | 30.6 |
38
+
39
+ - **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.
40
+ - **P2V** (Path-to-View) and **V2P** (View-to-Path) are four-way multiple-choice questions about one action sequence (chance 25%).
41
+ - Gemini 3.1 Pro, the strongest zero-shot model evaluated in the same setting, reaches 24.0% IVP.
42
+ - The Qwen2.5-VL-7B model trained with the same recipe reaches 55.8% IVP All (each backbone trained once).
43
+ - 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.
44
+
45
+ ## Task and environment
46
+
47
+ 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.
48
+
49
+ 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).
50
+
51
+ ## How to use
52
+
53
+ 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):
54
+
55
+ ```bash
56
+ hf download MLL-Lab/VGD-InternVL3-8B-ScanNet --local-dir models/VGD-InternVL3-8B-ScanNet
57
+ SCANNET_CORPUS=<corpus dir> bash examples/eval_checkpoint/run.sh models/VGD-InternVL3-8B-ScanNet --corpus scannet
58
+ ```
59
+
60
+ Serving (OpenAI-compatible API) as in our evaluation:
61
+
62
+ ```bash
63
+ python -m sglang.launch_server --model-path models/VGD-InternVL3-8B-ScanNet --dtype bfloat16 \
64
+ --context-length 32768 --port 30000 \
65
+ --chat-template models/VGD-InternVL3-8B-ScanNet/chat_template.jinja
66
+ ```
67
+
68
+ SGLang needs the checkpoint's own chat template (`chat_template.jinja`, identical to the base model's), passed with `--chat-template` as in our evaluation; the evaluation script of the code release does this for InternVL checkpoints.
69
+
70
+ We evaluated with SGLang only; other servers (for example vLLM) have not been tested with this checkpoint.
71
+
72
+ 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`):
73
+
74
+ ```python
75
+ import torch
76
+ from transformers import AutoProcessor, InternVLForConditionalGeneration
77
+
78
+ model_id = "MLL-Lab/VGD-InternVL3-8B-ScanNet"
79
+ model = InternVLForConditionalGeneration.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
80
+ processor = AutoProcessor.from_pretrained(model_id)
81
+
82
+ # One turn: a system prompt and a user message with the images, as produced by the environment.
83
+ messages = [
84
+ {"role": "system", "content": SYSTEM_PROMPT},
85
+ {"role": "user", "content": [{"type": "image", "image": target_view},
86
+ {"type": "image", "image": initial_view},
87
+ {"type": "image", "image": top_down_view},
88
+ {"type": "text", "text": FIRST_OBSERVATION_TEXT}]},
89
+ ]
90
+ inputs = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=True,
91
+ return_dict=True, return_tensors="pt").to(model.device)
92
+ out = model.generate(**inputs, max_new_tokens=1024, do_sample=False, repetition_penalty=1.0)
93
+ print(processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
94
+ ```
95
+
96
+ 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.
97
+
98
+ ## Training
99
+
100
+ - Base model: [OpenGVLab/InternVL3-8B-hf](https://huggingface.co/OpenGVLab/InternVL3-8B-hf) (revision `259a3b64`). Before training, `tie_word_embeddings: false` was added to the base configuration, so the output layer is trained separately from the input embeddings.
101
+ - Data: the ViewSuite ScanNet training split: 3,419 instances over 193 scenes; checkpoint selection on 100 of the 378 dev instances.
102
+ - 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).
103
+ - 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 480 (dev success 0.78); training stopped after step 680.
104
+ - Hardware: 2 nodes with 8 H100 GPUs each. One training run per configuration.
105
+
106
+ ## Files
107
+
108
+ - `model.safetensors`: the evaluated weights, unchanged: one file, 31.8 GB, 781 tensors, 7,944,373,760 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.
109
+ - `config.json`, `generation_config.json`, `tokenizer.json`, `tokenizer_config.json`, `processor_config.json`, `chat_template.jinja`: as saved with the checkpoint.
110
+ - `MANIFEST.json` and `SHA256SUMS`: size and SHA-256 of every file.
111
+
112
+ ## Limitations
113
+
114
+ - Trained for one rendering style, one camera model and one discrete action space; other renderers, fields of view or action sets reduce success.
115
+ - The model plans camera viewpoints; it was not trained or tested for physical navigation, collision avoidance or robot control.
116
+ - Training targets IVP. The single-step multiple-choice tasks do not improve consistently: P2V 23.6 vs 31.9 for the base model, V2P 30.6 vs 27.5.
117
+ - One training run per configuration; differences of a few points between models are within run-to-run variation.
118
+
119
+ ## Training data and license
120
+
121
+ 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.
122
+
123
+ The base model card of [InternVL3-8B-hf](https://huggingface.co/OpenGVLab/InternVL3-8B-hf) declares the Qwen license (`license: other`, `license_name: qwen`) and states that InternVL is released under the MIT License while its Qwen2.5 component is licensed under the Qwen License. This fine-tuned version keeps those terms: the Qwen LICENSE AGREEMENT is in `LICENSE`, the InternVL MIT license in `LICENSE-InternVL-MIT`, and the required attribution in `NOTICE`. Built with Qwen.
124
+
125
+ ## Citation
126
+
127
+ ```bibtex
128
+ @article{wang2026viewagent,
129
+ title = {Planning with the Views},
130
+ author = {Wang, Kangrui and Li, Linjie and Yang, Zhengyuan and Chen, Shiqi and
131
+ Wang, Zihan and Fei-Fei, Li and Wu, Jiajun and Guibas, Leonidas and
132
+ Wang, Lijuan and Li, Manling},
133
+ journal = {arXiv preprint arXiv:2605.29563},
134
+ year = {2026}
135
+ }
136
+ ```
SHA256SUMS ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 8aff84e2629edb092f195c1d91bc368d8bb40eeb5fcedce2df19e405ee2cc876 LICENSE
2
+ 8f03d25fbcffafa2254d4d1414bf2a38423a966006b4a6964ee21f728d610bff LICENSE-InternVL-MIT
3
+ 4c4cd166377d0e3e76b270a7e1ba5c0ea834c6304d3d23b298b1711bd49554f0 NOTICE
4
+ 12da4fe9e450de07873d39bf7253c66c248efd854f0d3881e1252b9554f2d68c README.md
5
+ b3e3fa7cdeceec1d3dfe0d17b77724baf3857714e688f3a700261567e96140eb chat_template.jinja
6
+ 89ae63617a10055d900af2fe3a125e9a1f7cabe30bbeca0d61e07cb34f7bbd3b config.json
7
+ 1d48a6bc0b88930087c763dfd7d22a7de1835fb027c499dfaaaf00e5815d2dcb generation_config.json
8
+ e893ec24d3f74e67fd4e61641f68246664a47698a76de6e492281f4802493ec2 model.safetensors
9
+ e6c43a0255b748883485531a22936ca3b770348ddd6afbae2cdc51ac505ae7c3 processor_config.json
10
+ fd0c8be238c81a5f0450067d9565e16794aef2699df631fcf3dd0c2ac4842b06 tokenizer.json
11
+ c8a6d7b051ec07a08050eb666974a7c4891909592724095645bddf8a5f41260c tokenizer_config.json
chat_template.jinja ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {% for message in messages %}{{'<|im_start|>' + message['role'] + '
2
+ '}}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' %}{{ '<IMG_CONTEXT>
3
+ ' }}{% elif content['type'] == 'video' %}{{ '<video>
4
+ ' }}{% elif content['type'] == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}{{'<|im_end|>
5
+ '}}{% endfor %}{% if add_generation_prompt %}{{'<|im_start|>assistant
6
+ ' }}{% endif %}
config.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "InternVLForConditionalGeneration"
4
+ ],
5
+ "bos_token_id": null,
6
+ "downsample_ratio": 0.5,
7
+ "dtype": "bfloat16",
8
+ "eos_token_id": 151645,
9
+ "hidden_size": 3584,
10
+ "image_seq_length": 256,
11
+ "image_token_id": 151667,
12
+ "model_type": "internvl",
13
+ "pad_token_id": 151643,
14
+ "projector_hidden_act": "gelu",
15
+ "text_config": {
16
+ "architectures": [
17
+ "Qwen2ForCausalLM"
18
+ ],
19
+ "attention_dropout": 0.0,
20
+ "bos_token_id": 151643,
21
+ "dtype": "bfloat16",
22
+ "eos_token_id": 151645,
23
+ "hidden_act": "silu",
24
+ "hidden_size": 3584,
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": 18944,
27
+ "layer_types": [
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
+ "full_attention",
53
+ "full_attention",
54
+ "full_attention",
55
+ "full_attention"
56
+ ],
57
+ "max_position_embeddings": 32768,
58
+ "max_window_layers": 70,
59
+ "model_type": "qwen2",
60
+ "num_attention_heads": 28,
61
+ "num_hidden_layers": 28,
62
+ "num_key_value_heads": 4,
63
+ "pad_token_id": null,
64
+ "rms_norm_eps": 1e-06,
65
+ "rope_parameters": {
66
+ "factor": 2.0,
67
+ "rope_theta": 1000000.0,
68
+ "rope_type": "dynamic",
69
+ "type": "dynamic"
70
+ },
71
+ "sliding_window": null,
72
+ "tie_word_embeddings": false,
73
+ "use_cache": false,
74
+ "use_sliding_window": false,
75
+ "vocab_size": 151674
76
+ },
77
+ "tie_word_embeddings": false,
78
+ "transformers_version": "5.8.1",
79
+ "vision_config": {
80
+ "architectures": [
81
+ "InternVisionModel"
82
+ ],
83
+ "attention_bias": true,
84
+ "attention_dropout": 0.0,
85
+ "dropout": 0.0,
86
+ "dtype": "bfloat16",
87
+ "hidden_act": "gelu",
88
+ "hidden_dropout_prob": 0.0,
89
+ "hidden_size": 1024,
90
+ "image_size": [
91
+ 448,
92
+ 448
93
+ ],
94
+ "initializer_factor": 0.1,
95
+ "initializer_range": 1e-10,
96
+ "intermediate_size": 4096,
97
+ "layer_norm_eps": 1e-06,
98
+ "layer_scale_init_value": 0.1,
99
+ "model_type": "internvl_vision",
100
+ "norm_type": "layer_norm",
101
+ "num_attention_heads": 16,
102
+ "num_channels": 3,
103
+ "num_hidden_layers": 24,
104
+ "patch_size": [
105
+ 14,
106
+ 14
107
+ ],
108
+ "projection_dropout": 0.0,
109
+ "use_absolute_position_embeddings": true,
110
+ "use_mask_token": false,
111
+ "use_mean_pooling": true,
112
+ "use_qk_norm": false
113
+ },
114
+ "vision_feature_layer": -1,
115
+ "vision_feature_select_strategy": "default"
116
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 151645,
5
+ 151645
6
+ ],
7
+ "pad_token_id": 151643,
8
+ "transformers_version": "5.8.1"
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e893ec24d3f74e67fd4e61641f68246664a47698a76de6e492281f4802493ec2
3
+ size 31777594648
processor_config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "crop_to_patches": false,
4
+ "data_format": "channels_first",
5
+ "default_to_square": true,
6
+ "do_convert_rgb": true,
7
+ "do_normalize": true,
8
+ "do_rescale": true,
9
+ "do_resize": true,
10
+ "image_mean": [
11
+ 0.485,
12
+ 0.456,
13
+ 0.406
14
+ ],
15
+ "image_processor_type": "GotOcr2ImageProcessor",
16
+ "image_std": [
17
+ 0.229,
18
+ 0.224,
19
+ 0.225
20
+ ],
21
+ "max_patches": 12,
22
+ "min_patches": 1,
23
+ "resample": 3,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "height": 448,
27
+ "width": 448
28
+ }
29
+ },
30
+ "image_seq_length": 256,
31
+ "processor_class": "InternVLProcessor",
32
+ "video_processor": {
33
+ "crop_to_patches": false,
34
+ "data_format": "channels_first",
35
+ "default_to_square": true,
36
+ "do_convert_rgb": true,
37
+ "do_normalize": true,
38
+ "do_rescale": true,
39
+ "do_resize": true,
40
+ "do_sample_frames": false,
41
+ "image_mean": [
42
+ 0.485,
43
+ 0.456,
44
+ 0.406
45
+ ],
46
+ "image_std": [
47
+ 0.229,
48
+ 0.224,
49
+ 0.225
50
+ ],
51
+ "initial_shift": true,
52
+ "max_patches": 12,
53
+ "min_patches": 1,
54
+ "resample": 3,
55
+ "rescale_factor": 0.00392156862745098,
56
+ "return_metadata": false,
57
+ "size": {
58
+ "height": 448,
59
+ "width": 448
60
+ },
61
+ "video_processor_type": "InternVLVideoProcessor"
62
+ }
63
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd0c8be238c81a5f0450067d9565e16794aef2699df631fcf3dd0c2ac4842b06
3
+ size 11423728
tokenizer_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "context_image_token": "<IMG_CONTEXT>",
7
+ "end_image_token": "</img>",
8
+ "eos_token": "<|im_end|>",
9
+ "errors": "replace",
10
+ "extra_special_tokens": [
11
+ "<|im_end|>"
12
+ ],
13
+ "is_local": true,
14
+ "local_files_only": true,
15
+ "model_max_length": 16384,
16
+ "model_specific_special_tokens": {
17
+ "context_image_token": "<IMG_CONTEXT>",
18
+ "end_image_token": "</img>",
19
+ "start_image_token": "<img>",
20
+ "video_token": "<video>"
21
+ },
22
+ "pad_token": "<|endoftext|>",
23
+ "padding_side": "right",
24
+ "processor_class": "InternVLProcessor",
25
+ "return_token_type_ids": false,
26
+ "split_special_tokens": false,
27
+ "start_image_token": "<img>",
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null,
30
+ "video_token": "<video>"
31
+ }