dangvansam commited on
Commit
3a363c8
·
verified ·
1 Parent(s): 2c913e5

Initial upload: chandra-ocr-2 FP8-dynamic quant

Browse files
config.json CHANGED
@@ -1,69 +1,109 @@
1
  {
2
  "architectures": [
3
- "Qwen3_5ForCausalLM"
4
  ],
5
- "attention_bias": false,
6
- "attention_dropout": 0.0,
7
- "attn_output_gate": true,
8
- "bos_token_id": null,
9
- "dtype": "bfloat16",
10
- "eos_token_id": 248044,
11
- "full_attention_interval": 4,
12
- "head_dim": 256,
13
- "hidden_act": "silu",
14
- "hidden_size": 2560,
15
- "initializer_range": 0.02,
16
- "intermediate_size": 9216,
17
- "layer_types": [
18
- "linear_attention",
19
- "linear_attention",
20
- "linear_attention",
21
- "full_attention",
22
- "linear_attention",
23
- "linear_attention",
24
- "linear_attention",
25
- "full_attention",
26
- "linear_attention",
27
- "linear_attention",
28
- "linear_attention",
29
- "full_attention",
30
- "linear_attention",
31
- "linear_attention",
32
- "linear_attention",
33
- "full_attention",
34
- "linear_attention",
35
- "linear_attention",
36
- "linear_attention",
37
- "full_attention",
38
- "linear_attention",
39
- "linear_attention",
40
- "linear_attention",
41
- "full_attention",
42
- "linear_attention",
43
- "linear_attention",
44
- "linear_attention",
45
- "full_attention",
46
- "linear_attention",
47
- "linear_attention",
48
- "linear_attention",
49
- "full_attention"
50
- ],
51
- "linear_conv_kernel_dim": 4,
52
- "linear_key_head_dim": 128,
53
- "linear_num_key_heads": 16,
54
- "linear_num_value_heads": 32,
55
- "linear_value_head_dim": 128,
56
- "mamba_ssm_dtype": "float32",
57
- "max_position_embeddings": 262144,
58
- "mlp_only_layers": [],
59
- "model_type": "qwen3_5_text",
60
- "mtp_num_hidden_layers": 1,
61
- "mtp_use_dedicated_embeddings": false,
62
- "num_attention_heads": 16,
63
- "num_hidden_layers": 32,
64
- "num_key_value_heads": 4,
65
- "pad_token_id": null,
66
- "partial_rotary_factor": 0.25,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  "quantization_config": {
68
  "config_groups": {
69
  "group_0": {
@@ -105,126 +145,224 @@
105
  "format": "float-quantized",
106
  "global_compression_ratio": null,
107
  "ignore": [
108
- "model.layers.0.linear_attn.out_proj",
109
- "model.layers.0.linear_attn.in_proj_qkv",
110
- "model.layers.0.linear_attn.in_proj_z",
111
- "model.layers.0.linear_attn.in_proj_b",
112
- "model.layers.0.linear_attn.in_proj_a",
113
- "model.layers.1.linear_attn.out_proj",
114
- "model.layers.1.linear_attn.in_proj_qkv",
115
- "model.layers.1.linear_attn.in_proj_z",
116
- "model.layers.1.linear_attn.in_proj_b",
117
- "model.layers.1.linear_attn.in_proj_a",
118
- "model.layers.2.linear_attn.out_proj",
119
- "model.layers.2.linear_attn.in_proj_qkv",
120
- "model.layers.2.linear_attn.in_proj_z",
121
- "model.layers.2.linear_attn.in_proj_b",
122
- "model.layers.2.linear_attn.in_proj_a",
123
- "model.layers.4.linear_attn.out_proj",
124
- "model.layers.4.linear_attn.in_proj_qkv",
125
- "model.layers.4.linear_attn.in_proj_z",
126
- "model.layers.4.linear_attn.in_proj_b",
127
- "model.layers.4.linear_attn.in_proj_a",
128
- "model.layers.5.linear_attn.out_proj",
129
- "model.layers.5.linear_attn.in_proj_qkv",
130
- "model.layers.5.linear_attn.in_proj_z",
131
- "model.layers.5.linear_attn.in_proj_b",
132
- "model.layers.5.linear_attn.in_proj_a",
133
- "model.layers.6.linear_attn.out_proj",
134
- "model.layers.6.linear_attn.in_proj_qkv",
135
- "model.layers.6.linear_attn.in_proj_z",
136
- "model.layers.6.linear_attn.in_proj_b",
137
- "model.layers.6.linear_attn.in_proj_a",
138
- "model.layers.8.linear_attn.out_proj",
139
- "model.layers.8.linear_attn.in_proj_qkv",
140
- "model.layers.8.linear_attn.in_proj_z",
141
- "model.layers.8.linear_attn.in_proj_b",
142
- "model.layers.8.linear_attn.in_proj_a",
143
- "model.layers.9.linear_attn.out_proj",
144
- "model.layers.9.linear_attn.in_proj_qkv",
145
- "model.layers.9.linear_attn.in_proj_z",
146
- "model.layers.9.linear_attn.in_proj_b",
147
- "model.layers.9.linear_attn.in_proj_a",
148
- "model.layers.10.linear_attn.out_proj",
149
- "model.layers.10.linear_attn.in_proj_qkv",
150
- "model.layers.10.linear_attn.in_proj_z",
151
- "model.layers.10.linear_attn.in_proj_b",
152
- "model.layers.10.linear_attn.in_proj_a",
153
- "model.layers.12.linear_attn.out_proj",
154
- "model.layers.12.linear_attn.in_proj_qkv",
155
- "model.layers.12.linear_attn.in_proj_z",
156
- "model.layers.12.linear_attn.in_proj_b",
157
- "model.layers.12.linear_attn.in_proj_a",
158
- "model.layers.13.linear_attn.out_proj",
159
- "model.layers.13.linear_attn.in_proj_qkv",
160
- "model.layers.13.linear_attn.in_proj_z",
161
- "model.layers.13.linear_attn.in_proj_b",
162
- "model.layers.13.linear_attn.in_proj_a",
163
- "model.layers.14.linear_attn.out_proj",
164
- "model.layers.14.linear_attn.in_proj_qkv",
165
- "model.layers.14.linear_attn.in_proj_z",
166
- "model.layers.14.linear_attn.in_proj_b",
167
- "model.layers.14.linear_attn.in_proj_a",
168
- "model.layers.16.linear_attn.out_proj",
169
- "model.layers.16.linear_attn.in_proj_qkv",
170
- "model.layers.16.linear_attn.in_proj_z",
171
- "model.layers.16.linear_attn.in_proj_b",
172
- "model.layers.16.linear_attn.in_proj_a",
173
- "model.layers.17.linear_attn.out_proj",
174
- "model.layers.17.linear_attn.in_proj_qkv",
175
- "model.layers.17.linear_attn.in_proj_z",
176
- "model.layers.17.linear_attn.in_proj_b",
177
- "model.layers.17.linear_attn.in_proj_a",
178
- "model.layers.18.linear_attn.out_proj",
179
- "model.layers.18.linear_attn.in_proj_qkv",
180
- "model.layers.18.linear_attn.in_proj_z",
181
- "model.layers.18.linear_attn.in_proj_b",
182
- "model.layers.18.linear_attn.in_proj_a",
183
- "model.layers.20.linear_attn.out_proj",
184
- "model.layers.20.linear_attn.in_proj_qkv",
185
- "model.layers.20.linear_attn.in_proj_z",
186
- "model.layers.20.linear_attn.in_proj_b",
187
- "model.layers.20.linear_attn.in_proj_a",
188
- "model.layers.21.linear_attn.out_proj",
189
- "model.layers.21.linear_attn.in_proj_qkv",
190
- "model.layers.21.linear_attn.in_proj_z",
191
- "model.layers.21.linear_attn.in_proj_b",
192
- "model.layers.21.linear_attn.in_proj_a",
193
- "model.layers.22.linear_attn.out_proj",
194
- "model.layers.22.linear_attn.in_proj_qkv",
195
- "model.layers.22.linear_attn.in_proj_z",
196
- "model.layers.22.linear_attn.in_proj_b",
197
- "model.layers.22.linear_attn.in_proj_a",
198
- "model.layers.24.linear_attn.out_proj",
199
- "model.layers.24.linear_attn.in_proj_qkv",
200
- "model.layers.24.linear_attn.in_proj_z",
201
- "model.layers.24.linear_attn.in_proj_b",
202
- "model.layers.24.linear_attn.in_proj_a",
203
- "model.layers.25.linear_attn.out_proj",
204
- "model.layers.25.linear_attn.in_proj_qkv",
205
- "model.layers.25.linear_attn.in_proj_z",
206
- "model.layers.25.linear_attn.in_proj_b",
207
- "model.layers.25.linear_attn.in_proj_a",
208
- "model.layers.26.linear_attn.out_proj",
209
- "model.layers.26.linear_attn.in_proj_qkv",
210
- "model.layers.26.linear_attn.in_proj_z",
211
- "model.layers.26.linear_attn.in_proj_b",
212
- "model.layers.26.linear_attn.in_proj_a",
213
- "model.layers.28.linear_attn.out_proj",
214
- "model.layers.28.linear_attn.in_proj_qkv",
215
- "model.layers.28.linear_attn.in_proj_z",
216
- "model.layers.28.linear_attn.in_proj_b",
217
- "model.layers.28.linear_attn.in_proj_a",
218
- "model.layers.29.linear_attn.out_proj",
219
- "model.layers.29.linear_attn.in_proj_qkv",
220
- "model.layers.29.linear_attn.in_proj_z",
221
- "model.layers.29.linear_attn.in_proj_b",
222
- "model.layers.29.linear_attn.in_proj_a",
223
- "model.layers.30.linear_attn.out_proj",
224
- "model.layers.30.linear_attn.in_proj_qkv",
225
- "model.layers.30.linear_attn.in_proj_z",
226
- "model.layers.30.linear_attn.in_proj_b",
227
- "model.layers.30.linear_attn.in_proj_a",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  "lm_head"
229
  ],
230
  "kv_cache_scheme": null,
@@ -232,22 +370,6 @@
232
  "quantization_status": "compressed",
233
  "sparsity_config": {},
234
  "transform_config": {},
235
- "version": "0.15.1.a20260413"
236
- },
237
- "rms_norm_eps": 1e-06,
238
- "rope_parameters": {
239
- "mrope_interleaved": true,
240
- "mrope_section": [
241
- 11,
242
- 11,
243
- 10
244
- ],
245
- "partial_rotary_factor": 0.25,
246
- "rope_theta": 10000000,
247
- "rope_type": "default"
248
- },
249
- "tie_word_embeddings": true,
250
- "transformers_version": "5.6.0.dev0",
251
- "use_cache": true,
252
- "vocab_size": 248320
253
  }
 
1
  {
2
  "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
  ],
5
+ "image_token_id": 248056,
6
+ "model_type": "qwen3_5",
7
+ "text_config": {
8
+ "attention_bias": false,
9
+ "attention_dropout": 0.0,
10
+ "attn_output_gate": true,
11
+ "bos_token_id": null,
12
+ "dtype": "bfloat16",
13
+ "eos_token_id": 248044,
14
+ "full_attention_interval": 4,
15
+ "head_dim": 256,
16
+ "hidden_act": "silu",
17
+ "hidden_size": 2560,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 9216,
20
+ "layer_types": [
21
+ "linear_attention",
22
+ "linear_attention",
23
+ "linear_attention",
24
+ "full_attention",
25
+ "linear_attention",
26
+ "linear_attention",
27
+ "linear_attention",
28
+ "full_attention",
29
+ "linear_attention",
30
+ "linear_attention",
31
+ "linear_attention",
32
+ "full_attention",
33
+ "linear_attention",
34
+ "linear_attention",
35
+ "linear_attention",
36
+ "full_attention",
37
+ "linear_attention",
38
+ "linear_attention",
39
+ "linear_attention",
40
+ "full_attention",
41
+ "linear_attention",
42
+ "linear_attention",
43
+ "linear_attention",
44
+ "full_attention",
45
+ "linear_attention",
46
+ "linear_attention",
47
+ "linear_attention",
48
+ "full_attention",
49
+ "linear_attention",
50
+ "linear_attention",
51
+ "linear_attention",
52
+ "full_attention"
53
+ ],
54
+ "linear_conv_kernel_dim": 4,
55
+ "linear_key_head_dim": 128,
56
+ "linear_num_key_heads": 16,
57
+ "linear_num_value_heads": 32,
58
+ "linear_value_head_dim": 128,
59
+ "mamba_ssm_dtype": "float32",
60
+ "max_position_embeddings": 262144,
61
+ "mlp_only_layers": [],
62
+ "model_type": "qwen3_5_text",
63
+ "mtp_num_hidden_layers": 1,
64
+ "mtp_use_dedicated_embeddings": false,
65
+ "num_attention_heads": 16,
66
+ "num_hidden_layers": 32,
67
+ "num_key_value_heads": 4,
68
+ "pad_token_id": null,
69
+ "partial_rotary_factor": 0.25,
70
+ "rms_norm_eps": 1e-06,
71
+ "rope_parameters": {
72
+ "mrope_interleaved": true,
73
+ "mrope_section": [
74
+ 11,
75
+ 11,
76
+ 10
77
+ ],
78
+ "partial_rotary_factor": 0.25,
79
+ "rope_theta": 10000000,
80
+ "rope_type": "default"
81
+ },
82
+ "tie_word_embeddings": true,
83
+ "use_cache": true,
84
+ "vocab_size": 248320
85
+ },
86
+ "tie_word_embeddings": true,
87
+ "transformers_version": "5.2.0",
88
+ "video_token_id": 248057,
89
+ "vision_config": {
90
+ "deepstack_visual_indexes": [],
91
+ "depth": 24,
92
+ "hidden_act": "gelu_pytorch_tanh",
93
+ "hidden_size": 1024,
94
+ "in_channels": 3,
95
+ "initializer_range": 0.02,
96
+ "intermediate_size": 4096,
97
+ "model_type": "qwen3_5",
98
+ "num_heads": 16,
99
+ "num_position_embeddings": 2304,
100
+ "out_hidden_size": 2560,
101
+ "patch_size": 16,
102
+ "spatial_merge_size": 2,
103
+ "temporal_patch_size": 2
104
+ },
105
+ "vision_end_token_id": 248054,
106
+ "vision_start_token_id": 248053,
107
  "quantization_config": {
108
  "config_groups": {
109
  "group_0": {
 
145
  "format": "float-quantized",
146
  "global_compression_ratio": null,
147
  "ignore": [
148
+ "model.visual.blocks.0.attn.qkv",
149
+ "model.visual.blocks.0.attn.proj",
150
+ "model.visual.blocks.0.mlp.linear_fc1",
151
+ "model.visual.blocks.0.mlp.linear_fc2",
152
+ "model.visual.blocks.1.attn.qkv",
153
+ "model.visual.blocks.1.attn.proj",
154
+ "model.visual.blocks.1.mlp.linear_fc1",
155
+ "model.visual.blocks.1.mlp.linear_fc2",
156
+ "model.visual.blocks.2.attn.qkv",
157
+ "model.visual.blocks.2.attn.proj",
158
+ "model.visual.blocks.2.mlp.linear_fc1",
159
+ "model.visual.blocks.2.mlp.linear_fc2",
160
+ "model.visual.blocks.3.attn.qkv",
161
+ "model.visual.blocks.3.attn.proj",
162
+ "model.visual.blocks.3.mlp.linear_fc1",
163
+ "model.visual.blocks.3.mlp.linear_fc2",
164
+ "model.visual.blocks.4.attn.qkv",
165
+ "model.visual.blocks.4.attn.proj",
166
+ "model.visual.blocks.4.mlp.linear_fc1",
167
+ "model.visual.blocks.4.mlp.linear_fc2",
168
+ "model.visual.blocks.5.attn.qkv",
169
+ "model.visual.blocks.5.attn.proj",
170
+ "model.visual.blocks.5.mlp.linear_fc1",
171
+ "model.visual.blocks.5.mlp.linear_fc2",
172
+ "model.visual.blocks.6.attn.qkv",
173
+ "model.visual.blocks.6.attn.proj",
174
+ "model.visual.blocks.6.mlp.linear_fc1",
175
+ "model.visual.blocks.6.mlp.linear_fc2",
176
+ "model.visual.blocks.7.attn.qkv",
177
+ "model.visual.blocks.7.attn.proj",
178
+ "model.visual.blocks.7.mlp.linear_fc1",
179
+ "model.visual.blocks.7.mlp.linear_fc2",
180
+ "model.visual.blocks.8.attn.qkv",
181
+ "model.visual.blocks.8.attn.proj",
182
+ "model.visual.blocks.8.mlp.linear_fc1",
183
+ "model.visual.blocks.8.mlp.linear_fc2",
184
+ "model.visual.blocks.9.attn.qkv",
185
+ "model.visual.blocks.9.attn.proj",
186
+ "model.visual.blocks.9.mlp.linear_fc1",
187
+ "model.visual.blocks.9.mlp.linear_fc2",
188
+ "model.visual.blocks.10.attn.qkv",
189
+ "model.visual.blocks.10.attn.proj",
190
+ "model.visual.blocks.10.mlp.linear_fc1",
191
+ "model.visual.blocks.10.mlp.linear_fc2",
192
+ "model.visual.blocks.11.attn.qkv",
193
+ "model.visual.blocks.11.attn.proj",
194
+ "model.visual.blocks.11.mlp.linear_fc1",
195
+ "model.visual.blocks.11.mlp.linear_fc2",
196
+ "model.visual.blocks.12.attn.qkv",
197
+ "model.visual.blocks.12.attn.proj",
198
+ "model.visual.blocks.12.mlp.linear_fc1",
199
+ "model.visual.blocks.12.mlp.linear_fc2",
200
+ "model.visual.blocks.13.attn.qkv",
201
+ "model.visual.blocks.13.attn.proj",
202
+ "model.visual.blocks.13.mlp.linear_fc1",
203
+ "model.visual.blocks.13.mlp.linear_fc2",
204
+ "model.visual.blocks.14.attn.qkv",
205
+ "model.visual.blocks.14.attn.proj",
206
+ "model.visual.blocks.14.mlp.linear_fc1",
207
+ "model.visual.blocks.14.mlp.linear_fc2",
208
+ "model.visual.blocks.15.attn.qkv",
209
+ "model.visual.blocks.15.attn.proj",
210
+ "model.visual.blocks.15.mlp.linear_fc1",
211
+ "model.visual.blocks.15.mlp.linear_fc2",
212
+ "model.visual.blocks.16.attn.qkv",
213
+ "model.visual.blocks.16.attn.proj",
214
+ "model.visual.blocks.16.mlp.linear_fc1",
215
+ "model.visual.blocks.16.mlp.linear_fc2",
216
+ "model.visual.blocks.17.attn.qkv",
217
+ "model.visual.blocks.17.attn.proj",
218
+ "model.visual.blocks.17.mlp.linear_fc1",
219
+ "model.visual.blocks.17.mlp.linear_fc2",
220
+ "model.visual.blocks.18.attn.qkv",
221
+ "model.visual.blocks.18.attn.proj",
222
+ "model.visual.blocks.18.mlp.linear_fc1",
223
+ "model.visual.blocks.18.mlp.linear_fc2",
224
+ "model.visual.blocks.19.attn.qkv",
225
+ "model.visual.blocks.19.attn.proj",
226
+ "model.visual.blocks.19.mlp.linear_fc1",
227
+ "model.visual.blocks.19.mlp.linear_fc2",
228
+ "model.visual.blocks.20.attn.qkv",
229
+ "model.visual.blocks.20.attn.proj",
230
+ "model.visual.blocks.20.mlp.linear_fc1",
231
+ "model.visual.blocks.20.mlp.linear_fc2",
232
+ "model.visual.blocks.21.attn.qkv",
233
+ "model.visual.blocks.21.attn.proj",
234
+ "model.visual.blocks.21.mlp.linear_fc1",
235
+ "model.visual.blocks.21.mlp.linear_fc2",
236
+ "model.visual.blocks.22.attn.qkv",
237
+ "model.visual.blocks.22.attn.proj",
238
+ "model.visual.blocks.22.mlp.linear_fc1",
239
+ "model.visual.blocks.22.mlp.linear_fc2",
240
+ "model.visual.blocks.23.attn.qkv",
241
+ "model.visual.blocks.23.attn.proj",
242
+ "model.visual.blocks.23.mlp.linear_fc1",
243
+ "model.visual.blocks.23.mlp.linear_fc2",
244
+ "model.visual.merger.linear_fc1",
245
+ "model.visual.merger.linear_fc2",
246
+ "model.language_model.layers.0.linear_attn.out_proj",
247
+ "model.language_model.layers.0.linear_attn.in_proj_qkv",
248
+ "model.language_model.layers.0.linear_attn.in_proj_z",
249
+ "model.language_model.layers.0.linear_attn.in_proj_b",
250
+ "model.language_model.layers.0.linear_attn.in_proj_a",
251
+ "model.language_model.layers.1.linear_attn.out_proj",
252
+ "model.language_model.layers.1.linear_attn.in_proj_qkv",
253
+ "model.language_model.layers.1.linear_attn.in_proj_z",
254
+ "model.language_model.layers.1.linear_attn.in_proj_b",
255
+ "model.language_model.layers.1.linear_attn.in_proj_a",
256
+ "model.language_model.layers.2.linear_attn.out_proj",
257
+ "model.language_model.layers.2.linear_attn.in_proj_qkv",
258
+ "model.language_model.layers.2.linear_attn.in_proj_z",
259
+ "model.language_model.layers.2.linear_attn.in_proj_b",
260
+ "model.language_model.layers.2.linear_attn.in_proj_a",
261
+ "model.language_model.layers.4.linear_attn.out_proj",
262
+ "model.language_model.layers.4.linear_attn.in_proj_qkv",
263
+ "model.language_model.layers.4.linear_attn.in_proj_z",
264
+ "model.language_model.layers.4.linear_attn.in_proj_b",
265
+ "model.language_model.layers.4.linear_attn.in_proj_a",
266
+ "model.language_model.layers.5.linear_attn.out_proj",
267
+ "model.language_model.layers.5.linear_attn.in_proj_qkv",
268
+ "model.language_model.layers.5.linear_attn.in_proj_z",
269
+ "model.language_model.layers.5.linear_attn.in_proj_b",
270
+ "model.language_model.layers.5.linear_attn.in_proj_a",
271
+ "model.language_model.layers.6.linear_attn.out_proj",
272
+ "model.language_model.layers.6.linear_attn.in_proj_qkv",
273
+ "model.language_model.layers.6.linear_attn.in_proj_z",
274
+ "model.language_model.layers.6.linear_attn.in_proj_b",
275
+ "model.language_model.layers.6.linear_attn.in_proj_a",
276
+ "model.language_model.layers.8.linear_attn.out_proj",
277
+ "model.language_model.layers.8.linear_attn.in_proj_qkv",
278
+ "model.language_model.layers.8.linear_attn.in_proj_z",
279
+ "model.language_model.layers.8.linear_attn.in_proj_b",
280
+ "model.language_model.layers.8.linear_attn.in_proj_a",
281
+ "model.language_model.layers.9.linear_attn.out_proj",
282
+ "model.language_model.layers.9.linear_attn.in_proj_qkv",
283
+ "model.language_model.layers.9.linear_attn.in_proj_z",
284
+ "model.language_model.layers.9.linear_attn.in_proj_b",
285
+ "model.language_model.layers.9.linear_attn.in_proj_a",
286
+ "model.language_model.layers.10.linear_attn.out_proj",
287
+ "model.language_model.layers.10.linear_attn.in_proj_qkv",
288
+ "model.language_model.layers.10.linear_attn.in_proj_z",
289
+ "model.language_model.layers.10.linear_attn.in_proj_b",
290
+ "model.language_model.layers.10.linear_attn.in_proj_a",
291
+ "model.language_model.layers.12.linear_attn.out_proj",
292
+ "model.language_model.layers.12.linear_attn.in_proj_qkv",
293
+ "model.language_model.layers.12.linear_attn.in_proj_z",
294
+ "model.language_model.layers.12.linear_attn.in_proj_b",
295
+ "model.language_model.layers.12.linear_attn.in_proj_a",
296
+ "model.language_model.layers.13.linear_attn.out_proj",
297
+ "model.language_model.layers.13.linear_attn.in_proj_qkv",
298
+ "model.language_model.layers.13.linear_attn.in_proj_z",
299
+ "model.language_model.layers.13.linear_attn.in_proj_b",
300
+ "model.language_model.layers.13.linear_attn.in_proj_a",
301
+ "model.language_model.layers.14.linear_attn.out_proj",
302
+ "model.language_model.layers.14.linear_attn.in_proj_qkv",
303
+ "model.language_model.layers.14.linear_attn.in_proj_z",
304
+ "model.language_model.layers.14.linear_attn.in_proj_b",
305
+ "model.language_model.layers.14.linear_attn.in_proj_a",
306
+ "model.language_model.layers.16.linear_attn.out_proj",
307
+ "model.language_model.layers.16.linear_attn.in_proj_qkv",
308
+ "model.language_model.layers.16.linear_attn.in_proj_z",
309
+ "model.language_model.layers.16.linear_attn.in_proj_b",
310
+ "model.language_model.layers.16.linear_attn.in_proj_a",
311
+ "model.language_model.layers.17.linear_attn.out_proj",
312
+ "model.language_model.layers.17.linear_attn.in_proj_qkv",
313
+ "model.language_model.layers.17.linear_attn.in_proj_z",
314
+ "model.language_model.layers.17.linear_attn.in_proj_b",
315
+ "model.language_model.layers.17.linear_attn.in_proj_a",
316
+ "model.language_model.layers.18.linear_attn.out_proj",
317
+ "model.language_model.layers.18.linear_attn.in_proj_qkv",
318
+ "model.language_model.layers.18.linear_attn.in_proj_z",
319
+ "model.language_model.layers.18.linear_attn.in_proj_b",
320
+ "model.language_model.layers.18.linear_attn.in_proj_a",
321
+ "model.language_model.layers.20.linear_attn.out_proj",
322
+ "model.language_model.layers.20.linear_attn.in_proj_qkv",
323
+ "model.language_model.layers.20.linear_attn.in_proj_z",
324
+ "model.language_model.layers.20.linear_attn.in_proj_b",
325
+ "model.language_model.layers.20.linear_attn.in_proj_a",
326
+ "model.language_model.layers.21.linear_attn.out_proj",
327
+ "model.language_model.layers.21.linear_attn.in_proj_qkv",
328
+ "model.language_model.layers.21.linear_attn.in_proj_z",
329
+ "model.language_model.layers.21.linear_attn.in_proj_b",
330
+ "model.language_model.layers.21.linear_attn.in_proj_a",
331
+ "model.language_model.layers.22.linear_attn.out_proj",
332
+ "model.language_model.layers.22.linear_attn.in_proj_qkv",
333
+ "model.language_model.layers.22.linear_attn.in_proj_z",
334
+ "model.language_model.layers.22.linear_attn.in_proj_b",
335
+ "model.language_model.layers.22.linear_attn.in_proj_a",
336
+ "model.language_model.layers.24.linear_attn.out_proj",
337
+ "model.language_model.layers.24.linear_attn.in_proj_qkv",
338
+ "model.language_model.layers.24.linear_attn.in_proj_z",
339
+ "model.language_model.layers.24.linear_attn.in_proj_b",
340
+ "model.language_model.layers.24.linear_attn.in_proj_a",
341
+ "model.language_model.layers.25.linear_attn.out_proj",
342
+ "model.language_model.layers.25.linear_attn.in_proj_qkv",
343
+ "model.language_model.layers.25.linear_attn.in_proj_z",
344
+ "model.language_model.layers.25.linear_attn.in_proj_b",
345
+ "model.language_model.layers.25.linear_attn.in_proj_a",
346
+ "model.language_model.layers.26.linear_attn.out_proj",
347
+ "model.language_model.layers.26.linear_attn.in_proj_qkv",
348
+ "model.language_model.layers.26.linear_attn.in_proj_z",
349
+ "model.language_model.layers.26.linear_attn.in_proj_b",
350
+ "model.language_model.layers.26.linear_attn.in_proj_a",
351
+ "model.language_model.layers.28.linear_attn.out_proj",
352
+ "model.language_model.layers.28.linear_attn.in_proj_qkv",
353
+ "model.language_model.layers.28.linear_attn.in_proj_z",
354
+ "model.language_model.layers.28.linear_attn.in_proj_b",
355
+ "model.language_model.layers.28.linear_attn.in_proj_a",
356
+ "model.language_model.layers.29.linear_attn.out_proj",
357
+ "model.language_model.layers.29.linear_attn.in_proj_qkv",
358
+ "model.language_model.layers.29.linear_attn.in_proj_z",
359
+ "model.language_model.layers.29.linear_attn.in_proj_b",
360
+ "model.language_model.layers.29.linear_attn.in_proj_a",
361
+ "model.language_model.layers.30.linear_attn.out_proj",
362
+ "model.language_model.layers.30.linear_attn.in_proj_qkv",
363
+ "model.language_model.layers.30.linear_attn.in_proj_z",
364
+ "model.language_model.layers.30.linear_attn.in_proj_b",
365
+ "model.language_model.layers.30.linear_attn.in_proj_a",
366
  "lm_head"
367
  ],
368
  "kv_cache_scheme": null,
 
370
  "quantization_status": "compressed",
371
  "sparsity_config": {},
372
  "transform_config": {},
373
+ "version": "0.15.1.a20260414"
374
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
375
  }
generation_config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "_from_model_config": true,
3
  "eos_token_id": 248044,
4
- "transformers_version": "5.6.0.dev0",
5
  "use_cache": true
6
  }
 
1
  {
2
  "_from_model_config": true,
3
  "eos_token_id": 248044,
4
+ "transformers_version": "5.5.4",
5
  "use_cache": true
6
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f560c5ac510dbfdab2cc4c9220d19af0986efdd7f54e0ae17d4d7a63eba5795c
3
- size 5854598648
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f769ef499564c3cf15d403787c50d022eb3770ffa26dc0a8a3e3fee57157ce4
3
+ size 6521660784
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_format": "channels_first",
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.5,
9
+ 0.5,
10
+ 0.5
11
+ ],
12
+ "image_processor_type": "Qwen2VLImageProcessorFast",
13
+ "image_std": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "merge_size": 2,
19
+ "patch_size": 16,
20
+ "resample": 3,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "longest_edge": 16777216,
24
+ "shortest_edge": 65536
25
+ },
26
+ "temporal_patch_size": 2
27
+ }
processor_config.json CHANGED
@@ -10,7 +10,7 @@
10
  0.5,
11
  0.5
12
  ],
13
- "image_processor_type": "Qwen2VLImageProcessor",
14
  "image_std": [
15
  0.5,
16
  0.5,
 
10
  0.5,
11
  0.5
12
  ],
13
+ "image_processor_type": "Qwen2VLImageProcessorFast",
14
  "image_std": [
15
  0.5,
16
  0.5,
tokenizer_config.json CHANGED
@@ -1,33 +1,305 @@
1
  {
2
- "add_prefix_space": false,
3
- "audio_bos_token": "<|audio_start|>",
4
- "audio_eos_token": "<|audio_end|>",
5
- "audio_token": "<|audio_pad|>",
6
- "backend": "tokenizers",
7
- "bos_token": null,
8
- "clean_up_tokenization_spaces": false,
9
- "eos_token": "<|im_end|>",
10
- "errors": "replace",
11
- "image_token": "<|image_pad|>",
12
- "is_local": false,
13
- "local_files_only": false,
14
- "model_max_length": 262144,
15
- "model_specific_special_tokens": {
16
- "audio_bos_token": "<|audio_start|>",
17
- "audio_eos_token": "<|audio_end|>",
18
- "audio_token": "<|audio_pad|>",
19
- "image_token": "<|image_pad|>",
20
- "video_token": "<|video_pad|>",
21
- "vision_bos_token": "<|vision_start|>",
22
- "vision_eos_token": "<|vision_end|>"
23
- },
24
- "pad_token": "<|endoftext|>",
25
- "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
26
- "processor_class": "Qwen3VLProcessor",
27
- "split_special_tokens": false,
28
- "tokenizer_class": "TokenizersBackend",
29
- "unk_token": null,
30
- "video_token": "<|video_pad|>",
31
- "vision_bos_token": "<|vision_start|>",
32
- "vision_eos_token": "<|vision_end|>"
33
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "248044": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "248045": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "248046": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "248047": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "248048": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "248049": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "248050": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "248051": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "248052": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "248053": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "248054": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "248055": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "248056": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "248057": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "248058": {
117
+ "content": "<tool_call>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": false
123
+ },
124
+ "248059": {
125
+ "content": "</tool_call>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": false
131
+ },
132
+ "248060": {
133
+ "content": "<|fim_prefix|>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": false
139
+ },
140
+ "248061": {
141
+ "content": "<|fim_middle|>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": false
147
+ },
148
+ "248062": {
149
+ "content": "<|fim_suffix|>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": false
155
+ },
156
+ "248063": {
157
+ "content": "<|fim_pad|>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": false
163
+ },
164
+ "248064": {
165
+ "content": "<|repo_name|>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": false
171
+ },
172
+ "248065": {
173
+ "content": "<|file_sep|>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": false
179
+ },
180
+ "248066": {
181
+ "content": "<tool_response>",
182
+ "lstrip": false,
183
+ "normalized": false,
184
+ "rstrip": false,
185
+ "single_word": false,
186
+ "special": false
187
+ },
188
+ "248067": {
189
+ "content": "</tool_response>",
190
+ "lstrip": false,
191
+ "normalized": false,
192
+ "rstrip": false,
193
+ "single_word": false,
194
+ "special": false
195
+ },
196
+ "248068": {
197
+ "content": "<think>",
198
+ "lstrip": false,
199
+ "normalized": false,
200
+ "rstrip": false,
201
+ "single_word": false,
202
+ "special": false
203
+ },
204
+ "248069": {
205
+ "content": "</think>",
206
+ "lstrip": false,
207
+ "normalized": false,
208
+ "rstrip": false,
209
+ "single_word": false,
210
+ "special": false
211
+ },
212
+ "248070": {
213
+ "content": "<|audio_start|>",
214
+ "lstrip": false,
215
+ "normalized": false,
216
+ "rstrip": false,
217
+ "single_word": false,
218
+ "special": true
219
+ },
220
+ "248071": {
221
+ "content": "<|audio_end|>",
222
+ "lstrip": false,
223
+ "normalized": false,
224
+ "rstrip": false,
225
+ "single_word": false,
226
+ "special": true
227
+ },
228
+ "248072": {
229
+ "content": "<tts_pad>",
230
+ "lstrip": false,
231
+ "normalized": false,
232
+ "rstrip": false,
233
+ "single_word": false,
234
+ "special": true
235
+ },
236
+ "248073": {
237
+ "content": "<tts_text_bos>",
238
+ "lstrip": false,
239
+ "normalized": false,
240
+ "rstrip": false,
241
+ "single_word": false,
242
+ "special": true
243
+ },
244
+ "248074": {
245
+ "content": "<tts_text_eod>",
246
+ "lstrip": false,
247
+ "normalized": false,
248
+ "rstrip": false,
249
+ "single_word": false,
250
+ "special": true
251
+ },
252
+ "248075": {
253
+ "content": "<tts_text_bos_single>",
254
+ "lstrip": false,
255
+ "normalized": false,
256
+ "rstrip": false,
257
+ "single_word": false,
258
+ "special": true
259
+ },
260
+ "248076": {
261
+ "content": "<|audio_pad|>",
262
+ "lstrip": false,
263
+ "normalized": false,
264
+ "rstrip": false,
265
+ "single_word": false,
266
+ "special": true
267
+ }
268
+ },
269
+ "additional_special_tokens": [
270
+ "<|im_start|>",
271
+ "<|im_end|>",
272
+ "<|object_ref_start|>",
273
+ "<|object_ref_end|>",
274
+ "<|box_start|>",
275
+ "<|box_end|>",
276
+ "<|quad_start|>",
277
+ "<|quad_end|>",
278
+ "<|vision_start|>",
279
+ "<|vision_end|>",
280
+ "<|vision_pad|>",
281
+ "<|image_pad|>",
282
+ "<|video_pad|>"
283
+ ],
284
+ "bos_token": null,
285
+ "chat_template": "{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain images.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Picture ' ~ image_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n {%- elif 'video' in item or item.type == 'video' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain videos.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Video ' ~ video_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n {%- elif 'text' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception('Unexpected item type in content.') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- '' }}\n {%- else %}\n {{- raise_exception('Unexpected content type.') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- '<|im_start|>system\\n' }}\n {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- '\\n\\n' + content }}\n {%- endif %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {{- '<|im_start|>system\\n' + content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n {{- raise_exception('No user query found in messages.') }}\n{%- endif %}\n{%- for message in messages %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == \"system\" %}\n {%- if not loop.first %}\n {{- raise_exception('System message must be at the beginning.') }}\n {%- endif %}\n {%- elif message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- set reasoning_content = reasoning_content|trim %}\n {%- if loop.index0 > ns.last_query_index %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if loop.first %}\n {%- if content|trim %}\n {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- else %}\n {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- if tool_call.arguments is defined %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Unexpected message role.') }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- else %}\n {{- '<think>\\n' }}\n {%- endif %}\n{%- endif %}",
286
+ "clean_up_tokenization_spaces": false,
287
+ "eos_token": "<|im_end|>",
288
+ "errors": "replace",
289
+ "model_max_length": 262144,
290
+ "pad_token": "<|endoftext|>",
291
+ "split_special_tokens": false,
292
+ "tokenizer_class": "Qwen2Tokenizer",
293
+ "unk_token": null,
294
+ "add_bos_token": false,
295
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
296
+ "extra_special_tokens": {
297
+ "audio_bos_token": "<|audio_start|>",
298
+ "audio_eos_token": "<|audio_end|>",
299
+ "audio_token": "<|audio_pad|>",
300
+ "image_token": "<|image_pad|>",
301
+ "video_token": "<|video_pad|>",
302
+ "vision_bos_token": "<|vision_start|>",
303
+ "vision_eos_token": "<|vision_end|>"
304
+ }
305
+ }