PassingByPixels commited on
Commit
daf928f
·
verified ·
1 Parent(s): bb04f46

NVFP4 quantisation with the MTP head intact (2399 tensors, mtp.fc.weight present)

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
README.md ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - nightmedia/Qwen3.6-27B-Architect-Polaris2-Fable-B-F451
4
+ library_name: transformers
5
+ pipeline_tag: image-text-to-text
6
+ tags:
7
+ - nvfp4
8
+ - modelopt
9
+ - vllm
10
+ - speculative-decoding
11
+ - mtp
12
+ - dgx-spark
13
+ ---
14
+
15
+ # Qwen3.6-27B-Architect-Polaris2-Fable-B-NVFP4-MTP
16
+
17
+ NVFP4 quantisation of
18
+ [nightmedia/Qwen3.6-27B-Architect-Polaris2-Fable-B-F451](https://huggingface.co/nightmedia/Qwen3.6-27B-Architect-Polaris2-Fable-B-F451),
19
+ built to run on a 128 GB DGX Spark, **with the MTP speculative-decoding head
20
+ intact**.
21
+
22
+ This is the same quantisation as
23
+ [PassingByPixels/Qwen3.6-27B-Architect-Polaris2-Fable-B-NVFP4](https://huggingface.co/PassingByPixels/Qwen3.6-27B-Architect-Polaris2-Fable-B-NVFP4)
24
+ plus one 105 MB tensor that the other repo is missing. **If you want speculative
25
+ decoding, use this one.** If you do not, either works.
26
+
27
+ | | this repo (`-MTP`) | the plain `-NVFP4` repo |
28
+ |---|---|---|
29
+ | tensors | **2399** | 2398 |
30
+ | `mtp.fc.weight` | **present** | absent |
31
+ | runs `--speculative-config method=mtp` | **yes** | loads, then drafts garbage |
32
+ | size | 20.6 GB | 20.5 GB |
33
+
34
+ ---
35
+
36
+ ## Read this first: the missing tensor problem
37
+
38
+ The upstream bf16 repo was **re-uploaded on 2026-07-21** to add
39
+ `mtp.fc.weight` - the fusion projection the MTP head needs to combine its two
40
+ inputs. **A checkpoint pulled before that date has `mtp.layers.0.*` but no
41
+ `mtp.fc`, and this is a silent failure.**
42
+
43
+ vLLM disables strict weight-initialisation checking for quantized configs. The
44
+ missing tensor is allocated, nothing is loaded into it, and it keeps whatever
45
+ was in that memory. The MTP head then drafts from a **random projection**: no
46
+ exception, no warning, nothing in the log. Every drafted token is rejected, you
47
+ pay the drafting cost for nothing, and decode gets *slower*. The only symptom is
48
+ a number you were probably not measuring.
49
+
50
+ Check your own copy:
51
+
52
+ ```python
53
+ import json, urllib.request
54
+ idx = json.load(urllib.request.urlopen(
55
+ "https://huggingface.co/<repo>/resolve/main/model.safetensors.index.json"))
56
+ print("mtp.fc.weight:", "mtp.fc.weight" in idx["weight_map"])
57
+ ```
58
+
59
+ `False` means MTP will not work for you, however healthy it looks.
60
+
61
+ ## Serving it
62
+
63
+ Tested on vLLM `0.25.2.dev0` (arm64/CUDA 13 build), DGX Spark GB10, sm_121a.
64
+
65
+ **Plain, no speculative decoding:**
66
+
67
+ ```bash
68
+ vllm serve PassingByPixels/Qwen3.6-27B-Architect-Polaris2-Fable-B-NVFP4-MTP \
69
+ --kv-cache-dtype fp8 --attention-backend flashinfer \
70
+ --max-model-len 131072 --gpu-memory-utilization 0.72 --max-num-seqs 64 \
71
+ --reasoning-parser qwen3 --trust-remote-code \
72
+ --enable-auto-tool-choice --tool-call-parser qwen3_xml
73
+ ```
74
+
75
+ **With MTP (recommended):** add
76
+
77
+ ```bash
78
+ --speculative-config '{"method":"mtp","num_speculative_tokens":2}'
79
+ ```
80
+
81
+ No separate draft model - vLLM rewrites this checkpoint's own config into a
82
+ `Qwen3_5MTP` draft and reads the head out of these weights. It is a reasoning
83
+ model, so pass `chat_template_kwargs: {"enable_thinking": false}` if you do not
84
+ want the budget spent inside `<think>`.
85
+
86
+ **With DFlash** (much faster on file-editing work, much slower on prose, and it
87
+ needs a patched draft because the published one does not load on vLLM at all):
88
+ see the recipe repo linked below.
89
+
90
+ ---
91
+
92
+ ## Is speculative decoding worth it? Measured, not guessed
93
+
94
+ 540 measurements on this checkpoint: 3 configs x 3 workloads x 10 concurrency
95
+ levels x 6 shuffled rounds, all clean, standard deviation mostly under 1%.
96
+
97
+ ### The plain-English version
98
+
99
+ An AI writes one word at a time, and each word means re-reading the whole model
100
+ from memory. That memory trip is the slow part. **Speculative decoding** adds a
101
+ small fast helper that guesses the next few words so the big model can check
102
+ them in one go. Right guesses are free. Wrong guesses are thrown away and cost
103
+ you time.
104
+
105
+ **So it is a bet on whether the next words are predictable.**
106
+
107
+ - **MTP** guesses **2 words** ahead and is usually right. Small bet, reliable.
108
+ - **DFlash** guesses **15 words** ahead at once. Astonishing when the text is
109
+ predictable; wasteful when it is not.
110
+
111
+ Text is predictable when the model is mostly **copying something you just gave
112
+ it** - "here is my file, rename this variable" - which is what coding assistants
113
+ do all day. It is unpredictable when the model is **writing something new**.
114
+
115
+ How often each helper guessed right, on this model:
116
+
117
+ | | writing prose | writing code | editing a file |
118
+ |---|---|---|---|
119
+ | **MTP** | 47% | 76% | **100%** |
120
+ | **DFlash** | **6%** | 19% | 83% |
121
+
122
+ **DFlash guessing right 6% of the time on prose is the whole reason it is not a
123
+ magic speed-up button.**
124
+
125
+ ### MTP is a safe upgrade. Use it by default.
126
+
127
+ Aggregate tokens/sec vs no speculative decoding:
128
+
129
+ | workload | MTP vs no-spec |
130
+ |---|---|
131
+ | **code** | wins at **every** concurrency level tested, up to **+70%** |
132
+ | **edit** | wins at **every** level, up to **+104%** |
133
+ | prose | wins at 1-8, 24, 32 streams (up to +32%); loses at 12 (-11%), 16 (-10%), 64 (-7%) |
134
+
135
+ It costs about **10% of the KV cache pool** and nothing else. On code and editing
136
+ there is no concurrency at which it is the wrong choice. On free-form prose above
137
+ 8 concurrent streams it is roughly a coin flip - that is where its acceptance is
138
+ weakest (47%).
139
+
140
+ ### DFlash is a specialist tool with a sharp edge
141
+
142
+ Single stream on editing work it is **+716%** over no speculation and **+311%**
143
+ over MTP. That is real. But:
144
+
145
+ - On **prose** it is beaten by *doing nothing* from 4 concurrent streams up.
146
+ - It costs **40%** of the KV pool (second model + 15 draft slots per stream).
147
+ - It caps at about **22 concurrent streams** on this hardware and queues the
148
+ rest - median time to first token at 64 streams goes to **138 seconds**.
149
+
150
+ **Rule of thumb: DFlash below its ~22-stream ceiling for edit-heavy agentic
151
+ coding; MTP for everything else and for crowds.**
152
+
153
+ Full charts, tables, the 540-cell dataset and the fix that makes DFlash load on
154
+ vLLM at all:
155
+
156
+ **[-> Qwen3.6-27B-Architect-Polaris2-Fable-B-NVFP4_Dflash_DGX_recipe](https://github.com/PassingByPixels/Qwen3.6-27B-Architect-Polaris2-Fable-B-NVFP4_Dflash_DGX_recipe)**
157
+
158
+ ### A warning about averages
159
+
160
+ Averaging prose/code/edit assumes editing is exactly a third of your traffic.
161
+ **72% of DFlash's average comes from the edit workload alone.** Drop editing and
162
+ average only prose and code, and MTP wins from 4 streams up. Measure your own
163
+ mix instead - acceptance rate tells you directly:
164
+
165
+ ```bash
166
+ curl -s http://127.0.0.1:8000/metrics \
167
+ | grep -E 'spec_decode_num_(accepted|draft)_tokens_total'
168
+ ```
169
+
170
+ Near 0.06 is prose-like (do not use DFlash); near 0.83 is edit-like (do).
171
+
172
+ ---
173
+
174
+ ## How this was made
175
+
176
+ Source: `nightmedia/Qwen3.6-27B-Architect-Polaris2-Fable-B-F451` - bf16, 1199
177
+ tensors, 55,457,998,304 bytes, a `nuslerp` mergekit merge of two Qwen3.6-27B
178
+ Architect-Polaris Fable variants. Uploaded with nightmedia's permission.
179
+
180
+ Quantised with **NVIDIA ModelOpt 0.45.0**, `examples/llm_ptq/hf_ptq.py`:
181
+
182
+ ```
183
+ --qformat nvfp4 --calib_size 512 --dataset cnn_dailymail
184
+ --batch_size 0 --inference_tensor_parallel 1
185
+ ```
186
+
187
+ ModelOpt auto-excludes `linear_attn`, the vision tower, `mtp.*`, embeddings and
188
+ `lm_head` from quantisation - see `quant_summary.txt` in this repo for the
189
+ per-layer record, and `hf_quant_config.json` for the exclusion patterns.
190
+ Output: 2398 tensors, 20,487,991,904 bytes.
191
+
192
+ `mtp.fc.weight` ([5120, 10240] BF16, 104,857,600 bytes) was then taken from the
193
+ corrected upstream revision and added as `model-mtp-fc.safetensors`, with the
194
+ index updated - **2399 tensors, 20,592,849,504 bytes**. vLLM's own source
195
+ expects this tensor to be unquantized in NVFP4 checkpoints
196
+ (`qwen3_5_mtp.py`: *"mtp.fc is stored as BF16 in NVFP4 checkpoints ... Force
197
+ unquantized"*), so a spliced BF16 tensor is exactly what a fresh PTQ run would
198
+ have emitted.
199
+
200
+ The three VL processor configs (`preprocessor_config.json`,
201
+ `processor_config.json`, `video_preprocessor_config.json`) are included -
202
+ ModelOpt does not emit them and vLLM hard-fails a VL model at init without them.
203
+
204
+ ## Limitations
205
+
206
+ - **Measured on one machine, one model.** DGX Spark GB10, 121.7 GiB unified
207
+ memory, sm_121a, arm64, a community arm64/CUDA-13 vLLM build. No claim about
208
+ other hardware, multi-node, or other quantizations.
209
+ - **Acceptance rates are specific to this checkpoint.** The MTP head was
210
+ inherited through a four-generation mergekit merge and never retrained. A
211
+ different model will have different acceptance, and therefore different
212
+ crossover points.
213
+ - **No quality evaluation was run here.** NVFP4 is a lossy 4-bit quantisation.
214
+ These numbers are throughput only; nothing in this card says the output is as
215
+ good as the bf16 source.
216
+ - **Benchmarks ran with thinking disabled** and 512-token generations. Long
217
+ reasoning traces were not measured.
218
+ - `min_p` and `logit_bias` do not work under speculative decoding (vLLM warns at
219
+ startup).
220
+
221
+ ## Credits
222
+
223
+ - **[nightmedia](https://huggingface.co/nightmedia)** - the bf16 merge this is
224
+ quantised from, and its Architect-Polaris merge stages. All the model work is
225
+ theirs; uploaded with their permission. That merge in turn credits
226
+ Qwen/Qwen3.6-27B and its own upstreams.
227
+ - **[z-lab](https://huggingface.co/z-lab)** - the DFlash draft used in the
228
+ comparison.
229
+ - **NVIDIA ModelOpt** - the PTQ pipeline.
230
+ - **vLLM** - the serving engine, including the `Qwen3_5MTP` support that makes
231
+ the MTP head usable at all.
chat_template.jinja ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set _enable_thinking = false %}
2
+ {%- set preserve_thinking = true %}
3
+ {%- set image_count = namespace(value=0) %}
4
+ {%- set video_count = namespace(value=0) %}
5
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
6
+ {%- if content is string %}
7
+ {{- content }}
8
+ {%- elif content is iterable and content is not mapping %}
9
+ {%- for item in content %}
10
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
11
+ {%- if is_system_content %}
12
+ {{- raise_exception('System message cannot contain images.') }}
13
+ {%- endif %}
14
+ {%- if do_vision_count %}
15
+ {%- set image_count.value = image_count.value + 1 %}
16
+ {%- endif %}
17
+ {%- if add_vision_id is defined and add_vision_id %}
18
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
19
+ {%- endif %}
20
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
21
+ {%- elif 'video' in item or item.type == 'video' %}
22
+ {%- if is_system_content %}
23
+ {{- raise_exception('System message cannot contain videos.') }}
24
+ {%- endif %}
25
+ {%- if do_vision_count %}
26
+ {%- set video_count.value = video_count.value + 1 %}
27
+ {%- endif %}
28
+ {%- if add_vision_id is defined and add_vision_id %}
29
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
30
+ {%- endif %}
31
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
32
+ {%- elif 'text' in item %}
33
+ {{- item.text }}
34
+ {%- else %}
35
+ {{- raise_exception('Unexpected item type in content.') }}
36
+ {%- endif %}
37
+ {%- endfor %}
38
+ {%- elif content is none or content is undefined %}
39
+ {{- '' }}
40
+ {%- else %}
41
+ {{- raise_exception('Unexpected content type.') }}
42
+ {%- endif %}
43
+ {%- endmacro %}
44
+ {%- set ns_flags = namespace(enable_thinking=true) %}
45
+ {%- if enable_thinking is defined %}
46
+ {%- set ns_flags.enable_thinking = enable_thinking %}
47
+ {%- endif %}
48
+ {%- if not messages %}
49
+ {{- raise_exception('No messages provided.') }}
50
+ {%- endif %}
51
+ {%- if tools and tools is iterable and tools is not mapping %}
52
+ {{- '<|im_start|>system\n' }}
53
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
54
+ {%- for tool in tools %}
55
+ {{- "\n" }}
56
+ {{- tool | tojson }}
57
+ {%- endfor %}
58
+ {{- "\n</tools>" }}
59
+ {{- '\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>' }}
60
+ {%- if messages[0].role == 'system' or messages[0].role == 'developer' %}
61
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
62
+ {%- if '<|think_off|>' in content %}
63
+ {%- set ns_flags.enable_thinking = false %}
64
+ {%- set content = content.replace('<|think_off|>', '') %}
65
+ {%- endif %}
66
+ {%- if '<|think_on|>' in content %}
67
+ {%- set ns_flags.enable_thinking = true %}
68
+ {%- set content = content.replace('<|think_on|>', '') %}
69
+ {%- endif %}
70
+ {%- if '<|think_forget|>' in content %}
71
+ {%- set ns_flags.preserve_thinking = false %}
72
+ {%- set content = content.replace('<|think_forget|>', '') %}
73
+ {%- endif %}
74
+ {%- if '<|think_remember|>' in content %}
75
+ {%- set ns_flags.preserve_thinking = true %}
76
+ {%- set content = content.replace('<|think_remember|>', '') %}
77
+ {%- endif %}
78
+ {%- set content = content.strip() %}
79
+ {%- if content %}
80
+ {{- '\n\n' + content }}
81
+ {%- endif %}
82
+ {%- endif %}
83
+ {{- '<|im_end|>\n' }}
84
+ {%- else %}
85
+ {%- if messages[0].role == 'system' or messages[0].role == 'developer' %}
86
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
87
+ {%- if '<|think_off|>' in content %}
88
+ {%- set ns_flags.enable_thinking = false %}
89
+ {%- set content = content.replace('<|think_off|>', '') %}
90
+ {%- endif %}
91
+ {%- if '<|think_on|>' in content %}
92
+ {%- set ns_flags.enable_thinking = true %}
93
+ {%- set content = content.replace('<|think_on|>', '') %}
94
+ {%- endif %}
95
+ {%- if '<|think_forget|>' in content %}
96
+ {%- set ns_flags.preserve_thinking = false %}
97
+ {%- set content = content.replace('<|think_forget|>', '') %}
98
+ {%- endif %}
99
+ {%- if '<|think_remember|>' in content %}
100
+ {%- set ns_flags.preserve_thinking = true %}
101
+ {%- set content = content.replace('<|think_remember|>', '') %}
102
+ {%- endif %}
103
+ {%- set content = content.strip() %}
104
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
105
+ {%- endif %}
106
+ {%- endif %}
107
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
108
+ {%- for message in messages[::-1] %}
109
+ {%- set index = (messages|length - 1) - loop.index0 %}
110
+ {%- if ns.multi_step_tool and message.role == "user" %}
111
+ {%- set content = render_content(message.content, false)|trim %}
112
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
113
+ {%- set ns.multi_step_tool = false %}
114
+ {%- set ns.last_query_index = index %}
115
+ {%- endif %}
116
+ {%- endif %}
117
+ {%- endfor %}
118
+ {%- if ns.multi_step_tool %}
119
+ {{- raise_exception('No user query found in messages.') }}
120
+ {%- endif %}
121
+ {%- for message in messages %}
122
+ {%- set content = render_content(message.content, true)|trim %}
123
+ {%- if '<|think_off|>' in content %}
124
+ {%- set ns_flags.enable_thinking = false %}
125
+ {%- set content = content.replace('<|think_off|>', '') %}
126
+ {%- endif %}
127
+ {%- if '<|think_on|>' in content %}
128
+ {%- set ns_flags.enable_thinking = true %}
129
+ {%- set content = content.replace('<|think_on|>', '') %}
130
+ {%- endif %}
131
+ {%- if '<|think_forget|>' in content %}
132
+ {%- set ns_flags.preserve_thinking = false %}
133
+ {%- set content = content.replace('<|think_forget|>', '') %}
134
+ {%- endif %}
135
+ {%- if '<|think_remember|>' in content %}
136
+ {%- set ns_flags.preserve_thinking = true %}
137
+ {%- set content = content.replace('<|think_remember|>', '') %}
138
+ {%- endif %}
139
+ {%- set content = content.strip() %}
140
+ {%- if message.role == "system" or message.role == "developer" %}
141
+ {%- if not loop.first %}
142
+ {{- raise_exception('System message must be at the beginning.') }}
143
+ {%- endif %}
144
+ {%- elif message.role == "user" %}
145
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
146
+ {%- elif message.role == "assistant" %}
147
+ {%- set reasoning_content = '' %}
148
+ {%- if message.reasoning_content is string %}
149
+ {%- set reasoning_content = message.reasoning_content %}
150
+ {%- else %}
151
+ {%- set has_think_tag = false %}
152
+ {%- set think_end_token = '</think>' %}
153
+ {%- if '</think>' in content %}
154
+ {%- set has_think_tag = true %}
155
+ {%- elif '</thinking>' in content %}
156
+ {%- set has_think_tag = true %}
157
+ {%- set think_end_token = '</thinking>' %}
158
+ {%- elif '<think>' in content %}
159
+ {%- set reasoning_content = content.split('<think>')[-1].lstrip('\n') %}
160
+ {%- set content = '' %}
161
+ {%- endif %}
162
+ {%- if has_think_tag %}
163
+ {%- set reasoning_content = content.split(think_end_token)[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
164
+ {%- set content = content.split(think_end_token)[-1].lstrip('\n') %}
165
+ {%- endif %}
166
+ {%- endif %}
167
+ {%- set reasoning_content = reasoning_content|trim %}
168
+ {%- set show_think = false %}
169
+ {%- if loop.index0 > ns.last_query_index %}
170
+ {%- set show_think = true %}
171
+ {%- elif ns_flags.enable_thinking and (preserve_thinking is undefined or preserve_thinking is true) and reasoning_content|length > 0 %}
172
+ {%- set show_think = true %}
173
+ {%- endif %}
174
+ {%- if show_think %}
175
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
176
+ {%- else %}
177
+ {{- '<|im_start|>' + message.role + '\n' + content }}
178
+ {%- endif %}
179
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
180
+ {%- for tool_call in message.tool_calls %}
181
+ {%- if tool_call.function is defined %}
182
+ {%- set tool_call = tool_call.function %}
183
+ {%- endif %}
184
+ {%- if loop.first %}
185
+ {%- if content|trim %}
186
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
187
+ {%- else %}
188
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
189
+ {%- endif %}
190
+ {%- else %}
191
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
192
+ {%- endif %}
193
+ {%- if tool_call.arguments is defined and tool_call.arguments is mapping %}
194
+ {%- if tool_call.arguments|length > 0 %}
195
+ {%- for args_name in tool_call.arguments %}
196
+ {%- set args_value = tool_call.arguments[args_name] %}
197
+ {{- '<parameter=' + args_name + '>\n' }}
198
+ {%- set args_value = args_value | string if args_value is string else args_value | tojson %}
199
+ {{- args_value }}
200
+ {{- '\n</parameter>\n' }}
201
+ {%- endfor %}
202
+ {%- endif %}
203
+ {%- elif tool_call.arguments is defined and tool_call.arguments is string %}
204
+ {%- if tool_call.arguments|trim|length > 0 %}
205
+ {{- tool_call.arguments }}
206
+ {{- '\n' }}
207
+ {%- endif %}
208
+ {%- endif %}
209
+ {{- '</function>\n</tool_call>' }}
210
+ {%- endfor %}
211
+ {%- endif %}
212
+ {{- '<|im_end|>\n' }}
213
+ {%- elif message.role == "tool" %}
214
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
215
+ {{- '<|im_start|>user' }}
216
+ {%- endif %}
217
+ {{- '\n<tool_response>\n' }}
218
+ {{- content }}
219
+ {{- '\n</tool_response>' }}
220
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
221
+ {{- '<|im_end|>\n' }}
222
+ {%- elif loop.last %}
223
+ {{- '<|im_end|>\n' }}
224
+ {%- endif %}
225
+ {%- else %}
226
+ {{- raise_exception('Unexpected message role.') }}
227
+ {%- endif %}
228
+ {%- endfor %}
229
+ {%- if add_generation_prompt %}
230
+ {{- '<|im_start|>assistant\n' }}
231
+ {%- if ns_flags.enable_thinking is false %}
232
+ {{- '<think>\n\n</think>\n\n' }}
233
+ {%- else %}
234
+ {{- '<think>\n' }}
235
+ {%- endif %}
236
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "dtype": "bfloat16",
8
+ "image_token_id": 248056,
9
+ "language_model_only": false,
10
+ "model_name": "/mnt/w/27B-Qwen3.6-R64-it-vl-HERE-Bradbury-F451-qfx-ss-1x1",
11
+ "model_type": "qwen3_5",
12
+ "pad_token_id": 0,
13
+ "text_config": {
14
+ "attention_bias": false,
15
+ "attention_dropout": 0.0,
16
+ "attn_output_gate": true,
17
+ "bos_token_id": 248044,
18
+ "dtype": "bfloat16",
19
+ "eos_token_id": 248044,
20
+ "full_attention_interval": 4,
21
+ "head_dim": 256,
22
+ "hidden_act": "silu",
23
+ "hidden_size": 5120,
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 17408,
26
+ "layer_types": [
27
+ "linear_attention",
28
+ "linear_attention",
29
+ "linear_attention",
30
+ "full_attention",
31
+ "linear_attention",
32
+ "linear_attention",
33
+ "linear_attention",
34
+ "full_attention",
35
+ "linear_attention",
36
+ "linear_attention",
37
+ "linear_attention",
38
+ "full_attention",
39
+ "linear_attention",
40
+ "linear_attention",
41
+ "linear_attention",
42
+ "full_attention",
43
+ "linear_attention",
44
+ "linear_attention",
45
+ "linear_attention",
46
+ "full_attention",
47
+ "linear_attention",
48
+ "linear_attention",
49
+ "linear_attention",
50
+ "full_attention",
51
+ "linear_attention",
52
+ "linear_attention",
53
+ "linear_attention",
54
+ "full_attention",
55
+ "linear_attention",
56
+ "linear_attention",
57
+ "linear_attention",
58
+ "full_attention",
59
+ "linear_attention",
60
+ "linear_attention",
61
+ "linear_attention",
62
+ "full_attention",
63
+ "linear_attention",
64
+ "linear_attention",
65
+ "linear_attention",
66
+ "full_attention",
67
+ "linear_attention",
68
+ "linear_attention",
69
+ "linear_attention",
70
+ "full_attention",
71
+ "linear_attention",
72
+ "linear_attention",
73
+ "linear_attention",
74
+ "full_attention",
75
+ "linear_attention",
76
+ "linear_attention",
77
+ "linear_attention",
78
+ "full_attention",
79
+ "linear_attention",
80
+ "linear_attention",
81
+ "linear_attention",
82
+ "full_attention",
83
+ "linear_attention",
84
+ "linear_attention",
85
+ "linear_attention",
86
+ "full_attention",
87
+ "linear_attention",
88
+ "linear_attention",
89
+ "linear_attention",
90
+ "full_attention"
91
+ ],
92
+ "linear_conv_kernel_dim": 4,
93
+ "linear_key_head_dim": 128,
94
+ "linear_num_key_heads": 16,
95
+ "linear_num_value_heads": 48,
96
+ "linear_value_head_dim": 128,
97
+ "mamba_ssm_dtype": "float32",
98
+ "max_position_embeddings": 262144,
99
+ "model_type": "qwen3_5_text",
100
+ "mtp_num_hidden_layers": 1,
101
+ "mtp_use_dedicated_embeddings": false,
102
+ "num_attention_heads": 24,
103
+ "num_hidden_layers": 64,
104
+ "num_key_value_heads": 4,
105
+ "output_gate_type": "swish",
106
+ "pad_token_id": null,
107
+ "partial_rotary_factor": 0.25,
108
+ "rms_norm_eps": 1e-06,
109
+ "rope_parameters": {
110
+ "mrope_interleaved": true,
111
+ "mrope_section": [
112
+ 11,
113
+ 11,
114
+ 10
115
+ ],
116
+ "partial_rotary_factor": 0.25,
117
+ "rope_theta": 10000000,
118
+ "rope_type": "default"
119
+ },
120
+ "tie_word_embeddings": false,
121
+ "use_cache": false,
122
+ "vocab_size": 248320
123
+ },
124
+ "tie_word_embeddings": false,
125
+ "transformers_version": "5.9.0",
126
+ "unsloth_version": "2026.7.2",
127
+ "video_token_id": 248057,
128
+ "vision_config": {
129
+ "deepstack_visual_indexes": [],
130
+ "depth": 27,
131
+ "dtype": "bfloat16",
132
+ "hidden_act": "gelu_pytorch_tanh",
133
+ "hidden_size": 1152,
134
+ "in_channels": 3,
135
+ "initializer_range": 0.02,
136
+ "intermediate_size": 4304,
137
+ "model_type": "qwen3_5_vision",
138
+ "num_heads": 16,
139
+ "num_position_embeddings": 2304,
140
+ "out_hidden_size": 5120,
141
+ "patch_size": 16,
142
+ "spatial_merge_size": 2,
143
+ "temporal_patch_size": 2
144
+ },
145
+ "vision_end_token_id": 248054,
146
+ "vision_start_token_id": 248053,
147
+ "quantization_config": {
148
+ "config_groups": {
149
+ "group_0": {
150
+ "input_activations": {
151
+ "dynamic": false,
152
+ "num_bits": 4,
153
+ "type": "float",
154
+ "group_size": 16
155
+ },
156
+ "weights": {
157
+ "dynamic": false,
158
+ "num_bits": 4,
159
+ "type": "float",
160
+ "group_size": 16
161
+ },
162
+ "targets": [
163
+ "Linear"
164
+ ]
165
+ }
166
+ },
167
+ "ignore": [
168
+ "lm_head",
169
+ "model.language_model.embed_tokens",
170
+ "model.language_model.layers.0.linear_attn.conv1d",
171
+ "model.language_model.layers.0.linear_attn.in_proj_a",
172
+ "model.language_model.layers.0.linear_attn.in_proj_b",
173
+ "model.language_model.layers.1.linear_attn.conv1d",
174
+ "model.language_model.layers.1.linear_attn.in_proj_a",
175
+ "model.language_model.layers.1.linear_attn.in_proj_b",
176
+ "model.language_model.layers.10.linear_attn.conv1d",
177
+ "model.language_model.layers.10.linear_attn.in_proj_a",
178
+ "model.language_model.layers.10.linear_attn.in_proj_b",
179
+ "model.language_model.layers.12.linear_attn.conv1d",
180
+ "model.language_model.layers.12.linear_attn.in_proj_a",
181
+ "model.language_model.layers.12.linear_attn.in_proj_b",
182
+ "model.language_model.layers.13.linear_attn.conv1d",
183
+ "model.language_model.layers.13.linear_attn.in_proj_a",
184
+ "model.language_model.layers.13.linear_attn.in_proj_b",
185
+ "model.language_model.layers.14.linear_attn.conv1d",
186
+ "model.language_model.layers.14.linear_attn.in_proj_a",
187
+ "model.language_model.layers.14.linear_attn.in_proj_b",
188
+ "model.language_model.layers.16.linear_attn.conv1d",
189
+ "model.language_model.layers.16.linear_attn.in_proj_a",
190
+ "model.language_model.layers.16.linear_attn.in_proj_b",
191
+ "model.language_model.layers.17.linear_attn.conv1d",
192
+ "model.language_model.layers.17.linear_attn.in_proj_a",
193
+ "model.language_model.layers.17.linear_attn.in_proj_b",
194
+ "model.language_model.layers.18.linear_attn.conv1d",
195
+ "model.language_model.layers.18.linear_attn.in_proj_a",
196
+ "model.language_model.layers.18.linear_attn.in_proj_b",
197
+ "model.language_model.layers.2.linear_attn.conv1d",
198
+ "model.language_model.layers.2.linear_attn.in_proj_a",
199
+ "model.language_model.layers.2.linear_attn.in_proj_b",
200
+ "model.language_model.layers.20.linear_attn.conv1d",
201
+ "model.language_model.layers.20.linear_attn.in_proj_a",
202
+ "model.language_model.layers.20.linear_attn.in_proj_b",
203
+ "model.language_model.layers.21.linear_attn.conv1d",
204
+ "model.language_model.layers.21.linear_attn.in_proj_a",
205
+ "model.language_model.layers.21.linear_attn.in_proj_b",
206
+ "model.language_model.layers.22.linear_attn.conv1d",
207
+ "model.language_model.layers.22.linear_attn.in_proj_a",
208
+ "model.language_model.layers.22.linear_attn.in_proj_b",
209
+ "model.language_model.layers.24.linear_attn.conv1d",
210
+ "model.language_model.layers.24.linear_attn.in_proj_a",
211
+ "model.language_model.layers.24.linear_attn.in_proj_b",
212
+ "model.language_model.layers.25.linear_attn.conv1d",
213
+ "model.language_model.layers.25.linear_attn.in_proj_a",
214
+ "model.language_model.layers.25.linear_attn.in_proj_b",
215
+ "model.language_model.layers.26.linear_attn.conv1d",
216
+ "model.language_model.layers.26.linear_attn.in_proj_a",
217
+ "model.language_model.layers.26.linear_attn.in_proj_b",
218
+ "model.language_model.layers.28.linear_attn.conv1d",
219
+ "model.language_model.layers.28.linear_attn.in_proj_a",
220
+ "model.language_model.layers.28.linear_attn.in_proj_b",
221
+ "model.language_model.layers.29.linear_attn.conv1d",
222
+ "model.language_model.layers.29.linear_attn.in_proj_a",
223
+ "model.language_model.layers.29.linear_attn.in_proj_b",
224
+ "model.language_model.layers.30.linear_attn.conv1d",
225
+ "model.language_model.layers.30.linear_attn.in_proj_a",
226
+ "model.language_model.layers.30.linear_attn.in_proj_b",
227
+ "model.language_model.layers.32.linear_attn.conv1d",
228
+ "model.language_model.layers.32.linear_attn.in_proj_a",
229
+ "model.language_model.layers.32.linear_attn.in_proj_b",
230
+ "model.language_model.layers.33.linear_attn.conv1d",
231
+ "model.language_model.layers.33.linear_attn.in_proj_a",
232
+ "model.language_model.layers.33.linear_attn.in_proj_b",
233
+ "model.language_model.layers.34.linear_attn.conv1d",
234
+ "model.language_model.layers.34.linear_attn.in_proj_a",
235
+ "model.language_model.layers.34.linear_attn.in_proj_b",
236
+ "model.language_model.layers.36.linear_attn.conv1d",
237
+ "model.language_model.layers.36.linear_attn.in_proj_a",
238
+ "model.language_model.layers.36.linear_attn.in_proj_b",
239
+ "model.language_model.layers.37.linear_attn.conv1d",
240
+ "model.language_model.layers.37.linear_attn.in_proj_a",
241
+ "model.language_model.layers.37.linear_attn.in_proj_b",
242
+ "model.language_model.layers.38.linear_attn.conv1d",
243
+ "model.language_model.layers.38.linear_attn.in_proj_a",
244
+ "model.language_model.layers.38.linear_attn.in_proj_b",
245
+ "model.language_model.layers.4.linear_attn.conv1d",
246
+ "model.language_model.layers.4.linear_attn.in_proj_a",
247
+ "model.language_model.layers.4.linear_attn.in_proj_b",
248
+ "model.language_model.layers.40.linear_attn.conv1d",
249
+ "model.language_model.layers.40.linear_attn.in_proj_a",
250
+ "model.language_model.layers.40.linear_attn.in_proj_b",
251
+ "model.language_model.layers.41.linear_attn.conv1d",
252
+ "model.language_model.layers.41.linear_attn.in_proj_a",
253
+ "model.language_model.layers.41.linear_attn.in_proj_b",
254
+ "model.language_model.layers.42.linear_attn.conv1d",
255
+ "model.language_model.layers.42.linear_attn.in_proj_a",
256
+ "model.language_model.layers.42.linear_attn.in_proj_b",
257
+ "model.language_model.layers.44.linear_attn.conv1d",
258
+ "model.language_model.layers.44.linear_attn.in_proj_a",
259
+ "model.language_model.layers.44.linear_attn.in_proj_b",
260
+ "model.language_model.layers.45.linear_attn.conv1d",
261
+ "model.language_model.layers.45.linear_attn.in_proj_a",
262
+ "model.language_model.layers.45.linear_attn.in_proj_b",
263
+ "model.language_model.layers.46.linear_attn.conv1d",
264
+ "model.language_model.layers.46.linear_attn.in_proj_a",
265
+ "model.language_model.layers.46.linear_attn.in_proj_b",
266
+ "model.language_model.layers.48.linear_attn.conv1d",
267
+ "model.language_model.layers.48.linear_attn.in_proj_a",
268
+ "model.language_model.layers.48.linear_attn.in_proj_b",
269
+ "model.language_model.layers.49.linear_attn.conv1d",
270
+ "model.language_model.layers.49.linear_attn.in_proj_a",
271
+ "model.language_model.layers.49.linear_attn.in_proj_b",
272
+ "model.language_model.layers.5.linear_attn.conv1d",
273
+ "model.language_model.layers.5.linear_attn.in_proj_a",
274
+ "model.language_model.layers.5.linear_attn.in_proj_b",
275
+ "model.language_model.layers.50.linear_attn.conv1d",
276
+ "model.language_model.layers.50.linear_attn.in_proj_a",
277
+ "model.language_model.layers.50.linear_attn.in_proj_b",
278
+ "model.language_model.layers.52.linear_attn.conv1d",
279
+ "model.language_model.layers.52.linear_attn.in_proj_a",
280
+ "model.language_model.layers.52.linear_attn.in_proj_b",
281
+ "model.language_model.layers.53.linear_attn.conv1d",
282
+ "model.language_model.layers.53.linear_attn.in_proj_a",
283
+ "model.language_model.layers.53.linear_attn.in_proj_b",
284
+ "model.language_model.layers.54.linear_attn.conv1d",
285
+ "model.language_model.layers.54.linear_attn.in_proj_a",
286
+ "model.language_model.layers.54.linear_attn.in_proj_b",
287
+ "model.language_model.layers.56.linear_attn.conv1d",
288
+ "model.language_model.layers.56.linear_attn.in_proj_a",
289
+ "model.language_model.layers.56.linear_attn.in_proj_b",
290
+ "model.language_model.layers.57.linear_attn.conv1d",
291
+ "model.language_model.layers.57.linear_attn.in_proj_a",
292
+ "model.language_model.layers.57.linear_attn.in_proj_b",
293
+ "model.language_model.layers.58.linear_attn.conv1d",
294
+ "model.language_model.layers.58.linear_attn.in_proj_a",
295
+ "model.language_model.layers.58.linear_attn.in_proj_b",
296
+ "model.language_model.layers.6.linear_attn.conv1d",
297
+ "model.language_model.layers.6.linear_attn.in_proj_a",
298
+ "model.language_model.layers.6.linear_attn.in_proj_b",
299
+ "model.language_model.layers.60.linear_attn.conv1d",
300
+ "model.language_model.layers.60.linear_attn.in_proj_a",
301
+ "model.language_model.layers.60.linear_attn.in_proj_b",
302
+ "model.language_model.layers.61.linear_attn.conv1d",
303
+ "model.language_model.layers.61.linear_attn.in_proj_a",
304
+ "model.language_model.layers.61.linear_attn.in_proj_b",
305
+ "model.language_model.layers.62.linear_attn.conv1d",
306
+ "model.language_model.layers.62.linear_attn.in_proj_a",
307
+ "model.language_model.layers.62.linear_attn.in_proj_b",
308
+ "model.language_model.layers.8.linear_attn.conv1d",
309
+ "model.language_model.layers.8.linear_attn.in_proj_a",
310
+ "model.language_model.layers.8.linear_attn.in_proj_b",
311
+ "model.language_model.layers.9.linear_attn.conv1d",
312
+ "model.language_model.layers.9.linear_attn.in_proj_a",
313
+ "model.language_model.layers.9.linear_attn.in_proj_b",
314
+ "model.visual*",
315
+ "mtp*",
316
+ "mtp.layers.0*"
317
+ ],
318
+ "quant_algo": "NVFP4",
319
+ "kv_cache_scheme": {
320
+ "dynamic": false,
321
+ "num_bits": 8,
322
+ "type": "float"
323
+ },
324
+ "producer": {
325
+ "name": "modelopt",
326
+ "version": "0.45.0"
327
+ },
328
+ "quant_method": "modelopt"
329
+ }
330
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 248044,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 248046,
6
+ 248044
7
+ ],
8
+ "pad_token_id": 248044,
9
+ "temperature": 1.0,
10
+ "top_k": 20,
11
+ "top_p": 0.95,
12
+ "transformers_version": "5.9.0"
13
+ }
hf_quant_config.json ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "producer": {
3
+ "name": "modelopt",
4
+ "version": "0.45.0"
5
+ },
6
+ "quantization": {
7
+ "quant_algo": "NVFP4",
8
+ "kv_cache_quant_algo": "FP8",
9
+ "group_size": 16,
10
+ "exclude_modules": [
11
+ "lm_head",
12
+ "model.language_model.embed_tokens",
13
+ "model.language_model.layers.0.linear_attn.conv1d",
14
+ "model.language_model.layers.0.linear_attn.in_proj_a",
15
+ "model.language_model.layers.0.linear_attn.in_proj_b",
16
+ "model.language_model.layers.1.linear_attn.conv1d",
17
+ "model.language_model.layers.1.linear_attn.in_proj_a",
18
+ "model.language_model.layers.1.linear_attn.in_proj_b",
19
+ "model.language_model.layers.10.linear_attn.conv1d",
20
+ "model.language_model.layers.10.linear_attn.in_proj_a",
21
+ "model.language_model.layers.10.linear_attn.in_proj_b",
22
+ "model.language_model.layers.12.linear_attn.conv1d",
23
+ "model.language_model.layers.12.linear_attn.in_proj_a",
24
+ "model.language_model.layers.12.linear_attn.in_proj_b",
25
+ "model.language_model.layers.13.linear_attn.conv1d",
26
+ "model.language_model.layers.13.linear_attn.in_proj_a",
27
+ "model.language_model.layers.13.linear_attn.in_proj_b",
28
+ "model.language_model.layers.14.linear_attn.conv1d",
29
+ "model.language_model.layers.14.linear_attn.in_proj_a",
30
+ "model.language_model.layers.14.linear_attn.in_proj_b",
31
+ "model.language_model.layers.16.linear_attn.conv1d",
32
+ "model.language_model.layers.16.linear_attn.in_proj_a",
33
+ "model.language_model.layers.16.linear_attn.in_proj_b",
34
+ "model.language_model.layers.17.linear_attn.conv1d",
35
+ "model.language_model.layers.17.linear_attn.in_proj_a",
36
+ "model.language_model.layers.17.linear_attn.in_proj_b",
37
+ "model.language_model.layers.18.linear_attn.conv1d",
38
+ "model.language_model.layers.18.linear_attn.in_proj_a",
39
+ "model.language_model.layers.18.linear_attn.in_proj_b",
40
+ "model.language_model.layers.2.linear_attn.conv1d",
41
+ "model.language_model.layers.2.linear_attn.in_proj_a",
42
+ "model.language_model.layers.2.linear_attn.in_proj_b",
43
+ "model.language_model.layers.20.linear_attn.conv1d",
44
+ "model.language_model.layers.20.linear_attn.in_proj_a",
45
+ "model.language_model.layers.20.linear_attn.in_proj_b",
46
+ "model.language_model.layers.21.linear_attn.conv1d",
47
+ "model.language_model.layers.21.linear_attn.in_proj_a",
48
+ "model.language_model.layers.21.linear_attn.in_proj_b",
49
+ "model.language_model.layers.22.linear_attn.conv1d",
50
+ "model.language_model.layers.22.linear_attn.in_proj_a",
51
+ "model.language_model.layers.22.linear_attn.in_proj_b",
52
+ "model.language_model.layers.24.linear_attn.conv1d",
53
+ "model.language_model.layers.24.linear_attn.in_proj_a",
54
+ "model.language_model.layers.24.linear_attn.in_proj_b",
55
+ "model.language_model.layers.25.linear_attn.conv1d",
56
+ "model.language_model.layers.25.linear_attn.in_proj_a",
57
+ "model.language_model.layers.25.linear_attn.in_proj_b",
58
+ "model.language_model.layers.26.linear_attn.conv1d",
59
+ "model.language_model.layers.26.linear_attn.in_proj_a",
60
+ "model.language_model.layers.26.linear_attn.in_proj_b",
61
+ "model.language_model.layers.28.linear_attn.conv1d",
62
+ "model.language_model.layers.28.linear_attn.in_proj_a",
63
+ "model.language_model.layers.28.linear_attn.in_proj_b",
64
+ "model.language_model.layers.29.linear_attn.conv1d",
65
+ "model.language_model.layers.29.linear_attn.in_proj_a",
66
+ "model.language_model.layers.29.linear_attn.in_proj_b",
67
+ "model.language_model.layers.30.linear_attn.conv1d",
68
+ "model.language_model.layers.30.linear_attn.in_proj_a",
69
+ "model.language_model.layers.30.linear_attn.in_proj_b",
70
+ "model.language_model.layers.32.linear_attn.conv1d",
71
+ "model.language_model.layers.32.linear_attn.in_proj_a",
72
+ "model.language_model.layers.32.linear_attn.in_proj_b",
73
+ "model.language_model.layers.33.linear_attn.conv1d",
74
+ "model.language_model.layers.33.linear_attn.in_proj_a",
75
+ "model.language_model.layers.33.linear_attn.in_proj_b",
76
+ "model.language_model.layers.34.linear_attn.conv1d",
77
+ "model.language_model.layers.34.linear_attn.in_proj_a",
78
+ "model.language_model.layers.34.linear_attn.in_proj_b",
79
+ "model.language_model.layers.36.linear_attn.conv1d",
80
+ "model.language_model.layers.36.linear_attn.in_proj_a",
81
+ "model.language_model.layers.36.linear_attn.in_proj_b",
82
+ "model.language_model.layers.37.linear_attn.conv1d",
83
+ "model.language_model.layers.37.linear_attn.in_proj_a",
84
+ "model.language_model.layers.37.linear_attn.in_proj_b",
85
+ "model.language_model.layers.38.linear_attn.conv1d",
86
+ "model.language_model.layers.38.linear_attn.in_proj_a",
87
+ "model.language_model.layers.38.linear_attn.in_proj_b",
88
+ "model.language_model.layers.4.linear_attn.conv1d",
89
+ "model.language_model.layers.4.linear_attn.in_proj_a",
90
+ "model.language_model.layers.4.linear_attn.in_proj_b",
91
+ "model.language_model.layers.40.linear_attn.conv1d",
92
+ "model.language_model.layers.40.linear_attn.in_proj_a",
93
+ "model.language_model.layers.40.linear_attn.in_proj_b",
94
+ "model.language_model.layers.41.linear_attn.conv1d",
95
+ "model.language_model.layers.41.linear_attn.in_proj_a",
96
+ "model.language_model.layers.41.linear_attn.in_proj_b",
97
+ "model.language_model.layers.42.linear_attn.conv1d",
98
+ "model.language_model.layers.42.linear_attn.in_proj_a",
99
+ "model.language_model.layers.42.linear_attn.in_proj_b",
100
+ "model.language_model.layers.44.linear_attn.conv1d",
101
+ "model.language_model.layers.44.linear_attn.in_proj_a",
102
+ "model.language_model.layers.44.linear_attn.in_proj_b",
103
+ "model.language_model.layers.45.linear_attn.conv1d",
104
+ "model.language_model.layers.45.linear_attn.in_proj_a",
105
+ "model.language_model.layers.45.linear_attn.in_proj_b",
106
+ "model.language_model.layers.46.linear_attn.conv1d",
107
+ "model.language_model.layers.46.linear_attn.in_proj_a",
108
+ "model.language_model.layers.46.linear_attn.in_proj_b",
109
+ "model.language_model.layers.48.linear_attn.conv1d",
110
+ "model.language_model.layers.48.linear_attn.in_proj_a",
111
+ "model.language_model.layers.48.linear_attn.in_proj_b",
112
+ "model.language_model.layers.49.linear_attn.conv1d",
113
+ "model.language_model.layers.49.linear_attn.in_proj_a",
114
+ "model.language_model.layers.49.linear_attn.in_proj_b",
115
+ "model.language_model.layers.5.linear_attn.conv1d",
116
+ "model.language_model.layers.5.linear_attn.in_proj_a",
117
+ "model.language_model.layers.5.linear_attn.in_proj_b",
118
+ "model.language_model.layers.50.linear_attn.conv1d",
119
+ "model.language_model.layers.50.linear_attn.in_proj_a",
120
+ "model.language_model.layers.50.linear_attn.in_proj_b",
121
+ "model.language_model.layers.52.linear_attn.conv1d",
122
+ "model.language_model.layers.52.linear_attn.in_proj_a",
123
+ "model.language_model.layers.52.linear_attn.in_proj_b",
124
+ "model.language_model.layers.53.linear_attn.conv1d",
125
+ "model.language_model.layers.53.linear_attn.in_proj_a",
126
+ "model.language_model.layers.53.linear_attn.in_proj_b",
127
+ "model.language_model.layers.54.linear_attn.conv1d",
128
+ "model.language_model.layers.54.linear_attn.in_proj_a",
129
+ "model.language_model.layers.54.linear_attn.in_proj_b",
130
+ "model.language_model.layers.56.linear_attn.conv1d",
131
+ "model.language_model.layers.56.linear_attn.in_proj_a",
132
+ "model.language_model.layers.56.linear_attn.in_proj_b",
133
+ "model.language_model.layers.57.linear_attn.conv1d",
134
+ "model.language_model.layers.57.linear_attn.in_proj_a",
135
+ "model.language_model.layers.57.linear_attn.in_proj_b",
136
+ "model.language_model.layers.58.linear_attn.conv1d",
137
+ "model.language_model.layers.58.linear_attn.in_proj_a",
138
+ "model.language_model.layers.58.linear_attn.in_proj_b",
139
+ "model.language_model.layers.6.linear_attn.conv1d",
140
+ "model.language_model.layers.6.linear_attn.in_proj_a",
141
+ "model.language_model.layers.6.linear_attn.in_proj_b",
142
+ "model.language_model.layers.60.linear_attn.conv1d",
143
+ "model.language_model.layers.60.linear_attn.in_proj_a",
144
+ "model.language_model.layers.60.linear_attn.in_proj_b",
145
+ "model.language_model.layers.61.linear_attn.conv1d",
146
+ "model.language_model.layers.61.linear_attn.in_proj_a",
147
+ "model.language_model.layers.61.linear_attn.in_proj_b",
148
+ "model.language_model.layers.62.linear_attn.conv1d",
149
+ "model.language_model.layers.62.linear_attn.in_proj_a",
150
+ "model.language_model.layers.62.linear_attn.in_proj_b",
151
+ "model.language_model.layers.8.linear_attn.conv1d",
152
+ "model.language_model.layers.8.linear_attn.in_proj_a",
153
+ "model.language_model.layers.8.linear_attn.in_proj_b",
154
+ "model.language_model.layers.9.linear_attn.conv1d",
155
+ "model.language_model.layers.9.linear_attn.in_proj_a",
156
+ "model.language_model.layers.9.linear_attn.in_proj_b",
157
+ "model.visual*",
158
+ "mtp*",
159
+ "mtp.layers.0*"
160
+ ]
161
+ }
162
+ }
model-00001-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93ce8d08941c32e31128687f02038e6731cce875b5f321b75b13559b5d328ba4
3
+ size 9972777720
model-00002-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:062c9ca311ad6b7255c1a5443c0292683fb17f7c232c9f9e18e90ab413f11c2b
3
+ size 9949239752
model-00003-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3dc5d8aabf350d820655bf8877862fdc59fdd3a442b4fed1ecaa2f3397b9160
3
+ size 566274352
model-mtp-fc.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0492014453e8e5d938d13a8976617d38fa33851b4c05bc073cf536de7ec558b6
3
+ size 104857704
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 16777216,
4
+ "shortest_edge": 65536
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "image_processor_type": "Qwen2VLImageProcessorFast"
21
+ }
processor_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
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": "Qwen2VLImageProcessor",
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
+ },
28
+ "processor_class": "Qwen3VLProcessor",
29
+ "video_processor": {
30
+ "do_convert_rgb": true,
31
+ "do_normalize": true,
32
+ "do_rescale": true,
33
+ "do_resize": true,
34
+ "do_sample_frames": true,
35
+ "fps": 2,
36
+ "image_mean": [
37
+ 0.5,
38
+ 0.5,
39
+ 0.5
40
+ ],
41
+ "image_std": [
42
+ 0.5,
43
+ 0.5,
44
+ 0.5
45
+ ],
46
+ "max_frames": 768,
47
+ "merge_size": 2,
48
+ "min_frames": 4,
49
+ "patch_size": 16,
50
+ "resample": 3,
51
+ "rescale_factor": 0.00392156862745098,
52
+ "return_metadata": false,
53
+ "size": {
54
+ "longest_edge": 25165824,
55
+ "shortest_edge": 4096
56
+ },
57
+ "temporal_patch_size": 2,
58
+ "video_processor_type": "Qwen3VLVideoProcessor"
59
+ }
60
+ }
quant_summary.txt ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f32ce20dc35f57a7f9ad1eac03525bd7d30f9df8cea6507e958279cc3657706
3
+ size 19989492
tokenizer_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
13
+ "local_files_only": false,
14
+ "max_length": null,
15
+ "model_max_length": 262144,
16
+ "model_specific_special_tokens": {
17
+ "audio_bos_token": "<|audio_start|>",
18
+ "audio_eos_token": "<|audio_end|>",
19
+ "audio_token": "<|audio_pad|>",
20
+ "image_token": "<|image_pad|>",
21
+ "video_token": "<|video_pad|>",
22
+ "vision_bos_token": "<|vision_start|>",
23
+ "vision_eos_token": "<|vision_end|>"
24
+ },
25
+ "pad_to_multiple_of": null,
26
+ "pad_token": "<|im_end|>",
27
+ "pad_token_type_id": 0,
28
+ "padding_side": "left",
29
+ "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+",
30
+ "processor_class": "Qwen3VLProcessor",
31
+ "split_special_tokens": false,
32
+ "tokenizer_class": "Qwen2Tokenizer",
33
+ "unk_token": null,
34
+ "video_token": "<|video_pad|>",
35
+ "vision_bos_token": "<|vision_start|>",
36
+ "vision_eos_token": "<|vision_end|>"
37
+ }
video_preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 25165824,
4
+ "shortest_edge": 4096
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "video_processor_type": "Qwen3VLVideoProcessor"
21
+ }