Upload folder using huggingface_hub
Browse files- config.json +139 -66
- generation_config.json +2 -2
- model.safetensors +2 -2
- preprocessor_config.json +9 -1
- tokenizer_config.json +3 -3
- video_preprocessor_config.json +44 -0
config.json
CHANGED
@@ -3,13 +3,14 @@
|
|
3 |
"Qwen2_5_VLForConditionalGeneration"
|
4 |
],
|
5 |
"attention_dropout": 0.0,
|
|
|
6 |
"eos_token_id": 151645,
|
7 |
"hidden_act": "silu",
|
8 |
"hidden_size": 3584,
|
9 |
"image_token_id": 151655,
|
10 |
"initializer_range": 0.02,
|
11 |
"intermediate_size": 18944,
|
12 |
-
"max_position_embeddings":
|
13 |
"max_window_layers": 28,
|
14 |
"model_type": "qwen2_5_vl",
|
15 |
"num_attention_heads": 28,
|
@@ -26,72 +27,75 @@
|
|
26 |
"llm_int8_enable_fp32_cpu_offload": false,
|
27 |
"llm_int8_has_fp16_weight": false,
|
28 |
"llm_int8_skip_modules": [
|
|
|
|
|
29 |
"lm_head",
|
30 |
"multi_modal_projector",
|
31 |
"merger",
|
32 |
"modality_projection",
|
33 |
-
"
|
34 |
-
"visual.blocks.
|
35 |
-
"visual.blocks.
|
36 |
-
"visual.blocks.
|
37 |
-
"visual.blocks.
|
38 |
-
"visual.blocks.
|
39 |
-
"visual.blocks.
|
40 |
-
"visual.blocks.
|
41 |
-
"visual.blocks.
|
42 |
-
"visual.blocks.
|
43 |
-
"visual.blocks.
|
44 |
-
"visual.blocks.
|
45 |
-
"visual.blocks.
|
46 |
-
"visual.blocks.
|
47 |
-
"visual.blocks.26.mlp",
|
48 |
-
"visual.blocks.
|
49 |
-
"visual.blocks.
|
50 |
-
"visual.blocks.
|
51 |
-
"visual.blocks.
|
52 |
-
"visual.blocks.
|
53 |
-
"visual.blocks.
|
54 |
-
"visual.blocks.
|
55 |
-
"visual.blocks.
|
56 |
-
"visual.blocks.20.mlp",
|
57 |
-
"visual.blocks.
|
58 |
-
"visual.blocks.9.
|
59 |
-
"visual.blocks.
|
60 |
-
"visual.blocks.
|
61 |
-
"visual.blocks.
|
62 |
-
"visual.blocks.22.mlp",
|
63 |
-
"visual.blocks.18.mlp",
|
64 |
-
"visual.blocks.13.attn",
|
65 |
-
"visual.blocks.
|
66 |
-
"visual.blocks.
|
67 |
-
"visual.blocks.10.mlp",
|
68 |
-
"visual.blocks.
|
69 |
-
"visual.blocks.
|
70 |
-
"visual.blocks.
|
71 |
-
"visual.blocks.
|
72 |
-
"visual.blocks.
|
73 |
-
"visual.blocks.
|
74 |
-
"visual.blocks.
|
75 |
-
"visual.blocks.
|
76 |
-
"visual.blocks.
|
77 |
-
"visual.blocks.
|
78 |
-
"visual.blocks.
|
79 |
-
"visual.blocks.
|
80 |
-
"visual.blocks.
|
81 |
-
"visual.blocks.
|
82 |
-
"visual.blocks.
|
83 |
-
"visual.blocks.
|
84 |
-
"visual.blocks.
|
85 |
-
"visual.blocks.
|
86 |
-
"visual.blocks.
|
87 |
-
"visual.blocks.
|
88 |
-
"visual.blocks.
|
89 |
-
"visual.blocks.
|
90 |
-
"visual.blocks.
|
91 |
-
"visual.blocks.
|
92 |
-
"visual.blocks.
|
93 |
-
"visual.blocks.0.mlp",
|
94 |
-
"visual.blocks.
|
|
|
95 |
],
|
96 |
"llm_int8_threshold": 6.0,
|
97 |
"load_in_4bit": true,
|
@@ -110,15 +114,84 @@
|
|
110 |
},
|
111 |
"rope_theta": 1000000.0,
|
112 |
"sliding_window": 32768,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
"tie_word_embeddings": false,
|
114 |
-
"
|
115 |
-
"transformers_version": "4.51.3",
|
116 |
"unsloth_fixed": true,
|
117 |
"use_cache": true,
|
118 |
"use_sliding_window": false,
|
119 |
"video_token_id": 151656,
|
120 |
"vision_config": {
|
121 |
"depth": 32,
|
|
|
122 |
"fullatt_block_indexes": [
|
123 |
7,
|
124 |
15,
|
@@ -129,6 +202,7 @@
|
|
129 |
"hidden_size": 1280,
|
130 |
"in_channels": 3,
|
131 |
"in_chans": 3,
|
|
|
132 |
"intermediate_size": 3420,
|
133 |
"model_type": "qwen2_5_vl",
|
134 |
"num_heads": 16,
|
@@ -138,7 +212,6 @@
|
|
138 |
"spatial_patch_size": 14,
|
139 |
"temporal_patch_size": 2,
|
140 |
"tokens_per_second": 2,
|
141 |
-
"torch_dtype": "bfloat16",
|
142 |
"window_size": 112
|
143 |
},
|
144 |
"vision_end_token_id": 151653,
|
|
|
3 |
"Qwen2_5_VLForConditionalGeneration"
|
4 |
],
|
5 |
"attention_dropout": 0.0,
|
6 |
+
"dtype": "bfloat16",
|
7 |
"eos_token_id": 151645,
|
8 |
"hidden_act": "silu",
|
9 |
"hidden_size": 3584,
|
10 |
"image_token_id": 151655,
|
11 |
"initializer_range": 0.02,
|
12 |
"intermediate_size": 18944,
|
13 |
+
"max_position_embeddings": 32768,
|
14 |
"max_window_layers": 28,
|
15 |
"model_type": "qwen2_5_vl",
|
16 |
"num_attention_heads": 28,
|
|
|
27 |
"llm_int8_enable_fp32_cpu_offload": false,
|
28 |
"llm_int8_has_fp16_weight": false,
|
29 |
"llm_int8_skip_modules": [
|
30 |
+
"embed_tokens",
|
31 |
+
"embedding",
|
32 |
"lm_head",
|
33 |
"multi_modal_projector",
|
34 |
"merger",
|
35 |
"modality_projection",
|
36 |
+
"router",
|
37 |
+
"model.visual.blocks.31.mlp",
|
38 |
+
"model.visual.blocks.24.attn",
|
39 |
+
"model.visual.blocks.30.mlp",
|
40 |
+
"model.visual.blocks.30.attn",
|
41 |
+
"model.visual.blocks.25.attn",
|
42 |
+
"model.visual.blocks.29.attn",
|
43 |
+
"model.visual.blocks.26.attn",
|
44 |
+
"model.visual.blocks.28.attn",
|
45 |
+
"model.visual.blocks.19.attn",
|
46 |
+
"model.visual.blocks.29.mlp",
|
47 |
+
"model.visual.blocks.28.mlp",
|
48 |
+
"model.visual.blocks.31.attn",
|
49 |
+
"model.visual.blocks.25.mlp",
|
50 |
+
"model.visual.blocks.26.mlp",
|
51 |
+
"model.visual.blocks.20.attn",
|
52 |
+
"model.visual.blocks.27.mlp",
|
53 |
+
"model.visual.blocks.17.attn",
|
54 |
+
"model.visual.blocks.24.mlp",
|
55 |
+
"model.visual.blocks.18.attn",
|
56 |
+
"model.visual.blocks.16.attn",
|
57 |
+
"model.visual.blocks.11.attn",
|
58 |
+
"model.visual.blocks.21.mlp",
|
59 |
+
"model.visual.blocks.20.mlp",
|
60 |
+
"model.visual.blocks.23.mlp",
|
61 |
+
"model.visual.blocks.9.attn",
|
62 |
+
"model.visual.blocks.12.attn",
|
63 |
+
"model.visual.blocks.23.attn",
|
64 |
+
"model.visual.blocks.19.mlp",
|
65 |
+
"model.visual.blocks.22.mlp",
|
66 |
+
"model.visual.blocks.18.mlp",
|
67 |
+
"model.visual.blocks.13.attn",
|
68 |
+
"model.visual.blocks.8.attn",
|
69 |
+
"model.visual.blocks.11.mlp",
|
70 |
+
"model.visual.blocks.10.mlp",
|
71 |
+
"model.visual.blocks.6.attn",
|
72 |
+
"model.visual.blocks.15.mlp",
|
73 |
+
"model.visual.blocks.8.mlp",
|
74 |
+
"model.visual.blocks.9.mlp",
|
75 |
+
"model.visual.blocks.14.attn",
|
76 |
+
"model.visual.blocks.5.mlp",
|
77 |
+
"model.visual.blocks.14.mlp",
|
78 |
+
"model.visual.blocks.10.attn",
|
79 |
+
"model.visual.blocks.6.mlp",
|
80 |
+
"model.visual.blocks.7.mlp",
|
81 |
+
"model.visual.blocks.5.attn",
|
82 |
+
"model.visual.blocks.4.mlp",
|
83 |
+
"model.visual.blocks.16.mlp",
|
84 |
+
"model.visual.blocks.12.mlp",
|
85 |
+
"model.visual.blocks.13.mlp",
|
86 |
+
"model.visual.blocks.2.mlp",
|
87 |
+
"model.visual.blocks.3.mlp",
|
88 |
+
"model.visual.blocks.1.attn",
|
89 |
+
"model.visual.blocks.0.attn",
|
90 |
+
"model.visual.blocks.4.attn",
|
91 |
+
"model.visual.blocks.2.attn",
|
92 |
+
"model.visual.blocks.15.attn",
|
93 |
+
"model.visual.blocks.3.attn",
|
94 |
+
"model.visual.blocks.1.mlp",
|
95 |
+
"model.visual.blocks.17.mlp",
|
96 |
+
"model.visual.blocks.0.mlp",
|
97 |
+
"model.visual.blocks.7.attn",
|
98 |
+
"model.visual.blocks.31.mlp.down_proj"
|
99 |
],
|
100 |
"llm_int8_threshold": 6.0,
|
101 |
"load_in_4bit": true,
|
|
|
114 |
},
|
115 |
"rope_theta": 1000000.0,
|
116 |
"sliding_window": 32768,
|
117 |
+
"text_config": {
|
118 |
+
"architectures": [
|
119 |
+
"Qwen2_5_VLForConditionalGeneration"
|
120 |
+
],
|
121 |
+
"attention_dropout": 0.0,
|
122 |
+
"bos_token_id": 151643,
|
123 |
+
"dtype": "bfloat16",
|
124 |
+
"eos_token_id": 151645,
|
125 |
+
"hidden_act": "silu",
|
126 |
+
"hidden_size": 3584,
|
127 |
+
"image_token_id": null,
|
128 |
+
"initializer_range": 0.02,
|
129 |
+
"intermediate_size": 18944,
|
130 |
+
"layer_types": [
|
131 |
+
"full_attention",
|
132 |
+
"full_attention",
|
133 |
+
"full_attention",
|
134 |
+
"full_attention",
|
135 |
+
"full_attention",
|
136 |
+
"full_attention",
|
137 |
+
"full_attention",
|
138 |
+
"full_attention",
|
139 |
+
"full_attention",
|
140 |
+
"full_attention",
|
141 |
+
"full_attention",
|
142 |
+
"full_attention",
|
143 |
+
"full_attention",
|
144 |
+
"full_attention",
|
145 |
+
"full_attention",
|
146 |
+
"full_attention",
|
147 |
+
"full_attention",
|
148 |
+
"full_attention",
|
149 |
+
"full_attention",
|
150 |
+
"full_attention",
|
151 |
+
"full_attention",
|
152 |
+
"full_attention",
|
153 |
+
"full_attention",
|
154 |
+
"full_attention",
|
155 |
+
"full_attention",
|
156 |
+
"full_attention",
|
157 |
+
"full_attention",
|
158 |
+
"full_attention"
|
159 |
+
],
|
160 |
+
"max_position_embeddings": 128000,
|
161 |
+
"max_window_layers": 28,
|
162 |
+
"model_type": "qwen2_5_vl_text",
|
163 |
+
"num_attention_heads": 28,
|
164 |
+
"num_hidden_layers": 28,
|
165 |
+
"num_key_value_heads": 4,
|
166 |
+
"rms_norm_eps": 1e-06,
|
167 |
+
"rope_scaling": {
|
168 |
+
"mrope_section": [
|
169 |
+
16,
|
170 |
+
24,
|
171 |
+
24
|
172 |
+
],
|
173 |
+
"rope_type": "default",
|
174 |
+
"type": "default"
|
175 |
+
},
|
176 |
+
"rope_theta": 1000000.0,
|
177 |
+
"sliding_window": null,
|
178 |
+
"use_cache": true,
|
179 |
+
"use_sliding_window": false,
|
180 |
+
"video_token_id": null,
|
181 |
+
"vision_end_token_id": 151653,
|
182 |
+
"vision_start_token_id": 151652,
|
183 |
+
"vision_token_id": 151654,
|
184 |
+
"vocab_size": 152064
|
185 |
+
},
|
186 |
"tie_word_embeddings": false,
|
187 |
+
"transformers_version": "4.56.1",
|
|
|
188 |
"unsloth_fixed": true,
|
189 |
"use_cache": true,
|
190 |
"use_sliding_window": false,
|
191 |
"video_token_id": 151656,
|
192 |
"vision_config": {
|
193 |
"depth": 32,
|
194 |
+
"dtype": "bfloat16",
|
195 |
"fullatt_block_indexes": [
|
196 |
7,
|
197 |
15,
|
|
|
202 |
"hidden_size": 1280,
|
203 |
"in_channels": 3,
|
204 |
"in_chans": 3,
|
205 |
+
"initializer_range": 0.02,
|
206 |
"intermediate_size": 3420,
|
207 |
"model_type": "qwen2_5_vl",
|
208 |
"num_heads": 16,
|
|
|
212 |
"spatial_patch_size": 14,
|
213 |
"temporal_patch_size": 2,
|
214 |
"tokens_per_second": 2,
|
|
|
215 |
"window_size": 112
|
216 |
},
|
217 |
"vision_end_token_id": 151653,
|
generation_config.json
CHANGED
@@ -5,9 +5,9 @@
|
|
5 |
151645,
|
6 |
151643
|
7 |
],
|
8 |
-
"max_length":
|
9 |
"pad_token_id": 151654,
|
10 |
"repetition_penalty": 1.05,
|
11 |
"temperature": 1e-06,
|
12 |
-
"transformers_version": "4.
|
13 |
}
|
|
|
5 |
151645,
|
6 |
151643
|
7 |
],
|
8 |
+
"max_length": 32768,
|
9 |
"pad_token_id": 151654,
|
10 |
"repetition_penalty": 1.05,
|
11 |
"temperature": 1e-06,
|
12 |
+
"transformers_version": "4.56.1"
|
13 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7e6a35589c2fbb08b32aebd93b3d3da57b5716658487f92c91ae524dc8982661
|
3 |
+
size 6871229143
|
preprocessor_config.json
CHANGED
@@ -1,4 +1,10 @@
|
|
1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
"do_convert_rgb": true,
|
3 |
"do_normalize": true,
|
4 |
"do_rescale": true,
|
@@ -8,12 +14,13 @@
|
|
8 |
0.4578275,
|
9 |
0.40821073
|
10 |
],
|
11 |
-
"image_processor_type": "
|
12 |
"image_std": [
|
13 |
0.26862954,
|
14 |
0.26130258,
|
15 |
0.27577711
|
16 |
],
|
|
|
17 |
"max_pixels": 12845056,
|
18 |
"merge_size": 2,
|
19 |
"min_pixels": 3136,
|
@@ -21,6 +28,7 @@
|
|
21 |
"processor_class": "Qwen2_5_VLProcessor",
|
22 |
"resample": 3,
|
23 |
"rescale_factor": 0.00392156862745098,
|
|
|
24 |
"size": {
|
25 |
"longest_edge": 12845056,
|
26 |
"shortest_edge": 3136
|
|
|
1 |
{
|
2 |
+
"crop_size": null,
|
3 |
+
"data_format": "channels_first",
|
4 |
+
"default_to_square": true,
|
5 |
+
"device": null,
|
6 |
+
"disable_grouping": null,
|
7 |
+
"do_center_crop": null,
|
8 |
"do_convert_rgb": true,
|
9 |
"do_normalize": true,
|
10 |
"do_rescale": true,
|
|
|
14 |
0.4578275,
|
15 |
0.40821073
|
16 |
],
|
17 |
+
"image_processor_type": "Qwen2VLImageProcessorFast",
|
18 |
"image_std": [
|
19 |
0.26862954,
|
20 |
0.26130258,
|
21 |
0.27577711
|
22 |
],
|
23 |
+
"input_data_format": null,
|
24 |
"max_pixels": 12845056,
|
25 |
"merge_size": 2,
|
26 |
"min_pixels": 3136,
|
|
|
28 |
"processor_class": "Qwen2_5_VLProcessor",
|
29 |
"resample": 3,
|
30 |
"rescale_factor": 0.00392156862745098,
|
31 |
+
"return_tensors": null,
|
32 |
"size": {
|
33 |
"longest_edge": 12845056,
|
34 |
"shortest_edge": 3136
|
tokenizer_config.json
CHANGED
@@ -195,16 +195,16 @@
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
-
"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 %}",
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
"eos_token": "<|im_end|>",
|
201 |
"errors": "replace",
|
202 |
"extra_special_tokens": {},
|
203 |
-
"model_max_length":
|
204 |
"pad_token": "<|vision_pad|>",
|
205 |
"padding_side": "left",
|
206 |
"processor_class": "Qwen2_5_VLProcessor",
|
207 |
"split_special_tokens": false,
|
208 |
"tokenizer_class": "Qwen2Tokenizer",
|
209 |
-
"unk_token": null
|
|
|
210 |
}
|
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
|
|
198 |
"clean_up_tokenization_spaces": false,
|
199 |
"eos_token": "<|im_end|>",
|
200 |
"errors": "replace",
|
201 |
"extra_special_tokens": {},
|
202 |
+
"model_max_length": 32768,
|
203 |
"pad_token": "<|vision_pad|>",
|
204 |
"padding_side": "left",
|
205 |
"processor_class": "Qwen2_5_VLProcessor",
|
206 |
"split_special_tokens": false,
|
207 |
"tokenizer_class": "Qwen2Tokenizer",
|
208 |
+
"unk_token": null,
|
209 |
+
"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 %}"
|
210 |
}
|
video_preprocessor_config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": null,
|
3 |
+
"data_format": "channels_first",
|
4 |
+
"default_to_square": true,
|
5 |
+
"device": null,
|
6 |
+
"do_center_crop": null,
|
7 |
+
"do_convert_rgb": true,
|
8 |
+
"do_normalize": true,
|
9 |
+
"do_pad": null,
|
10 |
+
"do_rescale": true,
|
11 |
+
"do_resize": true,
|
12 |
+
"do_sample_frames": false,
|
13 |
+
"fps": null,
|
14 |
+
"image_mean": [
|
15 |
+
0.48145466,
|
16 |
+
0.4578275,
|
17 |
+
0.40821073
|
18 |
+
],
|
19 |
+
"image_std": [
|
20 |
+
0.26862954,
|
21 |
+
0.26130258,
|
22 |
+
0.27577711
|
23 |
+
],
|
24 |
+
"input_data_format": null,
|
25 |
+
"max_frames": 768,
|
26 |
+
"max_pixels": 12845056,
|
27 |
+
"merge_size": 2,
|
28 |
+
"min_frames": 4,
|
29 |
+
"min_pixels": 3136,
|
30 |
+
"num_frames": null,
|
31 |
+
"patch_size": 14,
|
32 |
+
"processor_class": "Qwen2_5_VLProcessor",
|
33 |
+
"resample": 3,
|
34 |
+
"rescale_factor": 0.00392156862745098,
|
35 |
+
"return_metadata": false,
|
36 |
+
"size": {
|
37 |
+
"longest_edge": 12845056,
|
38 |
+
"shortest_edge": 3136
|
39 |
+
},
|
40 |
+
"size_divisor": null,
|
41 |
+
"temporal_patch_size": 2,
|
42 |
+
"video_metadata": null,
|
43 |
+
"video_processor_type": "Qwen2VLVideoProcessor"
|
44 |
+
}
|