QingyiSi commited on
Commit
1d8024f
·
verified ·
1 Parent(s): 940c3d1

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
chat_template.jinja ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {%- if messages[0].content is string %}
5
+ {{- messages[0].content }}
6
+ {%- else %}
7
+ {%- for content in messages[0].content %}
8
+ {%- if 'text' in content %}
9
+ {{- content.text }}
10
+ {%- endif %}
11
+ {%- endfor %}
12
+ {%- endif %}
13
+ {{- '\n\n' }}
14
+ {%- endif %}
15
+ {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
16
+ {%- for tool in tools %}
17
+ {{- "\n" }}
18
+ {{- tool | tojson }}
19
+ {%- endfor %}
20
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
21
+ {%- else %}
22
+ {%- if messages[0].role == 'system' %}
23
+ {{- '<|im_start|>system\n' }}
24
+ {%- if messages[0].content is string %}
25
+ {{- messages[0].content }}
26
+ {%- else %}
27
+ {%- for content in messages[0].content %}
28
+ {%- if 'text' in content %}
29
+ {{- content.text }}
30
+ {%- endif %}
31
+ {%- endfor %}
32
+ {%- endif %}
33
+ {{- '<|im_end|>\n' }}
34
+ {%- endif %}
35
+ {%- endif %}
36
+ {%- set image_count = namespace(value=0) %}
37
+ {%- set video_count = namespace(value=0) %}
38
+ {%- for message in messages %}
39
+ {%- if message.role == "user" %}
40
+ {{- '<|im_start|>' + message.role + '\n' }}
41
+ {%- if message.content is string %}
42
+ {{- message.content }}
43
+ {%- else %}
44
+ {%- for content in message.content %}
45
+ {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
46
+ {%- set image_count.value = image_count.value + 1 %}
47
+ {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
48
+ <|vision_start|><|image_pad|><|vision_end|>
49
+ {%- elif content.type == 'video' or 'video' in content %}
50
+ {%- set video_count.value = video_count.value + 1 %}
51
+ {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
52
+ <|vision_start|><|video_pad|><|vision_end|>
53
+ {%- elif 'text' in content %}
54
+ {{- content.text }}
55
+ {%- endif %}
56
+ {%- endfor %}
57
+ {%- endif %}
58
+ {{- '<|im_end|>\n' }}
59
+ {%- elif message.role == "assistant" %}
60
+ {{- '<|im_start|>' + message.role + '\n' }}
61
+ {%- if message.content is string %}
62
+ {{- message.content }}
63
+ {%- else %}
64
+ {%- for content_item in message.content %}
65
+ {%- if 'text' in content_item %}
66
+ {{- content_item.text }}
67
+ {%- endif %}
68
+ {%- endfor %}
69
+ {%- endif %}
70
+ {%- if message.tool_calls %}
71
+ {%- for tool_call in message.tool_calls %}
72
+ {%- if (loop.first and message.content) or (not loop.first) %}
73
+ {{- '\n' }}
74
+ {%- endif %}
75
+ {%- if tool_call.function %}
76
+ {%- set tool_call = tool_call.function %}
77
+ {%- endif %}
78
+ {{- '<tool_call>\n{"name": "' }}
79
+ {{- tool_call.name }}
80
+ {{- '", "arguments": ' }}
81
+ {%- if tool_call.arguments is string %}
82
+ {{- tool_call.arguments }}
83
+ {%- else %}
84
+ {{- tool_call.arguments | tojson }}
85
+ {%- endif %}
86
+ {{- '}\n</tool_call>' }}
87
+ {%- endfor %}
88
+ {%- endif %}
89
+ {{- '<|im_end|>\n' }}
90
+ {%- elif message.role == "tool" %}
91
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
92
+ {{- '<|im_start|>user' }}
93
+ {%- endif %}
94
+ {{- '\n<tool_response>\n' }}
95
+ {%- if message.content is string %}
96
+ {{- message.content }}
97
+ {%- else %}
98
+ {%- for content in message.content %}
99
+ {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
100
+ {%- set image_count.value = image_count.value + 1 %}
101
+ {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
102
+ <|vision_start|><|image_pad|><|vision_end|>
103
+ {%- elif content.type == 'video' or 'video' in content %}
104
+ {%- set video_count.value = video_count.value + 1 %}
105
+ {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
106
+ <|vision_start|><|video_pad|><|vision_end|>
107
+ {%- elif 'text' in content %}
108
+ {{- content.text }}
109
+ {%- endif %}
110
+ {%- endfor %}
111
+ {%- endif %}
112
+ {{- '\n</tool_response>' }}
113
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
114
+ {{- '<|im_end|>\n' }}
115
+ {%- endif %}
116
+ {%- endif %}
117
+ {%- endfor %}
118
+ {%- if add_generation_prompt %}
119
+ {{- '<|im_start|>assistant\n' }}
120
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3VLForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "eos_token_id": 151645,
7
+ "hidden_size": 4096,
8
+ "image_token_id": 151655,
9
+ "model_type": "qwen3_vl",
10
+ "pad_token_id": 151643,
11
+ "quantization_config": {
12
+ "config_groups": {
13
+ "group_0": {
14
+ "format": "pack-quantized",
15
+ "input_activations": null,
16
+ "output_activations": null,
17
+ "targets": [
18
+ "Linear"
19
+ ],
20
+ "weights": {
21
+ "actorder": null,
22
+ "block_structure": null,
23
+ "dynamic": false,
24
+ "group_size": null,
25
+ "num_bits": 8,
26
+ "observer": "memoryless_minmax",
27
+ "observer_kwargs": {},
28
+ "scale_dtype": null,
29
+ "strategy": "channel",
30
+ "symmetric": true,
31
+ "type": "int",
32
+ "zp_dtype": null
33
+ }
34
+ }
35
+ },
36
+ "format": "pack-quantized",
37
+ "global_compression_ratio": null,
38
+ "ignore": [
39
+ "model.visual.blocks.0.attn.qkv",
40
+ "model.visual.blocks.0.attn.proj",
41
+ "model.visual.blocks.0.mlp.linear_fc1",
42
+ "model.visual.blocks.0.mlp.linear_fc2",
43
+ "model.visual.blocks.1.attn.qkv",
44
+ "model.visual.blocks.1.attn.proj",
45
+ "model.visual.blocks.1.mlp.linear_fc1",
46
+ "model.visual.blocks.1.mlp.linear_fc2",
47
+ "model.visual.blocks.2.attn.qkv",
48
+ "model.visual.blocks.2.attn.proj",
49
+ "model.visual.blocks.2.mlp.linear_fc1",
50
+ "model.visual.blocks.2.mlp.linear_fc2",
51
+ "model.visual.blocks.3.attn.qkv",
52
+ "model.visual.blocks.3.attn.proj",
53
+ "model.visual.blocks.3.mlp.linear_fc1",
54
+ "model.visual.blocks.3.mlp.linear_fc2",
55
+ "model.visual.blocks.4.attn.qkv",
56
+ "model.visual.blocks.4.attn.proj",
57
+ "model.visual.blocks.4.mlp.linear_fc1",
58
+ "model.visual.blocks.4.mlp.linear_fc2",
59
+ "model.visual.blocks.5.attn.qkv",
60
+ "model.visual.blocks.5.attn.proj",
61
+ "model.visual.blocks.5.mlp.linear_fc1",
62
+ "model.visual.blocks.5.mlp.linear_fc2",
63
+ "model.visual.blocks.6.attn.qkv",
64
+ "model.visual.blocks.6.attn.proj",
65
+ "model.visual.blocks.6.mlp.linear_fc1",
66
+ "model.visual.blocks.6.mlp.linear_fc2",
67
+ "model.visual.blocks.7.attn.qkv",
68
+ "model.visual.blocks.7.attn.proj",
69
+ "model.visual.blocks.7.mlp.linear_fc1",
70
+ "model.visual.blocks.7.mlp.linear_fc2",
71
+ "model.visual.blocks.8.attn.qkv",
72
+ "model.visual.blocks.8.attn.proj",
73
+ "model.visual.blocks.8.mlp.linear_fc1",
74
+ "model.visual.blocks.8.mlp.linear_fc2",
75
+ "model.visual.blocks.9.attn.qkv",
76
+ "model.visual.blocks.9.attn.proj",
77
+ "model.visual.blocks.9.mlp.linear_fc1",
78
+ "model.visual.blocks.9.mlp.linear_fc2",
79
+ "model.visual.blocks.10.attn.qkv",
80
+ "model.visual.blocks.10.attn.proj",
81
+ "model.visual.blocks.10.mlp.linear_fc1",
82
+ "model.visual.blocks.10.mlp.linear_fc2",
83
+ "model.visual.blocks.11.attn.qkv",
84
+ "model.visual.blocks.11.attn.proj",
85
+ "model.visual.blocks.11.mlp.linear_fc1",
86
+ "model.visual.blocks.11.mlp.linear_fc2",
87
+ "model.visual.blocks.12.attn.qkv",
88
+ "model.visual.blocks.12.attn.proj",
89
+ "model.visual.blocks.12.mlp.linear_fc1",
90
+ "model.visual.blocks.12.mlp.linear_fc2",
91
+ "model.visual.blocks.13.attn.qkv",
92
+ "model.visual.blocks.13.attn.proj",
93
+ "model.visual.blocks.13.mlp.linear_fc1",
94
+ "model.visual.blocks.13.mlp.linear_fc2",
95
+ "model.visual.blocks.14.attn.qkv",
96
+ "model.visual.blocks.14.attn.proj",
97
+ "model.visual.blocks.14.mlp.linear_fc1",
98
+ "model.visual.blocks.14.mlp.linear_fc2",
99
+ "model.visual.blocks.15.attn.qkv",
100
+ "model.visual.blocks.15.attn.proj",
101
+ "model.visual.blocks.15.mlp.linear_fc1",
102
+ "model.visual.blocks.15.mlp.linear_fc2",
103
+ "model.visual.blocks.16.attn.qkv",
104
+ "model.visual.blocks.16.attn.proj",
105
+ "model.visual.blocks.16.mlp.linear_fc1",
106
+ "model.visual.blocks.16.mlp.linear_fc2",
107
+ "model.visual.blocks.17.attn.qkv",
108
+ "model.visual.blocks.17.attn.proj",
109
+ "model.visual.blocks.17.mlp.linear_fc1",
110
+ "model.visual.blocks.17.mlp.linear_fc2",
111
+ "model.visual.blocks.18.attn.qkv",
112
+ "model.visual.blocks.18.attn.proj",
113
+ "model.visual.blocks.18.mlp.linear_fc1",
114
+ "model.visual.blocks.18.mlp.linear_fc2",
115
+ "model.visual.blocks.19.attn.qkv",
116
+ "model.visual.blocks.19.attn.proj",
117
+ "model.visual.blocks.19.mlp.linear_fc1",
118
+ "model.visual.blocks.19.mlp.linear_fc2",
119
+ "model.visual.blocks.20.attn.qkv",
120
+ "model.visual.blocks.20.attn.proj",
121
+ "model.visual.blocks.20.mlp.linear_fc1",
122
+ "model.visual.blocks.20.mlp.linear_fc2",
123
+ "model.visual.blocks.21.attn.qkv",
124
+ "model.visual.blocks.21.attn.proj",
125
+ "model.visual.blocks.21.mlp.linear_fc1",
126
+ "model.visual.blocks.21.mlp.linear_fc2",
127
+ "model.visual.blocks.22.attn.qkv",
128
+ "model.visual.blocks.22.attn.proj",
129
+ "model.visual.blocks.22.mlp.linear_fc1",
130
+ "model.visual.blocks.22.mlp.linear_fc2",
131
+ "model.visual.blocks.23.attn.qkv",
132
+ "model.visual.blocks.23.attn.proj",
133
+ "model.visual.blocks.23.mlp.linear_fc1",
134
+ "model.visual.blocks.23.mlp.linear_fc2",
135
+ "model.visual.blocks.24.attn.qkv",
136
+ "model.visual.blocks.24.attn.proj",
137
+ "model.visual.blocks.24.mlp.linear_fc1",
138
+ "model.visual.blocks.24.mlp.linear_fc2",
139
+ "model.visual.blocks.25.attn.qkv",
140
+ "model.visual.blocks.25.attn.proj",
141
+ "model.visual.blocks.25.mlp.linear_fc1",
142
+ "model.visual.blocks.25.mlp.linear_fc2",
143
+ "model.visual.blocks.26.attn.qkv",
144
+ "model.visual.blocks.26.attn.proj",
145
+ "model.visual.blocks.26.mlp.linear_fc1",
146
+ "model.visual.blocks.26.mlp.linear_fc2",
147
+ "model.visual.merger.linear_fc1",
148
+ "model.visual.merger.linear_fc2",
149
+ "model.visual.deepstack_merger_list.0.linear_fc1",
150
+ "model.visual.deepstack_merger_list.0.linear_fc2",
151
+ "model.visual.deepstack_merger_list.1.linear_fc1",
152
+ "model.visual.deepstack_merger_list.1.linear_fc2",
153
+ "model.visual.deepstack_merger_list.2.linear_fc1",
154
+ "model.visual.deepstack_merger_list.2.linear_fc2",
155
+ "lm_head"
156
+ ],
157
+ "kv_cache_scheme": null,
158
+ "quant_method": "compressed-tensors",
159
+ "quantization_status": "compressed",
160
+ "sparsity_config": {},
161
+ "transform_config": {},
162
+ "version": "0.17.1"
163
+ },
164
+ "text_config": {
165
+ "attention_bias": false,
166
+ "attention_dropout": 0.0,
167
+ "bos_token_id": 151643,
168
+ "dtype": "bfloat16",
169
+ "eos_token_id": 151645,
170
+ "head_dim": 128,
171
+ "hidden_act": "silu",
172
+ "hidden_size": 4096,
173
+ "initializer_range": 0.02,
174
+ "intermediate_size": 12288,
175
+ "max_position_embeddings": 262144,
176
+ "model_type": "qwen3_vl_text",
177
+ "num_attention_heads": 32,
178
+ "num_hidden_layers": 36,
179
+ "num_key_value_heads": 8,
180
+ "pad_token_id": 151643,
181
+ "rms_norm_eps": 1e-06,
182
+ "rope_parameters": {
183
+ "mrope_interleaved": true,
184
+ "mrope_section": [
185
+ 24,
186
+ 20,
187
+ 20
188
+ ],
189
+ "rope_theta": 5000000,
190
+ "rope_type": "default"
191
+ },
192
+ "use_cache": false,
193
+ "vocab_size": 151936
194
+ },
195
+ "tie_word_embeddings": false,
196
+ "transformers_version": "5.10.1",
197
+ "video_token_id": 151656,
198
+ "vision_config": {
199
+ "deepstack_visual_indexes": [
200
+ 8,
201
+ 16,
202
+ 24
203
+ ],
204
+ "depth": 27,
205
+ "dtype": "bfloat16",
206
+ "hidden_act": "gelu_pytorch_tanh",
207
+ "hidden_size": 1152,
208
+ "in_channels": 3,
209
+ "initializer_range": 0.02,
210
+ "intermediate_size": 4304,
211
+ "model_type": "qwen3_vl_vision",
212
+ "num_heads": 16,
213
+ "num_position_embeddings": 2304,
214
+ "out_hidden_size": 4096,
215
+ "pad_token_id": 151643,
216
+ "patch_size": 16,
217
+ "spatial_merge_size": 2,
218
+ "temporal_patch_size": 2
219
+ },
220
+ "vision_end_token_id": 151653,
221
+ "vision_start_token_id": 151652,
222
+ "vocab_size": 151936
223
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 151645
5
+ ],
6
+ "pad_token_id": 151643,
7
+ "transformers_version": "5.10.1",
8
+ "use_cache": false
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f581d04a110418ad93960ab0ccda781269e95bdce6fac9907065b9b572a7e40
3
+ size 10591442464
processor_config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "data_format": "channels_first",
4
+ "default_to_square": true,
5
+ "do_convert_rgb": true,
6
+ "do_normalize": true,
7
+ "do_rescale": true,
8
+ "do_resize": true,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_processor_type": "Qwen2VLImageProcessor",
15
+ "image_std": [
16
+ 0.5,
17
+ 0.5,
18
+ 0.5
19
+ ],
20
+ "merge_size": 2,
21
+ "patch_size": 16,
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "longest_edge": 16777216,
26
+ "shortest_edge": 65536
27
+ },
28
+ "temporal_patch_size": 2
29
+ },
30
+ "processor_class": "Qwen3VLProcessor",
31
+ "video_processor": {
32
+ "data_format": "channels_first",
33
+ "default_to_square": true,
34
+ "do_convert_rgb": true,
35
+ "do_normalize": true,
36
+ "do_rescale": true,
37
+ "do_resize": true,
38
+ "do_sample_frames": true,
39
+ "fps": 2,
40
+ "image_mean": [
41
+ 0.5,
42
+ 0.5,
43
+ 0.5
44
+ ],
45
+ "image_std": [
46
+ 0.5,
47
+ 0.5,
48
+ 0.5
49
+ ],
50
+ "max_frames": 768,
51
+ "merge_size": 2,
52
+ "min_frames": 4,
53
+ "patch_size": 16,
54
+ "resample": 3,
55
+ "rescale_factor": 0.00392156862745098,
56
+ "return_metadata": false,
57
+ "size": {
58
+ "longest_edge": 25165824,
59
+ "shortest_edge": 4096
60
+ },
61
+ "temporal_patch_size": 2,
62
+ "video_processor_type": "Qwen3VLVideoProcessor"
63
+ }
64
+ }
recipe.yaml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ default_stage:
2
+ default_modifiers:
3
+ QuantizationModifier:
4
+ config_groups:
5
+ group_0:
6
+ targets: [Linear]
7
+ weights:
8
+ num_bits: 8
9
+ type: int
10
+ symmetric: true
11
+ group_size: null
12
+ strategy: channel
13
+ block_structure: null
14
+ dynamic: false
15
+ actorder: null
16
+ scale_dtype: null
17
+ zp_dtype: null
18
+ observer: memoryless_minmax
19
+ observer_kwargs: {}
20
+ input_activations: null
21
+ output_activations: null
22
+ format: null
23
+ targets: [Linear]
24
+ ignore: ['re:.*lm_head', 're:visual.*', 're:model.visual.*', 're:.*mlp.gate$']
25
+ bypass_divisibility_checks: false
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81b7cfe146263a5f08f6dfcbcc4047b65307f4f67e3d0d62eebc1c9f6fd3567e
3
+ size 11423025
tokenizer_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "is_local": true,
9
+ "local_files_only": false,
10
+ "model_max_length": 262144,
11
+ "pad_token": "<|endoftext|>",
12
+ "padding_side": "right",
13
+ "processor_class": "Qwen3VLProcessor",
14
+ "split_special_tokens": false,
15
+ "tokenizer_class": "Qwen2Tokenizer",
16
+ "unk_token": null,
17
+ "use_fast": true
18
+ }