camenduru commited on
Commit
3cbae39
1 Parent(s): 5a33f48

thanks to Qwen ❤

Browse files
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 2024 Alibaba Cloud
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.
README.md ADDED
@@ -0,0 +1,492 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - multimodal
8
+ base_model: Qwen/Qwen2-VL-2B-Instruct
9
+ ---
10
+
11
+ # Qwen2-VL-2B-Instruct
12
+
13
+ ## Introduction
14
+
15
+ We're excited to unveil **Qwen2-VL**, the latest iteration of our Qwen-VL model, representing nearly a year of innovation.
16
+
17
+ ### What’s New in Qwen2-VL?
18
+
19
+ #### Key Enhancements:
20
+
21
+
22
+ * **SoTA understanding of images of various resolution & ratio**: Qwen2-VL achieves state-of-the-art performance on visual understanding benchmarks, including MathVista, DocVQA, RealWorldQA, MTVQA, etc.
23
+
24
+ * **Understanding videos of 20min+**: Qwen2-VL can understand videos over 20 minutes for high-quality video-based question answering, dialog, content creation, etc.
25
+
26
+ * **Agent that can operate your mobiles, robots, etc.**: with the abilities of complex reasoning and decision making, Qwen2-VL can be integrated with devices like mobile phones, robots, etc., for automatic operation based on visual environment and text instructions.
27
+
28
+ * **Multilingual Support**: to serve global users, besides English and Chinese, Qwen2-VL now supports the understanding of texts in different languages inside images, including most European languages, Japanese, Korean, Arabic, Vietnamese, etc.
29
+
30
+
31
+ #### Model Architecture Updates:
32
+
33
+ * **Naive Dynamic Resolution**: Unlike before, Qwen2-VL can handle arbitrary image resolutions, mapping them into a dynamic number of visual tokens, offering a more human-like visual processing experience.
34
+
35
+ <p align="center">
36
+ <img src="https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen2-VL/qwen2_vl.jpg" width="80%"/>
37
+ <p>
38
+
39
+ * **Multimodal Rotary Position Embedding (M-ROPE)**: Decomposes positional embedding into parts to capture 1D textual, 2D visual, and 3D video positional information, enhancing its multimodal processing capabilities.
40
+
41
+ <p align="center">
42
+ <img src="http://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen2-VL/mrope.png" width="80%"/>
43
+ <p>
44
+
45
+ We have three models with 2, 7 and 72 billion parameters. This repo contains the instruction-tuned 2B Qwen2-VL model. For more information, visit our [Blog](https://qwenlm.github.io/blog/qwen2-vl/) and [GitHub](https://github.com/QwenLM/Qwen2-VL).
46
+
47
+
48
+
49
+ ## Evaluation
50
+
51
+ ### Image Benchmarks
52
+
53
+ | Benchmark | InternVL2-2B | MiniCPM-V 2.0 | **Qwen2-VL-2B** |
54
+ | :--- | :---: | :---: | :---: |
55
+ | DocVQA<sub>test</sub> | 86.9 | - | **90.1** |
56
+ | InfoVQA<sub>test</sub> | 58.9 | - | **65.5** |
57
+ | ChartQA<sub>test</sub> | **76.2** | - | 73.5 |
58
+ | TextVQA<sub>val</sub> | 73.4 | - | **79.7** |
59
+ | OCRBench | 781 | 605 | **794** |
60
+ | MTVQA | - | - | **20.0** |
61
+ | MMMU<sub>val</sub> | 36.3 | 38.2 | **41.1** |
62
+ | RealWorldQA | 57.3 | 55.8 | **62.9** |
63
+ | MME<sub>sum</sub> | **1876.8** | 1808.6 | 1872.0 |
64
+ | MMBench-EN<sub>test</sub> | 73.2 | 69.1 | **74.9** |
65
+ | MMBench-CN<sub>test</sub> | 70.9 | 66.5 | **73.5** |
66
+ | MMBench-V1.1<sub>test</sub> | 69.6 | 65.8 | **72.2** |
67
+ | MMT-Bench<sub>test</sub> | - | - | **54.5** |
68
+ | MMStar | **49.8** | 39.1 | 48.0 |
69
+ | MMVet<sub>GPT-4-Turbo</sub> | 39.7 | 41.0 | **49.5** |
70
+ | HallBench<sub>avg</sub> | 38.0 | 36.1 | **41.7** |
71
+ | MathVista<sub>testmini</sub> | **46.0** | 39.8 | 43.0 |
72
+ | MathVision | - | - | **12.4** |
73
+
74
+ ### Video Benchmarks
75
+
76
+ | Benchmark | **Qwen2-VL-2B** |
77
+ | :--- | :---: |
78
+ | MVBench | **63.2** |
79
+ | PerceptionTest<sub>test</sub> | **53.9** |
80
+ | EgoSchema<sub>test</sub> | **54.9** |
81
+ | Video-MME<sub>wo/w subs</sub> | **55.6**/**60.4** |
82
+
83
+
84
+ ## Requirements
85
+ The code of Qwen2-VL has been in the latest Hugging face transformers and we advise you to build from source with command `pip install git+https://github.com/huggingface/transformers`, or you might encounter the following error:
86
+ ```
87
+ KeyError: 'qwen2_vl'
88
+ ```
89
+
90
+ ## Quickstart
91
+ We offer a toolkit to help you handle various types of visual input more conveniently. This includes base64, URLs, and interleaved images and videos. You can install it using the following command:
92
+
93
+ ```bash
94
+ pip install qwen-vl-utils
95
+ ```
96
+
97
+ Here we show a code snippet to show you how to use the chat model with `transformers` and `qwen_vl_utils`:
98
+
99
+ ```python
100
+ from transformers import Qwen2VLForConditionalGeneration, AutoTokenizer, AutoProcessor
101
+ from qwen_vl_utils import process_vision_info
102
+
103
+ # default: Load the model on the available device(s)
104
+ model = Qwen2VLForConditionalGeneration.from_pretrained(
105
+ "Qwen/Qwen2-VL-2B-Instruct", torch_dtype="auto", device_map="auto"
106
+ )
107
+
108
+ # We recommend enabling flash_attention_2 for better acceleration and memory saving, especially in multi-image and video scenarios.
109
+ # model = Qwen2VLForConditionalGeneration.from_pretrained(
110
+ # "Qwen/Qwen2-VL-2B-Instruct",
111
+ # torch_dtype=torch.bfloat16,
112
+ # attn_implementation="flash_attention_2",
113
+ # device_map="auto",
114
+ # )
115
+
116
+ # default processer
117
+ processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-2B-Instruct")
118
+
119
+ # The default range for the number of visual tokens per image in the model is 4-16384. You can set min_pixels and max_pixels according to your needs, such as a token count range of 256-1280, to balance speed and memory usage.
120
+ # min_pixels = 256*28*28
121
+ # max_pixels = 1280*28*28
122
+ # processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-2B-Instruct", min_pixels=min_pixels, max_pixels=max_pixels)
123
+
124
+ messages = [
125
+ {
126
+ "role": "user",
127
+ "content": [
128
+ {
129
+ "type": "image",
130
+ "image": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg",
131
+ },
132
+ {"type": "text", "text": "Describe this image."},
133
+ ],
134
+ }
135
+ ]
136
+
137
+ # Preparation for inference
138
+ text = processor.apply_chat_template(
139
+ messages, tokenize=False, add_generation_prompt=True
140
+ )
141
+ image_inputs, video_inputs = process_vision_info(messages)
142
+ inputs = processor(
143
+ text=[text],
144
+ images=image_inputs,
145
+ videos=video_inputs,
146
+ padding=True,
147
+ return_tensors="pt",
148
+ )
149
+ inputs = inputs.to("cuda")
150
+
151
+ # Inference: Generation of the output
152
+ generated_ids = model.generate(**inputs, max_new_tokens=128)
153
+ generated_ids_trimmed = [
154
+ out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
155
+ ]
156
+ output_text = processor.batch_decode(
157
+ generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
158
+ )
159
+ print(output_text)
160
+ ```
161
+ <details>
162
+ <summary>Without qwen_vl_utils</summary>
163
+
164
+ ```python
165
+ from PIL import Image
166
+ import requests
167
+ import torch
168
+ from torchvision import io
169
+ from typing import Dict
170
+ from transformers import Qwen2VLForConditionalGeneration, AutoTokenizer, AutoProcessor
171
+
172
+ # Load the model in half-precision on the available device(s)
173
+ model = Qwen2VLForConditionalGeneration.from_pretrained(
174
+ "Qwen/Qwen2-VL-2B-Instruct", torch_dtype="auto", device_map="auto"
175
+ )
176
+ processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-2B-Instruct")
177
+
178
+ # Image
179
+ url = "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg"
180
+ image = Image.open(requests.get(url, stream=True).raw)
181
+
182
+ conversation = [
183
+ {
184
+ "role": "user",
185
+ "content": [
186
+ {
187
+ "type": "image",
188
+ },
189
+ {"type": "text", "text": "Describe this image."},
190
+ ],
191
+ }
192
+ ]
193
+
194
+
195
+ # Preprocess the inputs
196
+ text_prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
197
+ # Excepted output: '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n<|im_start|>user\n<|vision_start|><|image_pad|><|vision_end|>Describe this image.<|im_end|>\n<|im_start|>assistant\n'
198
+
199
+ inputs = processor(
200
+ text=[text_prompt], images=[image], padding=True, return_tensors="pt"
201
+ )
202
+ inputs = inputs.to("cuda")
203
+
204
+ # Inference: Generation of the output
205
+ output_ids = model.generate(**inputs, max_new_tokens=128)
206
+ generated_ids = [
207
+ output_ids[len(input_ids) :]
208
+ for input_ids, output_ids in zip(inputs.input_ids, output_ids)
209
+ ]
210
+ output_text = processor.batch_decode(
211
+ generated_ids, skip_special_tokens=True, clean_up_tokenization_spaces=True
212
+ )
213
+ print(output_text)
214
+ ```
215
+ </details>
216
+
217
+ <details>
218
+ <summary>Multi image inference</summary>
219
+
220
+ ```python
221
+ # Messages containing multiple images and a text query
222
+ messages = [
223
+ {
224
+ "role": "user",
225
+ "content": [
226
+ {"type": "image", "image": "file:///path/to/image1.jpg"},
227
+ {"type": "image", "image": "file:///path/to/image2.jpg"},
228
+ {"type": "text", "text": "Identify the similarities between these images."},
229
+ ],
230
+ }
231
+ ]
232
+
233
+ # Preparation for inference
234
+ text = processor.apply_chat_template(
235
+ messages, tokenize=False, add_generation_prompt=True
236
+ )
237
+ image_inputs, video_inputs = process_vision_info(messages)
238
+ inputs = processor(
239
+ text=[text],
240
+ images=image_inputs,
241
+ videos=video_inputs,
242
+ padding=True,
243
+ return_tensors="pt",
244
+ )
245
+ inputs = inputs.to("cuda")
246
+
247
+ # Inference
248
+ generated_ids = model.generate(**inputs, max_new_tokens=128)
249
+ generated_ids_trimmed = [
250
+ out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
251
+ ]
252
+ output_text = processor.batch_decode(
253
+ generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
254
+ )
255
+ print(output_text)
256
+ ```
257
+ </details>
258
+
259
+ <details>
260
+ <summary>Video inference</summary>
261
+
262
+ ```python
263
+ # Messages containing a images list as a video and a text query
264
+ messages = [
265
+ {
266
+ "role": "user",
267
+ "content": [
268
+ {
269
+ "type": "video",
270
+ "video": [
271
+ "file:///path/to/frame1.jpg",
272
+ "file:///path/to/frame2.jpg",
273
+ "file:///path/to/frame3.jpg",
274
+ "file:///path/to/frame4.jpg",
275
+ ],
276
+ "fps": 1.0,
277
+ },
278
+ {"type": "text", "text": "Describe this video."},
279
+ ],
280
+ }
281
+ ]
282
+ # Messages containing a video and a text query
283
+ messages = [
284
+ {
285
+ "role": "user",
286
+ "content": [
287
+ {
288
+ "type": "video",
289
+ "video": "file:///path/to/video1.mp4",
290
+ "max_pixels": 360 * 420,
291
+ "fps": 1.0,
292
+ },
293
+ {"type": "text", "text": "Describe this video."},
294
+ ],
295
+ }
296
+ ]
297
+
298
+ # Preparation for inference
299
+ text = processor.apply_chat_template(
300
+ messages, tokenize=False, add_generation_prompt=True
301
+ )
302
+ image_inputs, video_inputs = process_vision_info(messages)
303
+ inputs = processor(
304
+ text=[text],
305
+ images=image_inputs,
306
+ videos=video_inputs,
307
+ padding=True,
308
+ return_tensors="pt",
309
+ )
310
+ inputs = inputs.to("cuda")
311
+
312
+ # Inference
313
+ generated_ids = model.generate(**inputs, max_new_tokens=128)
314
+ generated_ids_trimmed = [
315
+ out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
316
+ ]
317
+ output_text = processor.batch_decode(
318
+ generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
319
+ )
320
+ print(output_text)
321
+ ```
322
+ </details>
323
+
324
+ <details>
325
+ <summary>Batch inference</summary>
326
+
327
+ ```python
328
+ # Sample messages for batch inference
329
+ messages1 = [
330
+ {
331
+ "role": "user",
332
+ "content": [
333
+ {"type": "image", "image": "file:///path/to/image1.jpg"},
334
+ {"type": "image", "image": "file:///path/to/image2.jpg"},
335
+ {"type": "text", "text": "What are the common elements in these pictures?"},
336
+ ],
337
+ }
338
+ ]
339
+ messages2 = [
340
+ {"role": "system", "content": "You are a helpful assistant."},
341
+ {"role": "user", "content": "Who are you?"},
342
+ ]
343
+ # Combine messages for batch processing
344
+ messages = [messages1, messages1]
345
+
346
+ # Preparation for batch inference
347
+ texts = [
348
+ processor.apply_chat_template(msg, tokenize=False, add_generation_prompt=True)
349
+ for msg in messages
350
+ ]
351
+ image_inputs, video_inputs = process_vision_info(messages)
352
+ inputs = processor(
353
+ text=texts,
354
+ images=image_inputs,
355
+ videos=video_inputs,
356
+ padding=True,
357
+ return_tensors="pt",
358
+ )
359
+ inputs = inputs.to("cuda")
360
+
361
+ # Batch Inference
362
+ generated_ids = model.generate(**inputs, max_new_tokens=128)
363
+ generated_ids_trimmed = [
364
+ out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
365
+ ]
366
+ output_texts = processor.batch_decode(
367
+ generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
368
+ )
369
+ print(output_texts)
370
+ ```
371
+ </details>
372
+
373
+ ### More Usage Tips
374
+
375
+ For input images, we support local files, base64, and URLs. For videos, we currently only support local files.
376
+
377
+ ```python
378
+ # You can directly insert a local file path, a URL, or a base64-encoded image into the position where you want in the text.
379
+ ## Local file path
380
+ messages = [
381
+ {
382
+ "role": "user",
383
+ "content": [
384
+ {"type": "image", "image": "file:///path/to/your/image.jpg"},
385
+ {"type": "text", "text": "Describe this image."},
386
+ ],
387
+ }
388
+ ]
389
+ ## Image URL
390
+ messages = [
391
+ {
392
+ "role": "user",
393
+ "content": [
394
+ {"type": "image", "image": "http://path/to/your/image.jpg"},
395
+ {"type": "text", "text": "Describe this image."},
396
+ ],
397
+ }
398
+ ]
399
+ ## Base64 encoded image
400
+ messages = [
401
+ {
402
+ "role": "user",
403
+ "content": [
404
+ {"type": "image", "image": "data:image;base64,/9j/..."},
405
+ {"type": "text", "text": "Describe this image."},
406
+ ],
407
+ }
408
+ ]
409
+ ```
410
+ #### Image Resolution for performance boost
411
+
412
+ The model supports a wide range of resolution inputs. By default, it uses the native resolution for input, but higher resolutions can enhance performance at the cost of more computation. Users can set the minimum and maximum number of pixels to achieve an optimal configuration for their needs, such as a token count range of 256-1280, to balance speed and memory usage.
413
+
414
+ ```python
415
+ min_pixels = 256 * 28 * 28
416
+ max_pixels = 1280 * 28 * 28
417
+ processor = AutoProcessor.from_pretrained(
418
+ "Qwen/Qwen2-VL-2B-Instruct", min_pixels=min_pixels, max_pixels=max_pixels
419
+ )
420
+ ```
421
+
422
+ Besides, We provide two methods for fine-grained control over the image size input to the model:
423
+
424
+ 1. Define min_pixels and max_pixels: Images will be resized to maintain their aspect ratio within the range of min_pixels and max_pixels.
425
+
426
+ 2. Specify exact dimensions: Directly set `resized_height` and `resized_width`. These values will be rounded to the nearest multiple of 28.
427
+
428
+ ```python
429
+ # min_pixels and max_pixels
430
+ messages = [
431
+ {
432
+ "role": "user",
433
+ "content": [
434
+ {
435
+ "type": "image",
436
+ "image": "file:///path/to/your/image.jpg",
437
+ "resized_height": 280,
438
+ "resized_width": 420,
439
+ },
440
+ {"type": "text", "text": "Describe this image."},
441
+ ],
442
+ }
443
+ ]
444
+ # resized_height and resized_width
445
+ messages = [
446
+ {
447
+ "role": "user",
448
+ "content": [
449
+ {
450
+ "type": "image",
451
+ "image": "file:///path/to/your/image.jpg",
452
+ "min_pixels": 50176,
453
+ "max_pixels": 50176,
454
+ },
455
+ {"type": "text", "text": "Describe this image."},
456
+ ],
457
+ }
458
+ ]
459
+ ```
460
+
461
+ ## Limitations
462
+
463
+ While Qwen2-VL are applicable to a wide range of visual tasks, it is equally important to understand its limitations. Here are some known restrictions:
464
+
465
+ 1. Lack of Audio Support: The current model does **not comprehend audio information** within videos.
466
+ 2. Data timeliness: Our image dataset is **updated until June 2023**, and information subsequent to this date may not be covered.
467
+ 3. Constraints in Individuals and Intellectual Property (IP): The model's capacity to recognize specific individuals or IPs is limited, potentially failing to comprehensively cover all well-known personalities or brands.
468
+ 4. Limited Capacity for Complex Instruction: When faced with intricate multi-step instructions, the model's understanding and execution capabilities require enhancement.
469
+ 5. Insufficient Counting Accuracy: Particularly in complex scenes, the accuracy of object counting is not high, necessitating further improvements.
470
+ 6. Weak Spatial Reasoning Skills: Especially in 3D spaces, the model's inference of object positional relationships is inadequate, making it difficult to precisely judge the relative positions of objects.
471
+
472
+ These limitations serve as ongoing directions for model optimization and improvement, and we are committed to continually enhancing the model's performance and scope of application.
473
+
474
+
475
+ ## Citation
476
+
477
+ If you find our work helpful, feel free to give us a cite.
478
+
479
+ ```
480
+ @article{Qwen2-VL,
481
+ title={Qwen2-VL},
482
+ author={Qwen team},
483
+ year={2024}
484
+ }
485
+
486
+ @article{Qwen-VL,
487
+ title={Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyond},
488
+ author={Bai, Jinze and Bai, Shuai and Yang, Shusheng and Wang, Shijie and Tan, Sinan and Wang, Peng and Lin, Junyang and Zhou, Chang and Zhou, Jingren},
489
+ journal={arXiv preprint arXiv:2308.12966},
490
+ year={2023}
491
+ }
492
+ ```
chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% 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\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% 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|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}"
3
+ }
config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2VLForConditionalGeneration"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 151643,
7
+ "eos_token_id": 151645,
8
+ "vision_start_token_id": 151652,
9
+ "vision_end_token_id": 151653,
10
+ "vision_token_id": 151654,
11
+ "image_token_id": 151655,
12
+ "video_token_id": 151656,
13
+ "hidden_act": "silu",
14
+ "hidden_size": 1536,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 8960,
17
+ "max_position_embeddings": 32768,
18
+ "max_window_layers": 28,
19
+ "model_type": "qwen2_vl",
20
+ "num_attention_heads": 12,
21
+ "num_hidden_layers": 28,
22
+ "num_key_value_heads": 2,
23
+ "rms_norm_eps": 1e-06,
24
+ "rope_theta": 1000000.0,
25
+ "sliding_window": 32768,
26
+ "tie_word_embeddings": true,
27
+ "torch_dtype": "bfloat16",
28
+ "transformers_version": "4.41.2",
29
+ "use_cache": true,
30
+ "use_sliding_window": false,
31
+ "vision_config": {
32
+ "depth": 32,
33
+ "embed_dim": 1280,
34
+ "mlp_ratio": 4,
35
+ "num_heads": 16,
36
+ "in_chans": 3,
37
+ "hidden_size": 1536,
38
+ "patch_size": 14,
39
+ "spatial_merge_size": 2,
40
+ "spatial_patch_size": 14,
41
+ "temporal_patch_size": 2
42
+ },
43
+ "rope_scaling": {
44
+ "type": "mrope",
45
+ "mrope_section": [
46
+ 16,
47
+ 24,
48
+ 24
49
+ ]
50
+ },
51
+ "vocab_size": 151936
52
+ }
generation_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "pad_token_id": 151643,
4
+ "do_sample": true,
5
+ "eos_token_id": [
6
+ 151645,
7
+ 151643
8
+ ],
9
+ "repetition_penalty": 1.05,
10
+ "temperature": 0.1,
11
+ "top_p": 0.001,
12
+ "top_k": 1,
13
+ "transformers_version": "4.37.0"
14
+ }
15
+
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68035e2ea441220e74bf1c90f5290307a8a008ae4f2a3cc1d6976a10c937e76b
3
+ size 3988609112
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ff0d5e8cdbd94a0411fbe5b4aded8774485cae77563102550b9f233307bf531
3
+ size 429441656
model.safetensors.index.json ADDED
@@ -0,0 +1,736 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 4417971200
4
+ },
5
+ "weight_map": {
6
+ "model.embed_tokens.weight": "model-00001-of-00002.safetensors",
7
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
8
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
9
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
10
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
11
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
12
+ "model.layers.0.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
13
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
14
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
15
+ "model.layers.0.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
16
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
17
+ "model.layers.0.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
18
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
19
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
20
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
21
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
22
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
23
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
24
+ "model.layers.1.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
25
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
26
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
27
+ "model.layers.1.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
28
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
29
+ "model.layers.1.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
30
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
31
+ "model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
32
+ "model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
33
+ "model.layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
34
+ "model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
35
+ "model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
36
+ "model.layers.10.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
37
+ "model.layers.10.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
38
+ "model.layers.10.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
39
+ "model.layers.10.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
40
+ "model.layers.10.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
41
+ "model.layers.10.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
42
+ "model.layers.10.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
43
+ "model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
44
+ "model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
45
+ "model.layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
46
+ "model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
47
+ "model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
48
+ "model.layers.11.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
49
+ "model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
50
+ "model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
51
+ "model.layers.11.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
52
+ "model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
53
+ "model.layers.11.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
54
+ "model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
55
+ "model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
56
+ "model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
57
+ "model.layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
58
+ "model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
59
+ "model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
60
+ "model.layers.12.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
61
+ "model.layers.12.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
62
+ "model.layers.12.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
63
+ "model.layers.12.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
64
+ "model.layers.12.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
65
+ "model.layers.12.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
66
+ "model.layers.12.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
67
+ "model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
68
+ "model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
69
+ "model.layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
70
+ "model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
71
+ "model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
72
+ "model.layers.13.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
73
+ "model.layers.13.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
74
+ "model.layers.13.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
75
+ "model.layers.13.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
76
+ "model.layers.13.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
77
+ "model.layers.13.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
78
+ "model.layers.13.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
79
+ "model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
80
+ "model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
81
+ "model.layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
82
+ "model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
83
+ "model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
84
+ "model.layers.14.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
85
+ "model.layers.14.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
86
+ "model.layers.14.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
87
+ "model.layers.14.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
88
+ "model.layers.14.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
89
+ "model.layers.14.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
90
+ "model.layers.14.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
91
+ "model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
92
+ "model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
93
+ "model.layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
94
+ "model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
95
+ "model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
96
+ "model.layers.15.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
97
+ "model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
98
+ "model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
99
+ "model.layers.15.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
100
+ "model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
101
+ "model.layers.15.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
102
+ "model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
103
+ "model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
104
+ "model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
105
+ "model.layers.16.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
106
+ "model.layers.16.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
107
+ "model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
108
+ "model.layers.16.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
109
+ "model.layers.16.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
110
+ "model.layers.16.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
111
+ "model.layers.16.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
112
+ "model.layers.16.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
113
+ "model.layers.16.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
114
+ "model.layers.16.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
115
+ "model.layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
116
+ "model.layers.17.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
117
+ "model.layers.17.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
118
+ "model.layers.17.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
119
+ "model.layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
120
+ "model.layers.17.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
121
+ "model.layers.17.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
122
+ "model.layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
123
+ "model.layers.17.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
124
+ "model.layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
125
+ "model.layers.17.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
126
+ "model.layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
127
+ "model.layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
128
+ "model.layers.18.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
129
+ "model.layers.18.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
130
+ "model.layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
131
+ "model.layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
132
+ "model.layers.18.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
133
+ "model.layers.18.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
134
+ "model.layers.18.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
135
+ "model.layers.18.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
136
+ "model.layers.18.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
137
+ "model.layers.18.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
138
+ "model.layers.18.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
139
+ "model.layers.19.input_layernorm.weight": "model-00001-of-00002.safetensors",
140
+ "model.layers.19.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
141
+ "model.layers.19.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
142
+ "model.layers.19.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
143
+ "model.layers.19.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
144
+ "model.layers.19.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
145
+ "model.layers.19.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
146
+ "model.layers.19.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
147
+ "model.layers.19.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
148
+ "model.layers.19.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
149
+ "model.layers.19.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
150
+ "model.layers.19.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
151
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
152
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
153
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
154
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
155
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
156
+ "model.layers.2.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
157
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
158
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
159
+ "model.layers.2.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
160
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
161
+ "model.layers.2.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
162
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
163
+ "model.layers.20.input_layernorm.weight": "model-00001-of-00002.safetensors",
164
+ "model.layers.20.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
165
+ "model.layers.20.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
166
+ "model.layers.20.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
167
+ "model.layers.20.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
168
+ "model.layers.20.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
169
+ "model.layers.20.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
170
+ "model.layers.20.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
171
+ "model.layers.20.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
172
+ "model.layers.20.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
173
+ "model.layers.20.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
174
+ "model.layers.20.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
175
+ "model.layers.21.input_layernorm.weight": "model-00001-of-00002.safetensors",
176
+ "model.layers.21.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
177
+ "model.layers.21.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
178
+ "model.layers.21.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
179
+ "model.layers.21.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
180
+ "model.layers.21.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
181
+ "model.layers.21.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
182
+ "model.layers.21.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
183
+ "model.layers.21.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
184
+ "model.layers.21.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
185
+ "model.layers.21.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
186
+ "model.layers.21.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
187
+ "model.layers.22.input_layernorm.weight": "model-00001-of-00002.safetensors",
188
+ "model.layers.22.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
189
+ "model.layers.22.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
190
+ "model.layers.22.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
191
+ "model.layers.22.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
192
+ "model.layers.22.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
193
+ "model.layers.22.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
194
+ "model.layers.22.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
195
+ "model.layers.22.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
196
+ "model.layers.22.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
197
+ "model.layers.22.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
198
+ "model.layers.22.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
199
+ "model.layers.23.input_layernorm.weight": "model-00001-of-00002.safetensors",
200
+ "model.layers.23.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
201
+ "model.layers.23.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
202
+ "model.layers.23.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
203
+ "model.layers.23.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
204
+ "model.layers.23.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
205
+ "model.layers.23.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
206
+ "model.layers.23.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
207
+ "model.layers.23.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
208
+ "model.layers.23.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
209
+ "model.layers.23.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
210
+ "model.layers.23.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
211
+ "model.layers.24.input_layernorm.weight": "model-00002-of-00002.safetensors",
212
+ "model.layers.24.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
213
+ "model.layers.24.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
214
+ "model.layers.24.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
215
+ "model.layers.24.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
216
+ "model.layers.24.self_attn.k_proj.bias": "model-00002-of-00002.safetensors",
217
+ "model.layers.24.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
218
+ "model.layers.24.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
219
+ "model.layers.24.self_attn.q_proj.bias": "model-00002-of-00002.safetensors",
220
+ "model.layers.24.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
221
+ "model.layers.24.self_attn.v_proj.bias": "model-00002-of-00002.safetensors",
222
+ "model.layers.24.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
223
+ "model.layers.25.input_layernorm.weight": "model-00002-of-00002.safetensors",
224
+ "model.layers.25.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
225
+ "model.layers.25.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
226
+ "model.layers.25.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
227
+ "model.layers.25.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
228
+ "model.layers.25.self_attn.k_proj.bias": "model-00002-of-00002.safetensors",
229
+ "model.layers.25.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
230
+ "model.layers.25.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
231
+ "model.layers.25.self_attn.q_proj.bias": "model-00002-of-00002.safetensors",
232
+ "model.layers.25.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
233
+ "model.layers.25.self_attn.v_proj.bias": "model-00002-of-00002.safetensors",
234
+ "model.layers.25.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
235
+ "model.layers.26.input_layernorm.weight": "model-00002-of-00002.safetensors",
236
+ "model.layers.26.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
237
+ "model.layers.26.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
238
+ "model.layers.26.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
239
+ "model.layers.26.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
240
+ "model.layers.26.self_attn.k_proj.bias": "model-00002-of-00002.safetensors",
241
+ "model.layers.26.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
242
+ "model.layers.26.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
243
+ "model.layers.26.self_attn.q_proj.bias": "model-00002-of-00002.safetensors",
244
+ "model.layers.26.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
245
+ "model.layers.26.self_attn.v_proj.bias": "model-00002-of-00002.safetensors",
246
+ "model.layers.26.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
247
+ "model.layers.27.input_layernorm.weight": "model-00002-of-00002.safetensors",
248
+ "model.layers.27.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
249
+ "model.layers.27.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
250
+ "model.layers.27.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
251
+ "model.layers.27.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
252
+ "model.layers.27.self_attn.k_proj.bias": "model-00002-of-00002.safetensors",
253
+ "model.layers.27.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
254
+ "model.layers.27.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
255
+ "model.layers.27.self_attn.q_proj.bias": "model-00002-of-00002.safetensors",
256
+ "model.layers.27.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
257
+ "model.layers.27.self_attn.v_proj.bias": "model-00002-of-00002.safetensors",
258
+ "model.layers.27.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
259
+ "model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
260
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
261
+ "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
262
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
263
+ "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
264
+ "model.layers.3.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
265
+ "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
266
+ "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
267
+ "model.layers.3.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
268
+ "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
269
+ "model.layers.3.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
270
+ "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
271
+ "model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
272
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
273
+ "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
274
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
275
+ "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
276
+ "model.layers.4.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
277
+ "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
278
+ "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
279
+ "model.layers.4.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
280
+ "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
281
+ "model.layers.4.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
282
+ "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
283
+ "model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
284
+ "model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
285
+ "model.layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
286
+ "model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
287
+ "model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
288
+ "model.layers.5.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
289
+ "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
290
+ "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
291
+ "model.layers.5.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
292
+ "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
293
+ "model.layers.5.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
294
+ "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
295
+ "model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
296
+ "model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
297
+ "model.layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
298
+ "model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
299
+ "model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
300
+ "model.layers.6.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
301
+ "model.layers.6.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
302
+ "model.layers.6.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
303
+ "model.layers.6.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
304
+ "model.layers.6.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
305
+ "model.layers.6.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
306
+ "model.layers.6.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
307
+ "model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
308
+ "model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
309
+ "model.layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
310
+ "model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
311
+ "model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
312
+ "model.layers.7.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
313
+ "model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
314
+ "model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
315
+ "model.layers.7.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
316
+ "model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
317
+ "model.layers.7.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
318
+ "model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
319
+ "model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
320
+ "model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
321
+ "model.layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
322
+ "model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
323
+ "model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
324
+ "model.layers.8.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
325
+ "model.layers.8.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
326
+ "model.layers.8.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
327
+ "model.layers.8.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
328
+ "model.layers.8.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
329
+ "model.layers.8.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
330
+ "model.layers.8.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
331
+ "model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
332
+ "model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
333
+ "model.layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
334
+ "model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
335
+ "model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
336
+ "model.layers.9.self_attn.k_proj.bias": "model-00001-of-00002.safetensors",
337
+ "model.layers.9.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
338
+ "model.layers.9.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
339
+ "model.layers.9.self_attn.q_proj.bias": "model-00001-of-00002.safetensors",
340
+ "model.layers.9.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
341
+ "model.layers.9.self_attn.v_proj.bias": "model-00001-of-00002.safetensors",
342
+ "model.layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
343
+ "model.norm.weight": "model-00002-of-00002.safetensors",
344
+ "visual.blocks.0.attn.proj.bias": "model-00001-of-00002.safetensors",
345
+ "visual.blocks.0.attn.proj.weight": "model-00001-of-00002.safetensors",
346
+ "visual.blocks.0.attn.qkv.bias": "model-00001-of-00002.safetensors",
347
+ "visual.blocks.0.attn.qkv.weight": "model-00001-of-00002.safetensors",
348
+ "visual.blocks.0.mlp.fc1.bias": "model-00001-of-00002.safetensors",
349
+ "visual.blocks.0.mlp.fc1.weight": "model-00001-of-00002.safetensors",
350
+ "visual.blocks.0.mlp.fc2.bias": "model-00001-of-00002.safetensors",
351
+ "visual.blocks.0.mlp.fc2.weight": "model-00001-of-00002.safetensors",
352
+ "visual.blocks.0.norm1.bias": "model-00001-of-00002.safetensors",
353
+ "visual.blocks.0.norm1.weight": "model-00001-of-00002.safetensors",
354
+ "visual.blocks.0.norm2.bias": "model-00001-of-00002.safetensors",
355
+ "visual.blocks.0.norm2.weight": "model-00001-of-00002.safetensors",
356
+ "visual.blocks.1.attn.proj.bias": "model-00001-of-00002.safetensors",
357
+ "visual.blocks.1.attn.proj.weight": "model-00001-of-00002.safetensors",
358
+ "visual.blocks.1.attn.qkv.bias": "model-00001-of-00002.safetensors",
359
+ "visual.blocks.1.attn.qkv.weight": "model-00001-of-00002.safetensors",
360
+ "visual.blocks.1.mlp.fc1.bias": "model-00001-of-00002.safetensors",
361
+ "visual.blocks.1.mlp.fc1.weight": "model-00001-of-00002.safetensors",
362
+ "visual.blocks.1.mlp.fc2.bias": "model-00001-of-00002.safetensors",
363
+ "visual.blocks.1.mlp.fc2.weight": "model-00001-of-00002.safetensors",
364
+ "visual.blocks.1.norm1.bias": "model-00001-of-00002.safetensors",
365
+ "visual.blocks.1.norm1.weight": "model-00001-of-00002.safetensors",
366
+ "visual.blocks.1.norm2.bias": "model-00001-of-00002.safetensors",
367
+ "visual.blocks.1.norm2.weight": "model-00001-of-00002.safetensors",
368
+ "visual.blocks.10.attn.proj.bias": "model-00001-of-00002.safetensors",
369
+ "visual.blocks.10.attn.proj.weight": "model-00001-of-00002.safetensors",
370
+ "visual.blocks.10.attn.qkv.bias": "model-00001-of-00002.safetensors",
371
+ "visual.blocks.10.attn.qkv.weight": "model-00001-of-00002.safetensors",
372
+ "visual.blocks.10.mlp.fc1.bias": "model-00001-of-00002.safetensors",
373
+ "visual.blocks.10.mlp.fc1.weight": "model-00001-of-00002.safetensors",
374
+ "visual.blocks.10.mlp.fc2.bias": "model-00001-of-00002.safetensors",
375
+ "visual.blocks.10.mlp.fc2.weight": "model-00001-of-00002.safetensors",
376
+ "visual.blocks.10.norm1.bias": "model-00001-of-00002.safetensors",
377
+ "visual.blocks.10.norm1.weight": "model-00001-of-00002.safetensors",
378
+ "visual.blocks.10.norm2.bias": "model-00001-of-00002.safetensors",
379
+ "visual.blocks.10.norm2.weight": "model-00001-of-00002.safetensors",
380
+ "visual.blocks.11.attn.proj.bias": "model-00001-of-00002.safetensors",
381
+ "visual.blocks.11.attn.proj.weight": "model-00001-of-00002.safetensors",
382
+ "visual.blocks.11.attn.qkv.bias": "model-00001-of-00002.safetensors",
383
+ "visual.blocks.11.attn.qkv.weight": "model-00001-of-00002.safetensors",
384
+ "visual.blocks.11.mlp.fc1.bias": "model-00001-of-00002.safetensors",
385
+ "visual.blocks.11.mlp.fc1.weight": "model-00001-of-00002.safetensors",
386
+ "visual.blocks.11.mlp.fc2.bias": "model-00001-of-00002.safetensors",
387
+ "visual.blocks.11.mlp.fc2.weight": "model-00001-of-00002.safetensors",
388
+ "visual.blocks.11.norm1.bias": "model-00001-of-00002.safetensors",
389
+ "visual.blocks.11.norm1.weight": "model-00001-of-00002.safetensors",
390
+ "visual.blocks.11.norm2.bias": "model-00001-of-00002.safetensors",
391
+ "visual.blocks.11.norm2.weight": "model-00001-of-00002.safetensors",
392
+ "visual.blocks.12.attn.proj.bias": "model-00001-of-00002.safetensors",
393
+ "visual.blocks.12.attn.proj.weight": "model-00001-of-00002.safetensors",
394
+ "visual.blocks.12.attn.qkv.bias": "model-00001-of-00002.safetensors",
395
+ "visual.blocks.12.attn.qkv.weight": "model-00001-of-00002.safetensors",
396
+ "visual.blocks.12.mlp.fc1.bias": "model-00001-of-00002.safetensors",
397
+ "visual.blocks.12.mlp.fc1.weight": "model-00001-of-00002.safetensors",
398
+ "visual.blocks.12.mlp.fc2.bias": "model-00001-of-00002.safetensors",
399
+ "visual.blocks.12.mlp.fc2.weight": "model-00001-of-00002.safetensors",
400
+ "visual.blocks.12.norm1.bias": "model-00001-of-00002.safetensors",
401
+ "visual.blocks.12.norm1.weight": "model-00001-of-00002.safetensors",
402
+ "visual.blocks.12.norm2.bias": "model-00001-of-00002.safetensors",
403
+ "visual.blocks.12.norm2.weight": "model-00001-of-00002.safetensors",
404
+ "visual.blocks.13.attn.proj.bias": "model-00001-of-00002.safetensors",
405
+ "visual.blocks.13.attn.proj.weight": "model-00001-of-00002.safetensors",
406
+ "visual.blocks.13.attn.qkv.bias": "model-00001-of-00002.safetensors",
407
+ "visual.blocks.13.attn.qkv.weight": "model-00001-of-00002.safetensors",
408
+ "visual.blocks.13.mlp.fc1.bias": "model-00001-of-00002.safetensors",
409
+ "visual.blocks.13.mlp.fc1.weight": "model-00001-of-00002.safetensors",
410
+ "visual.blocks.13.mlp.fc2.bias": "model-00001-of-00002.safetensors",
411
+ "visual.blocks.13.mlp.fc2.weight": "model-00001-of-00002.safetensors",
412
+ "visual.blocks.13.norm1.bias": "model-00001-of-00002.safetensors",
413
+ "visual.blocks.13.norm1.weight": "model-00001-of-00002.safetensors",
414
+ "visual.blocks.13.norm2.bias": "model-00001-of-00002.safetensors",
415
+ "visual.blocks.13.norm2.weight": "model-00001-of-00002.safetensors",
416
+ "visual.blocks.14.attn.proj.bias": "model-00001-of-00002.safetensors",
417
+ "visual.blocks.14.attn.proj.weight": "model-00001-of-00002.safetensors",
418
+ "visual.blocks.14.attn.qkv.bias": "model-00001-of-00002.safetensors",
419
+ "visual.blocks.14.attn.qkv.weight": "model-00001-of-00002.safetensors",
420
+ "visual.blocks.14.mlp.fc1.bias": "model-00001-of-00002.safetensors",
421
+ "visual.blocks.14.mlp.fc1.weight": "model-00001-of-00002.safetensors",
422
+ "visual.blocks.14.mlp.fc2.bias": "model-00001-of-00002.safetensors",
423
+ "visual.blocks.14.mlp.fc2.weight": "model-00001-of-00002.safetensors",
424
+ "visual.blocks.14.norm1.bias": "model-00001-of-00002.safetensors",
425
+ "visual.blocks.14.norm1.weight": "model-00001-of-00002.safetensors",
426
+ "visual.blocks.14.norm2.bias": "model-00001-of-00002.safetensors",
427
+ "visual.blocks.14.norm2.weight": "model-00001-of-00002.safetensors",
428
+ "visual.blocks.15.attn.proj.bias": "model-00001-of-00002.safetensors",
429
+ "visual.blocks.15.attn.proj.weight": "model-00001-of-00002.safetensors",
430
+ "visual.blocks.15.attn.qkv.bias": "model-00001-of-00002.safetensors",
431
+ "visual.blocks.15.attn.qkv.weight": "model-00001-of-00002.safetensors",
432
+ "visual.blocks.15.mlp.fc1.bias": "model-00001-of-00002.safetensors",
433
+ "visual.blocks.15.mlp.fc1.weight": "model-00001-of-00002.safetensors",
434
+ "visual.blocks.15.mlp.fc2.bias": "model-00001-of-00002.safetensors",
435
+ "visual.blocks.15.mlp.fc2.weight": "model-00001-of-00002.safetensors",
436
+ "visual.blocks.15.norm1.bias": "model-00001-of-00002.safetensors",
437
+ "visual.blocks.15.norm1.weight": "model-00001-of-00002.safetensors",
438
+ "visual.blocks.15.norm2.bias": "model-00001-of-00002.safetensors",
439
+ "visual.blocks.15.norm2.weight": "model-00001-of-00002.safetensors",
440
+ "visual.blocks.16.attn.proj.bias": "model-00001-of-00002.safetensors",
441
+ "visual.blocks.16.attn.proj.weight": "model-00001-of-00002.safetensors",
442
+ "visual.blocks.16.attn.qkv.bias": "model-00001-of-00002.safetensors",
443
+ "visual.blocks.16.attn.qkv.weight": "model-00001-of-00002.safetensors",
444
+ "visual.blocks.16.mlp.fc1.bias": "model-00001-of-00002.safetensors",
445
+ "visual.blocks.16.mlp.fc1.weight": "model-00001-of-00002.safetensors",
446
+ "visual.blocks.16.mlp.fc2.bias": "model-00001-of-00002.safetensors",
447
+ "visual.blocks.16.mlp.fc2.weight": "model-00001-of-00002.safetensors",
448
+ "visual.blocks.16.norm1.bias": "model-00001-of-00002.safetensors",
449
+ "visual.blocks.16.norm1.weight": "model-00001-of-00002.safetensors",
450
+ "visual.blocks.16.norm2.bias": "model-00001-of-00002.safetensors",
451
+ "visual.blocks.16.norm2.weight": "model-00001-of-00002.safetensors",
452
+ "visual.blocks.17.attn.proj.bias": "model-00001-of-00002.safetensors",
453
+ "visual.blocks.17.attn.proj.weight": "model-00001-of-00002.safetensors",
454
+ "visual.blocks.17.attn.qkv.bias": "model-00001-of-00002.safetensors",
455
+ "visual.blocks.17.attn.qkv.weight": "model-00001-of-00002.safetensors",
456
+ "visual.blocks.17.mlp.fc1.bias": "model-00001-of-00002.safetensors",
457
+ "visual.blocks.17.mlp.fc1.weight": "model-00001-of-00002.safetensors",
458
+ "visual.blocks.17.mlp.fc2.bias": "model-00001-of-00002.safetensors",
459
+ "visual.blocks.17.mlp.fc2.weight": "model-00001-of-00002.safetensors",
460
+ "visual.blocks.17.norm1.bias": "model-00001-of-00002.safetensors",
461
+ "visual.blocks.17.norm1.weight": "model-00001-of-00002.safetensors",
462
+ "visual.blocks.17.norm2.bias": "model-00001-of-00002.safetensors",
463
+ "visual.blocks.17.norm2.weight": "model-00001-of-00002.safetensors",
464
+ "visual.blocks.18.attn.proj.bias": "model-00001-of-00002.safetensors",
465
+ "visual.blocks.18.attn.proj.weight": "model-00001-of-00002.safetensors",
466
+ "visual.blocks.18.attn.qkv.bias": "model-00001-of-00002.safetensors",
467
+ "visual.blocks.18.attn.qkv.weight": "model-00001-of-00002.safetensors",
468
+ "visual.blocks.18.mlp.fc1.bias": "model-00001-of-00002.safetensors",
469
+ "visual.blocks.18.mlp.fc1.weight": "model-00001-of-00002.safetensors",
470
+ "visual.blocks.18.mlp.fc2.bias": "model-00001-of-00002.safetensors",
471
+ "visual.blocks.18.mlp.fc2.weight": "model-00001-of-00002.safetensors",
472
+ "visual.blocks.18.norm1.bias": "model-00001-of-00002.safetensors",
473
+ "visual.blocks.18.norm1.weight": "model-00001-of-00002.safetensors",
474
+ "visual.blocks.18.norm2.bias": "model-00001-of-00002.safetensors",
475
+ "visual.blocks.18.norm2.weight": "model-00001-of-00002.safetensors",
476
+ "visual.blocks.19.attn.proj.bias": "model-00001-of-00002.safetensors",
477
+ "visual.blocks.19.attn.proj.weight": "model-00001-of-00002.safetensors",
478
+ "visual.blocks.19.attn.qkv.bias": "model-00001-of-00002.safetensors",
479
+ "visual.blocks.19.attn.qkv.weight": "model-00001-of-00002.safetensors",
480
+ "visual.blocks.19.mlp.fc1.bias": "model-00001-of-00002.safetensors",
481
+ "visual.blocks.19.mlp.fc1.weight": "model-00001-of-00002.safetensors",
482
+ "visual.blocks.19.mlp.fc2.bias": "model-00001-of-00002.safetensors",
483
+ "visual.blocks.19.mlp.fc2.weight": "model-00001-of-00002.safetensors",
484
+ "visual.blocks.19.norm1.bias": "model-00001-of-00002.safetensors",
485
+ "visual.blocks.19.norm1.weight": "model-00001-of-00002.safetensors",
486
+ "visual.blocks.19.norm2.bias": "model-00001-of-00002.safetensors",
487
+ "visual.blocks.19.norm2.weight": "model-00001-of-00002.safetensors",
488
+ "visual.blocks.2.attn.proj.bias": "model-00001-of-00002.safetensors",
489
+ "visual.blocks.2.attn.proj.weight": "model-00001-of-00002.safetensors",
490
+ "visual.blocks.2.attn.qkv.bias": "model-00001-of-00002.safetensors",
491
+ "visual.blocks.2.attn.qkv.weight": "model-00001-of-00002.safetensors",
492
+ "visual.blocks.2.mlp.fc1.bias": "model-00001-of-00002.safetensors",
493
+ "visual.blocks.2.mlp.fc1.weight": "model-00001-of-00002.safetensors",
494
+ "visual.blocks.2.mlp.fc2.bias": "model-00001-of-00002.safetensors",
495
+ "visual.blocks.2.mlp.fc2.weight": "model-00001-of-00002.safetensors",
496
+ "visual.blocks.2.norm1.bias": "model-00001-of-00002.safetensors",
497
+ "visual.blocks.2.norm1.weight": "model-00001-of-00002.safetensors",
498
+ "visual.blocks.2.norm2.bias": "model-00001-of-00002.safetensors",
499
+ "visual.blocks.2.norm2.weight": "model-00001-of-00002.safetensors",
500
+ "visual.blocks.20.attn.proj.bias": "model-00001-of-00002.safetensors",
501
+ "visual.blocks.20.attn.proj.weight": "model-00001-of-00002.safetensors",
502
+ "visual.blocks.20.attn.qkv.bias": "model-00001-of-00002.safetensors",
503
+ "visual.blocks.20.attn.qkv.weight": "model-00001-of-00002.safetensors",
504
+ "visual.blocks.20.mlp.fc1.bias": "model-00001-of-00002.safetensors",
505
+ "visual.blocks.20.mlp.fc1.weight": "model-00001-of-00002.safetensors",
506
+ "visual.blocks.20.mlp.fc2.bias": "model-00001-of-00002.safetensors",
507
+ "visual.blocks.20.mlp.fc2.weight": "model-00001-of-00002.safetensors",
508
+ "visual.blocks.20.norm1.bias": "model-00001-of-00002.safetensors",
509
+ "visual.blocks.20.norm1.weight": "model-00001-of-00002.safetensors",
510
+ "visual.blocks.20.norm2.bias": "model-00001-of-00002.safetensors",
511
+ "visual.blocks.20.norm2.weight": "model-00001-of-00002.safetensors",
512
+ "visual.blocks.21.attn.proj.bias": "model-00001-of-00002.safetensors",
513
+ "visual.blocks.21.attn.proj.weight": "model-00001-of-00002.safetensors",
514
+ "visual.blocks.21.attn.qkv.bias": "model-00001-of-00002.safetensors",
515
+ "visual.blocks.21.attn.qkv.weight": "model-00001-of-00002.safetensors",
516
+ "visual.blocks.21.mlp.fc1.bias": "model-00001-of-00002.safetensors",
517
+ "visual.blocks.21.mlp.fc1.weight": "model-00001-of-00002.safetensors",
518
+ "visual.blocks.21.mlp.fc2.bias": "model-00001-of-00002.safetensors",
519
+ "visual.blocks.21.mlp.fc2.weight": "model-00001-of-00002.safetensors",
520
+ "visual.blocks.21.norm1.bias": "model-00001-of-00002.safetensors",
521
+ "visual.blocks.21.norm1.weight": "model-00001-of-00002.safetensors",
522
+ "visual.blocks.21.norm2.bias": "model-00001-of-00002.safetensors",
523
+ "visual.blocks.21.norm2.weight": "model-00001-of-00002.safetensors",
524
+ "visual.blocks.22.attn.proj.bias": "model-00001-of-00002.safetensors",
525
+ "visual.blocks.22.attn.proj.weight": "model-00001-of-00002.safetensors",
526
+ "visual.blocks.22.attn.qkv.bias": "model-00001-of-00002.safetensors",
527
+ "visual.blocks.22.attn.qkv.weight": "model-00001-of-00002.safetensors",
528
+ "visual.blocks.22.mlp.fc1.bias": "model-00001-of-00002.safetensors",
529
+ "visual.blocks.22.mlp.fc1.weight": "model-00001-of-00002.safetensors",
530
+ "visual.blocks.22.mlp.fc2.bias": "model-00001-of-00002.safetensors",
531
+ "visual.blocks.22.mlp.fc2.weight": "model-00001-of-00002.safetensors",
532
+ "visual.blocks.22.norm1.bias": "model-00001-of-00002.safetensors",
533
+ "visual.blocks.22.norm1.weight": "model-00001-of-00002.safetensors",
534
+ "visual.blocks.22.norm2.bias": "model-00001-of-00002.safetensors",
535
+ "visual.blocks.22.norm2.weight": "model-00001-of-00002.safetensors",
536
+ "visual.blocks.23.attn.proj.bias": "model-00001-of-00002.safetensors",
537
+ "visual.blocks.23.attn.proj.weight": "model-00001-of-00002.safetensors",
538
+ "visual.blocks.23.attn.qkv.bias": "model-00001-of-00002.safetensors",
539
+ "visual.blocks.23.attn.qkv.weight": "model-00001-of-00002.safetensors",
540
+ "visual.blocks.23.mlp.fc1.bias": "model-00001-of-00002.safetensors",
541
+ "visual.blocks.23.mlp.fc1.weight": "model-00001-of-00002.safetensors",
542
+ "visual.blocks.23.mlp.fc2.bias": "model-00001-of-00002.safetensors",
543
+ "visual.blocks.23.mlp.fc2.weight": "model-00001-of-00002.safetensors",
544
+ "visual.blocks.23.norm1.bias": "model-00001-of-00002.safetensors",
545
+ "visual.blocks.23.norm1.weight": "model-00001-of-00002.safetensors",
546
+ "visual.blocks.23.norm2.bias": "model-00001-of-00002.safetensors",
547
+ "visual.blocks.23.norm2.weight": "model-00001-of-00002.safetensors",
548
+ "visual.blocks.24.attn.proj.bias": "model-00001-of-00002.safetensors",
549
+ "visual.blocks.24.attn.proj.weight": "model-00001-of-00002.safetensors",
550
+ "visual.blocks.24.attn.qkv.bias": "model-00001-of-00002.safetensors",
551
+ "visual.blocks.24.attn.qkv.weight": "model-00001-of-00002.safetensors",
552
+ "visual.blocks.24.mlp.fc1.bias": "model-00001-of-00002.safetensors",
553
+ "visual.blocks.24.mlp.fc1.weight": "model-00001-of-00002.safetensors",
554
+ "visual.blocks.24.mlp.fc2.bias": "model-00001-of-00002.safetensors",
555
+ "visual.blocks.24.mlp.fc2.weight": "model-00001-of-00002.safetensors",
556
+ "visual.blocks.24.norm1.bias": "model-00001-of-00002.safetensors",
557
+ "visual.blocks.24.norm1.weight": "model-00001-of-00002.safetensors",
558
+ "visual.blocks.24.norm2.bias": "model-00001-of-00002.safetensors",
559
+ "visual.blocks.24.norm2.weight": "model-00001-of-00002.safetensors",
560
+ "visual.blocks.25.attn.proj.bias": "model-00001-of-00002.safetensors",
561
+ "visual.blocks.25.attn.proj.weight": "model-00001-of-00002.safetensors",
562
+ "visual.blocks.25.attn.qkv.bias": "model-00001-of-00002.safetensors",
563
+ "visual.blocks.25.attn.qkv.weight": "model-00001-of-00002.safetensors",
564
+ "visual.blocks.25.mlp.fc1.bias": "model-00001-of-00002.safetensors",
565
+ "visual.blocks.25.mlp.fc1.weight": "model-00001-of-00002.safetensors",
566
+ "visual.blocks.25.mlp.fc2.bias": "model-00001-of-00002.safetensors",
567
+ "visual.blocks.25.mlp.fc2.weight": "model-00001-of-00002.safetensors",
568
+ "visual.blocks.25.norm1.bias": "model-00001-of-00002.safetensors",
569
+ "visual.blocks.25.norm1.weight": "model-00001-of-00002.safetensors",
570
+ "visual.blocks.25.norm2.bias": "model-00001-of-00002.safetensors",
571
+ "visual.blocks.25.norm2.weight": "model-00001-of-00002.safetensors",
572
+ "visual.blocks.26.attn.proj.bias": "model-00001-of-00002.safetensors",
573
+ "visual.blocks.26.attn.proj.weight": "model-00001-of-00002.safetensors",
574
+ "visual.blocks.26.attn.qkv.bias": "model-00001-of-00002.safetensors",
575
+ "visual.blocks.26.attn.qkv.weight": "model-00001-of-00002.safetensors",
576
+ "visual.blocks.26.mlp.fc1.bias": "model-00001-of-00002.safetensors",
577
+ "visual.blocks.26.mlp.fc1.weight": "model-00001-of-00002.safetensors",
578
+ "visual.blocks.26.mlp.fc2.bias": "model-00001-of-00002.safetensors",
579
+ "visual.blocks.26.mlp.fc2.weight": "model-00001-of-00002.safetensors",
580
+ "visual.blocks.26.norm1.bias": "model-00001-of-00002.safetensors",
581
+ "visual.blocks.26.norm1.weight": "model-00001-of-00002.safetensors",
582
+ "visual.blocks.26.norm2.bias": "model-00001-of-00002.safetensors",
583
+ "visual.blocks.26.norm2.weight": "model-00001-of-00002.safetensors",
584
+ "visual.blocks.27.attn.proj.bias": "model-00001-of-00002.safetensors",
585
+ "visual.blocks.27.attn.proj.weight": "model-00001-of-00002.safetensors",
586
+ "visual.blocks.27.attn.qkv.bias": "model-00001-of-00002.safetensors",
587
+ "visual.blocks.27.attn.qkv.weight": "model-00001-of-00002.safetensors",
588
+ "visual.blocks.27.mlp.fc1.bias": "model-00001-of-00002.safetensors",
589
+ "visual.blocks.27.mlp.fc1.weight": "model-00001-of-00002.safetensors",
590
+ "visual.blocks.27.mlp.fc2.bias": "model-00001-of-00002.safetensors",
591
+ "visual.blocks.27.mlp.fc2.weight": "model-00001-of-00002.safetensors",
592
+ "visual.blocks.27.norm1.bias": "model-00001-of-00002.safetensors",
593
+ "visual.blocks.27.norm1.weight": "model-00001-of-00002.safetensors",
594
+ "visual.blocks.27.norm2.bias": "model-00001-of-00002.safetensors",
595
+ "visual.blocks.27.norm2.weight": "model-00001-of-00002.safetensors",
596
+ "visual.blocks.28.attn.proj.bias": "model-00001-of-00002.safetensors",
597
+ "visual.blocks.28.attn.proj.weight": "model-00001-of-00002.safetensors",
598
+ "visual.blocks.28.attn.qkv.bias": "model-00001-of-00002.safetensors",
599
+ "visual.blocks.28.attn.qkv.weight": "model-00001-of-00002.safetensors",
600
+ "visual.blocks.28.mlp.fc1.bias": "model-00001-of-00002.safetensors",
601
+ "visual.blocks.28.mlp.fc1.weight": "model-00001-of-00002.safetensors",
602
+ "visual.blocks.28.mlp.fc2.bias": "model-00001-of-00002.safetensors",
603
+ "visual.blocks.28.mlp.fc2.weight": "model-00001-of-00002.safetensors",
604
+ "visual.blocks.28.norm1.bias": "model-00001-of-00002.safetensors",
605
+ "visual.blocks.28.norm1.weight": "model-00001-of-00002.safetensors",
606
+ "visual.blocks.28.norm2.bias": "model-00001-of-00002.safetensors",
607
+ "visual.blocks.28.norm2.weight": "model-00001-of-00002.safetensors",
608
+ "visual.blocks.29.attn.proj.bias": "model-00001-of-00002.safetensors",
609
+ "visual.blocks.29.attn.proj.weight": "model-00001-of-00002.safetensors",
610
+ "visual.blocks.29.attn.qkv.bias": "model-00001-of-00002.safetensors",
611
+ "visual.blocks.29.attn.qkv.weight": "model-00001-of-00002.safetensors",
612
+ "visual.blocks.29.mlp.fc1.bias": "model-00001-of-00002.safetensors",
613
+ "visual.blocks.29.mlp.fc1.weight": "model-00001-of-00002.safetensors",
614
+ "visual.blocks.29.mlp.fc2.bias": "model-00001-of-00002.safetensors",
615
+ "visual.blocks.29.mlp.fc2.weight": "model-00001-of-00002.safetensors",
616
+ "visual.blocks.29.norm1.bias": "model-00001-of-00002.safetensors",
617
+ "visual.blocks.29.norm1.weight": "model-00001-of-00002.safetensors",
618
+ "visual.blocks.29.norm2.bias": "model-00001-of-00002.safetensors",
619
+ "visual.blocks.29.norm2.weight": "model-00001-of-00002.safetensors",
620
+ "visual.blocks.3.attn.proj.bias": "model-00001-of-00002.safetensors",
621
+ "visual.blocks.3.attn.proj.weight": "model-00001-of-00002.safetensors",
622
+ "visual.blocks.3.attn.qkv.bias": "model-00001-of-00002.safetensors",
623
+ "visual.blocks.3.attn.qkv.weight": "model-00001-of-00002.safetensors",
624
+ "visual.blocks.3.mlp.fc1.bias": "model-00001-of-00002.safetensors",
625
+ "visual.blocks.3.mlp.fc1.weight": "model-00001-of-00002.safetensors",
626
+ "visual.blocks.3.mlp.fc2.bias": "model-00001-of-00002.safetensors",
627
+ "visual.blocks.3.mlp.fc2.weight": "model-00001-of-00002.safetensors",
628
+ "visual.blocks.3.norm1.bias": "model-00001-of-00002.safetensors",
629
+ "visual.blocks.3.norm1.weight": "model-00001-of-00002.safetensors",
630
+ "visual.blocks.3.norm2.bias": "model-00001-of-00002.safetensors",
631
+ "visual.blocks.3.norm2.weight": "model-00001-of-00002.safetensors",
632
+ "visual.blocks.30.attn.proj.bias": "model-00001-of-00002.safetensors",
633
+ "visual.blocks.30.attn.proj.weight": "model-00001-of-00002.safetensors",
634
+ "visual.blocks.30.attn.qkv.bias": "model-00001-of-00002.safetensors",
635
+ "visual.blocks.30.attn.qkv.weight": "model-00001-of-00002.safetensors",
636
+ "visual.blocks.30.mlp.fc1.bias": "model-00001-of-00002.safetensors",
637
+ "visual.blocks.30.mlp.fc1.weight": "model-00001-of-00002.safetensors",
638
+ "visual.blocks.30.mlp.fc2.bias": "model-00001-of-00002.safetensors",
639
+ "visual.blocks.30.mlp.fc2.weight": "model-00001-of-00002.safetensors",
640
+ "visual.blocks.30.norm1.bias": "model-00001-of-00002.safetensors",
641
+ "visual.blocks.30.norm1.weight": "model-00001-of-00002.safetensors",
642
+ "visual.blocks.30.norm2.bias": "model-00001-of-00002.safetensors",
643
+ "visual.blocks.30.norm2.weight": "model-00001-of-00002.safetensors",
644
+ "visual.blocks.31.attn.proj.bias": "model-00001-of-00002.safetensors",
645
+ "visual.blocks.31.attn.proj.weight": "model-00001-of-00002.safetensors",
646
+ "visual.blocks.31.attn.qkv.bias": "model-00001-of-00002.safetensors",
647
+ "visual.blocks.31.attn.qkv.weight": "model-00001-of-00002.safetensors",
648
+ "visual.blocks.31.mlp.fc1.bias": "model-00001-of-00002.safetensors",
649
+ "visual.blocks.31.mlp.fc1.weight": "model-00001-of-00002.safetensors",
650
+ "visual.blocks.31.mlp.fc2.bias": "model-00001-of-00002.safetensors",
651
+ "visual.blocks.31.mlp.fc2.weight": "model-00001-of-00002.safetensors",
652
+ "visual.blocks.31.norm1.bias": "model-00001-of-00002.safetensors",
653
+ "visual.blocks.31.norm1.weight": "model-00001-of-00002.safetensors",
654
+ "visual.blocks.31.norm2.bias": "model-00001-of-00002.safetensors",
655
+ "visual.blocks.31.norm2.weight": "model-00001-of-00002.safetensors",
656
+ "visual.blocks.4.attn.proj.bias": "model-00001-of-00002.safetensors",
657
+ "visual.blocks.4.attn.proj.weight": "model-00001-of-00002.safetensors",
658
+ "visual.blocks.4.attn.qkv.bias": "model-00001-of-00002.safetensors",
659
+ "visual.blocks.4.attn.qkv.weight": "model-00001-of-00002.safetensors",
660
+ "visual.blocks.4.mlp.fc1.bias": "model-00001-of-00002.safetensors",
661
+ "visual.blocks.4.mlp.fc1.weight": "model-00001-of-00002.safetensors",
662
+ "visual.blocks.4.mlp.fc2.bias": "model-00001-of-00002.safetensors",
663
+ "visual.blocks.4.mlp.fc2.weight": "model-00001-of-00002.safetensors",
664
+ "visual.blocks.4.norm1.bias": "model-00001-of-00002.safetensors",
665
+ "visual.blocks.4.norm1.weight": "model-00001-of-00002.safetensors",
666
+ "visual.blocks.4.norm2.bias": "model-00001-of-00002.safetensors",
667
+ "visual.blocks.4.norm2.weight": "model-00001-of-00002.safetensors",
668
+ "visual.blocks.5.attn.proj.bias": "model-00001-of-00002.safetensors",
669
+ "visual.blocks.5.attn.proj.weight": "model-00001-of-00002.safetensors",
670
+ "visual.blocks.5.attn.qkv.bias": "model-00001-of-00002.safetensors",
671
+ "visual.blocks.5.attn.qkv.weight": "model-00001-of-00002.safetensors",
672
+ "visual.blocks.5.mlp.fc1.bias": "model-00001-of-00002.safetensors",
673
+ "visual.blocks.5.mlp.fc1.weight": "model-00001-of-00002.safetensors",
674
+ "visual.blocks.5.mlp.fc2.bias": "model-00001-of-00002.safetensors",
675
+ "visual.blocks.5.mlp.fc2.weight": "model-00001-of-00002.safetensors",
676
+ "visual.blocks.5.norm1.bias": "model-00001-of-00002.safetensors",
677
+ "visual.blocks.5.norm1.weight": "model-00001-of-00002.safetensors",
678
+ "visual.blocks.5.norm2.bias": "model-00001-of-00002.safetensors",
679
+ "visual.blocks.5.norm2.weight": "model-00001-of-00002.safetensors",
680
+ "visual.blocks.6.attn.proj.bias": "model-00001-of-00002.safetensors",
681
+ "visual.blocks.6.attn.proj.weight": "model-00001-of-00002.safetensors",
682
+ "visual.blocks.6.attn.qkv.bias": "model-00001-of-00002.safetensors",
683
+ "visual.blocks.6.attn.qkv.weight": "model-00001-of-00002.safetensors",
684
+ "visual.blocks.6.mlp.fc1.bias": "model-00001-of-00002.safetensors",
685
+ "visual.blocks.6.mlp.fc1.weight": "model-00001-of-00002.safetensors",
686
+ "visual.blocks.6.mlp.fc2.bias": "model-00001-of-00002.safetensors",
687
+ "visual.blocks.6.mlp.fc2.weight": "model-00001-of-00002.safetensors",
688
+ "visual.blocks.6.norm1.bias": "model-00001-of-00002.safetensors",
689
+ "visual.blocks.6.norm1.weight": "model-00001-of-00002.safetensors",
690
+ "visual.blocks.6.norm2.bias": "model-00001-of-00002.safetensors",
691
+ "visual.blocks.6.norm2.weight": "model-00001-of-00002.safetensors",
692
+ "visual.blocks.7.attn.proj.bias": "model-00001-of-00002.safetensors",
693
+ "visual.blocks.7.attn.proj.weight": "model-00001-of-00002.safetensors",
694
+ "visual.blocks.7.attn.qkv.bias": "model-00001-of-00002.safetensors",
695
+ "visual.blocks.7.attn.qkv.weight": "model-00001-of-00002.safetensors",
696
+ "visual.blocks.7.mlp.fc1.bias": "model-00001-of-00002.safetensors",
697
+ "visual.blocks.7.mlp.fc1.weight": "model-00001-of-00002.safetensors",
698
+ "visual.blocks.7.mlp.fc2.bias": "model-00001-of-00002.safetensors",
699
+ "visual.blocks.7.mlp.fc2.weight": "model-00001-of-00002.safetensors",
700
+ "visual.blocks.7.norm1.bias": "model-00001-of-00002.safetensors",
701
+ "visual.blocks.7.norm1.weight": "model-00001-of-00002.safetensors",
702
+ "visual.blocks.7.norm2.bias": "model-00001-of-00002.safetensors",
703
+ "visual.blocks.7.norm2.weight": "model-00001-of-00002.safetensors",
704
+ "visual.blocks.8.attn.proj.bias": "model-00001-of-00002.safetensors",
705
+ "visual.blocks.8.attn.proj.weight": "model-00001-of-00002.safetensors",
706
+ "visual.blocks.8.attn.qkv.bias": "model-00001-of-00002.safetensors",
707
+ "visual.blocks.8.attn.qkv.weight": "model-00001-of-00002.safetensors",
708
+ "visual.blocks.8.mlp.fc1.bias": "model-00001-of-00002.safetensors",
709
+ "visual.blocks.8.mlp.fc1.weight": "model-00001-of-00002.safetensors",
710
+ "visual.blocks.8.mlp.fc2.bias": "model-00001-of-00002.safetensors",
711
+ "visual.blocks.8.mlp.fc2.weight": "model-00001-of-00002.safetensors",
712
+ "visual.blocks.8.norm1.bias": "model-00001-of-00002.safetensors",
713
+ "visual.blocks.8.norm1.weight": "model-00001-of-00002.safetensors",
714
+ "visual.blocks.8.norm2.bias": "model-00001-of-00002.safetensors",
715
+ "visual.blocks.8.norm2.weight": "model-00001-of-00002.safetensors",
716
+ "visual.blocks.9.attn.proj.bias": "model-00001-of-00002.safetensors",
717
+ "visual.blocks.9.attn.proj.weight": "model-00001-of-00002.safetensors",
718
+ "visual.blocks.9.attn.qkv.bias": "model-00001-of-00002.safetensors",
719
+ "visual.blocks.9.attn.qkv.weight": "model-00001-of-00002.safetensors",
720
+ "visual.blocks.9.mlp.fc1.bias": "model-00001-of-00002.safetensors",
721
+ "visual.blocks.9.mlp.fc1.weight": "model-00001-of-00002.safetensors",
722
+ "visual.blocks.9.mlp.fc2.bias": "model-00001-of-00002.safetensors",
723
+ "visual.blocks.9.mlp.fc2.weight": "model-00001-of-00002.safetensors",
724
+ "visual.blocks.9.norm1.bias": "model-00001-of-00002.safetensors",
725
+ "visual.blocks.9.norm1.weight": "model-00001-of-00002.safetensors",
726
+ "visual.blocks.9.norm2.bias": "model-00001-of-00002.safetensors",
727
+ "visual.blocks.9.norm2.weight": "model-00001-of-00002.safetensors",
728
+ "visual.merger.ln_q.bias": "model-00001-of-00002.safetensors",
729
+ "visual.merger.ln_q.weight": "model-00001-of-00002.safetensors",
730
+ "visual.merger.mlp.0.bias": "model-00001-of-00002.safetensors",
731
+ "visual.merger.mlp.0.weight": "model-00001-of-00002.safetensors",
732
+ "visual.merger.mlp.2.bias": "model-00001-of-00002.safetensors",
733
+ "visual.merger.mlp.2.weight": "model-00001-of-00002.safetensors",
734
+ "visual.patch_embed.proj.weight": "model-00001-of-00002.safetensors"
735
+ }
736
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "min_pixels": 3136,
3
+ "max_pixels": 12845056,
4
+ "patch_size": 14,
5
+ "temporal_patch_size": 2,
6
+ "merge_size": 2,
7
+ "image_mean": [
8
+ 0.48145466,
9
+ 0.4578275,
10
+ 0.40821073
11
+ ],
12
+ "image_std": [
13
+ 0.26862954,
14
+ 0.26130258,
15
+ 0.27577711
16
+ ],
17
+ "image_processor_type": "Qwen2VLImageProcessor",
18
+ "processor_class": "Qwen2VLProcessor"
19
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151647": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "151648": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "151649": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "151650": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "151651": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "151652": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "151653": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "151654": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "151655": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "151656": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ }
116
+ },
117
+ "additional_special_tokens": ["<|im_start|>", "<|im_end|>", "<|object_ref_start|>","<|object_ref_end|>","<|box_start|>","<|box_end|>","<|quad_start|>","<|quad_end|>","<|vision_start|>","<|vision_end|>","<|vision_pad|>","<|image_pad|>","<|video_pad|>"],
118
+ "bos_token": null,
119
+ "chat_template": "{% 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\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% 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|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
120
+ "clean_up_tokenization_spaces": false,
121
+ "eos_token": "<|im_end|>",
122
+ "padding_side": "left",
123
+ "errors": "replace",
124
+ "model_max_length": 32768,
125
+ "pad_token": "<|endoftext|>",
126
+ "split_special_tokens": false,
127
+ "tokenizer_class": "Qwen2Tokenizer",
128
+ "unk_token": null
129
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff