prithivMLmods commited on
Commit
4f96dfe
·
verified ·
1 Parent(s): c159188

Upload — OpenSCAD-Code-Qwen3.5-Preview — NVFP4

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,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\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>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- 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 %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "eos_token_id": 248046,
7
+ "image_token_id": 248056,
8
+ "model_type": "qwen3_5",
9
+ "pad_token_id": 248044,
10
+ "quantization_config": {
11
+ "config_groups": {
12
+ "group_0": {
13
+ "format": "nvfp4-pack-quantized",
14
+ "input_activations": {
15
+ "dynamic": "local",
16
+ "group_size": 16,
17
+ "num_bits": 4,
18
+ "observer": "static_minmax",
19
+ "scale_dtype": "torch.float8_e4m3fn",
20
+ "strategy": "tensor_group",
21
+ "symmetric": true,
22
+ "type": "float"
23
+ },
24
+ "output_activations": null,
25
+ "targets": [
26
+ "Linear"
27
+ ],
28
+ "weights": {
29
+ "actorder": "static",
30
+ "dynamic": false,
31
+ "group_size": 16,
32
+ "num_bits": 4,
33
+ "observer": "imatrix_mse",
34
+ "scale_dtype": "torch.float8_e4m3fn",
35
+ "strategy": "tensor_group",
36
+ "symmetric": true,
37
+ "type": "float"
38
+ }
39
+ }
40
+ },
41
+ "format": "nvfp4-pack-quantized",
42
+ "global_compression_ratio": null,
43
+ "ignore": [
44
+ "model.visual.blocks.0.attn.qkv",
45
+ "model.visual.blocks.0.attn.proj",
46
+ "model.visual.blocks.0.mlp.linear_fc1",
47
+ "model.visual.blocks.0.mlp.linear_fc2",
48
+ "model.visual.blocks.1.attn.qkv",
49
+ "model.visual.blocks.1.attn.proj",
50
+ "model.visual.blocks.1.mlp.linear_fc1",
51
+ "model.visual.blocks.1.mlp.linear_fc2",
52
+ "model.visual.blocks.2.attn.qkv",
53
+ "model.visual.blocks.2.attn.proj",
54
+ "model.visual.blocks.2.mlp.linear_fc1",
55
+ "model.visual.blocks.2.mlp.linear_fc2",
56
+ "model.visual.blocks.3.attn.qkv",
57
+ "model.visual.blocks.3.attn.proj",
58
+ "model.visual.blocks.3.mlp.linear_fc1",
59
+ "model.visual.blocks.3.mlp.linear_fc2",
60
+ "model.visual.blocks.4.attn.qkv",
61
+ "model.visual.blocks.4.attn.proj",
62
+ "model.visual.blocks.4.mlp.linear_fc1",
63
+ "model.visual.blocks.4.mlp.linear_fc2",
64
+ "model.visual.blocks.5.attn.qkv",
65
+ "model.visual.blocks.5.attn.proj",
66
+ "model.visual.blocks.5.mlp.linear_fc1",
67
+ "model.visual.blocks.5.mlp.linear_fc2",
68
+ "model.visual.blocks.6.attn.qkv",
69
+ "model.visual.blocks.6.attn.proj",
70
+ "model.visual.blocks.6.mlp.linear_fc1",
71
+ "model.visual.blocks.6.mlp.linear_fc2",
72
+ "model.visual.blocks.7.attn.qkv",
73
+ "model.visual.blocks.7.attn.proj",
74
+ "model.visual.blocks.7.mlp.linear_fc1",
75
+ "model.visual.blocks.7.mlp.linear_fc2",
76
+ "model.visual.blocks.8.attn.qkv",
77
+ "model.visual.blocks.8.attn.proj",
78
+ "model.visual.blocks.8.mlp.linear_fc1",
79
+ "model.visual.blocks.8.mlp.linear_fc2",
80
+ "model.visual.blocks.9.attn.qkv",
81
+ "model.visual.blocks.9.attn.proj",
82
+ "model.visual.blocks.9.mlp.linear_fc1",
83
+ "model.visual.blocks.9.mlp.linear_fc2",
84
+ "model.visual.blocks.10.attn.qkv",
85
+ "model.visual.blocks.10.attn.proj",
86
+ "model.visual.blocks.10.mlp.linear_fc1",
87
+ "model.visual.blocks.10.mlp.linear_fc2",
88
+ "model.visual.blocks.11.attn.qkv",
89
+ "model.visual.blocks.11.attn.proj",
90
+ "model.visual.blocks.11.mlp.linear_fc1",
91
+ "model.visual.blocks.11.mlp.linear_fc2",
92
+ "model.visual.blocks.12.attn.qkv",
93
+ "model.visual.blocks.12.attn.proj",
94
+ "model.visual.blocks.12.mlp.linear_fc1",
95
+ "model.visual.blocks.12.mlp.linear_fc2",
96
+ "model.visual.blocks.13.attn.qkv",
97
+ "model.visual.blocks.13.attn.proj",
98
+ "model.visual.blocks.13.mlp.linear_fc1",
99
+ "model.visual.blocks.13.mlp.linear_fc2",
100
+ "model.visual.blocks.14.attn.qkv",
101
+ "model.visual.blocks.14.attn.proj",
102
+ "model.visual.blocks.14.mlp.linear_fc1",
103
+ "model.visual.blocks.14.mlp.linear_fc2",
104
+ "model.visual.blocks.15.attn.qkv",
105
+ "model.visual.blocks.15.attn.proj",
106
+ "model.visual.blocks.15.mlp.linear_fc1",
107
+ "model.visual.blocks.15.mlp.linear_fc2",
108
+ "model.visual.blocks.16.attn.qkv",
109
+ "model.visual.blocks.16.attn.proj",
110
+ "model.visual.blocks.16.mlp.linear_fc1",
111
+ "model.visual.blocks.16.mlp.linear_fc2",
112
+ "model.visual.blocks.17.attn.qkv",
113
+ "model.visual.blocks.17.attn.proj",
114
+ "model.visual.blocks.17.mlp.linear_fc1",
115
+ "model.visual.blocks.17.mlp.linear_fc2",
116
+ "model.visual.blocks.18.attn.qkv",
117
+ "model.visual.blocks.18.attn.proj",
118
+ "model.visual.blocks.18.mlp.linear_fc1",
119
+ "model.visual.blocks.18.mlp.linear_fc2",
120
+ "model.visual.blocks.19.attn.qkv",
121
+ "model.visual.blocks.19.attn.proj",
122
+ "model.visual.blocks.19.mlp.linear_fc1",
123
+ "model.visual.blocks.19.mlp.linear_fc2",
124
+ "model.visual.blocks.20.attn.qkv",
125
+ "model.visual.blocks.20.attn.proj",
126
+ "model.visual.blocks.20.mlp.linear_fc1",
127
+ "model.visual.blocks.20.mlp.linear_fc2",
128
+ "model.visual.blocks.21.attn.qkv",
129
+ "model.visual.blocks.21.attn.proj",
130
+ "model.visual.blocks.21.mlp.linear_fc1",
131
+ "model.visual.blocks.21.mlp.linear_fc2",
132
+ "model.visual.blocks.22.attn.qkv",
133
+ "model.visual.blocks.22.attn.proj",
134
+ "model.visual.blocks.22.mlp.linear_fc1",
135
+ "model.visual.blocks.22.mlp.linear_fc2",
136
+ "model.visual.blocks.23.attn.qkv",
137
+ "model.visual.blocks.23.attn.proj",
138
+ "model.visual.blocks.23.mlp.linear_fc1",
139
+ "model.visual.blocks.23.mlp.linear_fc2",
140
+ "model.visual.blocks.24.attn.qkv",
141
+ "model.visual.blocks.24.attn.proj",
142
+ "model.visual.blocks.24.mlp.linear_fc1",
143
+ "model.visual.blocks.24.mlp.linear_fc2",
144
+ "model.visual.blocks.25.attn.qkv",
145
+ "model.visual.blocks.25.attn.proj",
146
+ "model.visual.blocks.25.mlp.linear_fc1",
147
+ "model.visual.blocks.25.mlp.linear_fc2",
148
+ "model.visual.blocks.26.attn.qkv",
149
+ "model.visual.blocks.26.attn.proj",
150
+ "model.visual.blocks.26.mlp.linear_fc1",
151
+ "model.visual.blocks.26.mlp.linear_fc2",
152
+ "model.visual.merger.linear_fc1",
153
+ "model.visual.merger.linear_fc2",
154
+ "lm_head",
155
+ "mtp.layers.0.mlp.down_proj",
156
+ "mtp.layers.0.mlp.gate_proj",
157
+ "mtp.layers.0.mlp.up_proj",
158
+ "mtp.fc",
159
+ "mtp.layers.0.self_attn.q_proj",
160
+ "mtp.layers.0.input_layernorm",
161
+ "mtp.layers.0.post_attention_layernorm",
162
+ "mtp.layers.0.self_attn.k_norm",
163
+ "mtp.layers.0.self_attn.k_proj",
164
+ "mtp.layers.0.self_attn.o_proj",
165
+ "mtp.layers.0.self_attn.q_norm",
166
+ "mtp.layers.0.self_attn.v_proj",
167
+ "mtp.norm",
168
+ "mtp.pre_fc_norm_embedding",
169
+ "mtp.pre_fc_norm_hidden"
170
+ ],
171
+ "kv_cache_scheme": null,
172
+ "moe_sparsity_config": null,
173
+ "quant_method": "compressed-tensors",
174
+ "quantization_status": "compressed",
175
+ "sparsity_config": {},
176
+ "transform_config": {},
177
+ "version": "0.20.2a20261123"
178
+ },
179
+ "text_config": {
180
+ "attention_bias": false,
181
+ "attention_dropout": 0.0,
182
+ "attn_output_gate": true,
183
+ "bos_token_id": null,
184
+ "dtype": "bfloat16",
185
+ "eos_token_id": 248044,
186
+ "full_attention_interval": 4,
187
+ "head_dim": 256,
188
+ "hidden_act": "silu",
189
+ "hidden_size": 4096,
190
+ "initializer_range": 0.02,
191
+ "intermediate_size": 12288,
192
+ "layer_types": [
193
+ "linear_attention",
194
+ "linear_attention",
195
+ "linear_attention",
196
+ "full_attention",
197
+ "linear_attention",
198
+ "linear_attention",
199
+ "linear_attention",
200
+ "full_attention",
201
+ "linear_attention",
202
+ "linear_attention",
203
+ "linear_attention",
204
+ "full_attention",
205
+ "linear_attention",
206
+ "linear_attention",
207
+ "linear_attention",
208
+ "full_attention",
209
+ "linear_attention",
210
+ "linear_attention",
211
+ "linear_attention",
212
+ "full_attention",
213
+ "linear_attention",
214
+ "linear_attention",
215
+ "linear_attention",
216
+ "full_attention",
217
+ "linear_attention",
218
+ "linear_attention",
219
+ "linear_attention",
220
+ "full_attention",
221
+ "linear_attention",
222
+ "linear_attention",
223
+ "linear_attention",
224
+ "full_attention"
225
+ ],
226
+ "linear_conv_kernel_dim": 4,
227
+ "linear_key_head_dim": 128,
228
+ "linear_num_key_heads": 16,
229
+ "linear_num_value_heads": 32,
230
+ "linear_value_head_dim": 128,
231
+ "mamba_ssm_dtype": "float32",
232
+ "max_position_embeddings": 262144,
233
+ "mlp_only_layers": [],
234
+ "model_type": "qwen3_5_text",
235
+ "mtp_num_hidden_layers": 1,
236
+ "mtp_use_dedicated_embeddings": false,
237
+ "num_attention_heads": 16,
238
+ "num_hidden_layers": 32,
239
+ "num_key_value_heads": 4,
240
+ "pad_token_id": null,
241
+ "rms_norm_eps": 1e-06,
242
+ "rope_parameters": {
243
+ "mrope_interleaved": true,
244
+ "mrope_section": [
245
+ 11,
246
+ 11,
247
+ 10
248
+ ],
249
+ "partial_rotary_factor": 0.25,
250
+ "rope_theta": 10000000,
251
+ "rope_type": "default"
252
+ },
253
+ "tie_word_embeddings": false,
254
+ "use_cache": true,
255
+ "vocab_size": 248320
256
+ },
257
+ "tie_word_embeddings": false,
258
+ "transformers_version": "5.22.2",
259
+ "video_token_id": 248057,
260
+ "vision_config": {
261
+ "deepstack_visual_indexes": [],
262
+ "depth": 27,
263
+ "dtype": "bfloat16",
264
+ "hidden_act": "gelu_pytorch_tanh",
265
+ "hidden_size": 1152,
266
+ "in_channels": 3,
267
+ "initializer_range": 0.02,
268
+ "intermediate_size": 4304,
269
+ "model_type": "qwen3_5_vision",
270
+ "num_heads": 16,
271
+ "num_position_embeddings": 2304,
272
+ "out_hidden_size": 4096,
273
+ "patch_size": 16,
274
+ "rope_parameters": {
275
+ "rope_theta": 10000.0,
276
+ "rope_type": "axial"
277
+ },
278
+ "spatial_merge_size": 2,
279
+ "temporal_patch_size": 2
280
+ },
281
+ "vision_end_token_id": 248054,
282
+ "vision_start_token_id": 248053
283
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 248046
5
+ ],
6
+ "pad_token_id": 248044,
7
+ "transformers_version": "5.24.1",
8
+ "use_cache": false
9
+ }
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f5ad00fa5ac0cc154ece77e747138b1f644481fcd3ac5969cc18c95196dec58
3
+ size 4987850072
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f2dd5508574f8c0cda37812b1164a1526fcba70e9cff3cd9b696a81f45adaeb
3
+ size 3886620456
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
model_mtp.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9f83dae0fed4d0633fba652cd7eb942642491a283b11072c3cfc77731e0fae9
3
+ size 486582848
processor_config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "data_format": "channels_first",
4
+ "do_convert_rgb": true,
5
+ "do_normalize": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "image_processor_type": "Qwen2VLImageProcessor",
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "merge_size": 2,
20
+ "patch_size": 16,
21
+ "resample": 3,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "longest_edge": 16777216,
25
+ "shortest_edge": 65536
26
+ },
27
+ "temporal_patch_size": 2
28
+ },
29
+ "processor_class": "Qwen3VLProcessor",
30
+ "video_processor": {
31
+ "data_format": "channels_first",
32
+ "default_to_square": true,
33
+ "do_convert_rgb": true,
34
+ "do_normalize": true,
35
+ "do_rescale": true,
36
+ "do_resize": true,
37
+ "do_sample_frames": true,
38
+ "fps": 2,
39
+ "image_mean": [
40
+ 0.5,
41
+ 0.5,
42
+ 0.5
43
+ ],
44
+ "image_std": [
45
+ 0.5,
46
+ 0.5,
47
+ 0.5
48
+ ],
49
+ "max_frames": 768,
50
+ "max_video_tokens": 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,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ default_stage:
2
+ default_modifiers:
3
+ GPTQModifier:
4
+ targets: [Linear]
5
+ ignore: [lm_head, 're:.*visual.*']
6
+ scheme: NVFP4
7
+ weight_observer: imatrix_mse
8
+ bypass_divisibility_checks: false
9
+ requires_calibration_data: true
10
+ block_size: 128
11
+ dampening_frac: 0.01
12
+ batched_quantization: auto
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5cd9732badce41de57e6efce8302930ded1c1188c5f81feb2bd6c24c4a1941f
3
+ size 19989339
tokenizer_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": 32768,
15
+ "merges_file": null,
16
+ "model_max_length": 262144,
17
+ "model_specific_special_tokens": {
18
+ "audio_bos_token": "<|audio_start|>",
19
+ "audio_eos_token": "<|audio_end|>",
20
+ "audio_token": "<|audio_pad|>",
21
+ "image_token": "<|image_pad|>",
22
+ "video_token": "<|video_pad|>",
23
+ "vision_bos_token": "<|vision_start|>",
24
+ "vision_eos_token": "<|vision_end|>"
25
+ },
26
+ "pad_token": "<|endoftext|>",
27
+ "padding_side": "right",
28
+ "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+",
29
+ "processor_class": "Qwen3VLProcessor",
30
+ "split_special_tokens": false,
31
+ "stride": 0,
32
+ "tokenizer_class": "Qwen3_5Tokenizer",
33
+ "truncation_side": "right",
34
+ "truncation_strategy": "longest_first",
35
+ "unk_token": null,
36
+ "video_token": "<|video_pad|>",
37
+ "vision_bos_token": "<|vision_start|>",
38
+ "vision_eos_token": "<|vision_end|>"
39
+ }