sakamakismile commited on
Commit
924bfa4
·
verified ·
1 Parent(s): fa4f86d

Upload folder using huggingface_hub

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,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: AEON-7/Qwen3.8-27B-AEON-ULTIMATE-UNCENSORED-BF16
4
+ base_model_relation: quantized
5
+ library_name: vllm
6
+ tags:
7
+ - nvfp4
8
+ - compressed-tensors
9
+ - mtp
10
+ - speculative-decoding
11
+ - blackwell
12
+ - qwen3_5
13
+ - uncensored
14
+ pipeline_tag: text-generation
15
+ ---
16
+
17
+ # Qwen3.8-27B-AEON-ULTIMATE-UNCENSORED-NVFP4
18
+
19
+ NVFP4 (W4A4, group 16) quantization of [**AEON-7/Qwen3.8-27B-AEON-ULTIMATE-UNCENSORED-BF16**](https://huggingface.co/AEON-7/Qwen3.8-27B-AEON-ULTIMATE-UNCENSORED-BF16) — all credit for the model itself goes to [@AEON-7](https://huggingface.co/AEON-7). This repo only carries the quantized weights.
20
+
21
+ **55.6 GB → 20.58 GB.** Fits on two 16 GB cards with real KV headroom.
22
+
23
+ - **MTP draft head preserved in bf16** and wired into the index — speculative decoding works out of the box.
24
+ - bf16 kept for: `lm_head`, the vision tower, the DeltaNet `conv1d`, and the MTP head. Everything else is NVFP4 W4A4.
25
+ - Built for **SM120 / Blackwell with vanilla vLLM v0.22.0** — compressed-tensors is auto-detected, no `--quantization` flag.
26
+ - Quantized GPU-resident (full bf16 dispatched across 7× RTX PRO 2000 Blackwell via `device_map=auto`): **122 seconds end to end.**
27
+
28
+ ## Measured (TP=4, 32k ctx, KV fp8, RTX PRO 2000 Blackwell ×4, MTP n=3)
29
+
30
+ | concurrency | aggregate t/s |
31
+ |---|---|
32
+ | 1 | 69.0 |
33
+ | 4 | 202.3 |
34
+ | 8 | 377.8 |
35
+
36
+ Single-stream prefill: **3,720 tok/s** (best 3,888) on an 8k prompt, prefix cache disabled, mean of 3. GPU KV cache at this config: 619,613 tokens.
37
+
38
+ Sanity-checked after quantization: Japanese self-introduction, arithmetic/primality, and Python code generation all come back clean — no structural damage from the 4-bit pass.
39
+
40
+ ## Serve
41
+
42
+ ```bash
43
+ vllm serve sakamakismile/Qwen3.8-27B-AEON-ULTIMATE-UNCENSORED-NVFP4 \
44
+ --trust-remote-code --tensor-parallel-size 4 \
45
+ --max-model-len 32768 --kv-cache-dtype fp8 --reasoning-parser qwen3 \
46
+ --speculative-config '{"method":"qwen3_5_mtp","num_speculative_tokens":3}'
47
+ ```
48
+
49
+ On boards without P2P add `NCCL_P2P_DISABLE=1` and `--disable-custom-all-reduce`.
50
+
51
+ ## ⚠️ Gotchas
52
+
53
+ - **The 15 `mtp.*` modules are listed in `quantization_config.ignore` — do not remove them.** If vLLM treats the bf16 MTP head as NVFP4 the draft breaks silently: 0% acceptance, slower than no MTP at all.
54
+ - W4A16 (NVFP4A16) does **not** serve on this architecture in vLLM 0.22 (`gptq_marlin_repack: size_n=24 not divisible by tile_n_size=64`). W4A4 only.
55
+ - Reasoning model: give it `max_tokens ≥ 4096`, or use `chat_template_kwargs: {"reasoning_effort": "low"}` for long-form generation — at the default effort it can spend the entire budget thinking.
56
+ - Long single-file code generation drops a closing paren roughly 1–2 times in 14 regardless of sampling temperature (measured with a JS parser on the base Qwen3.8-27B). Put a syntax check in the loop rather than tuning temperature.
57
+
58
+ ## Recipe
59
+
60
+ llm-compressor NVFP4 (W4A4, group 16), `targets: [Linear]`, `ignore: [lm_head, re:.*visual.*, re:.*conv1d.*, re:.*mtp.*]`, 32 calibration samples × 8192 tok from `neuralmagic/calibration`. MTP tensors grafted back in bf16 after saving and appended to `quantization_config.ignore`.
61
+
62
+ 🙏 [@AEON-7](https://huggingface.co/AEON-7) for the model, Qwen team for the base, vLLM & llm-compressor teams for the tooling.
chat_template.jinja ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {%- set reasoning_instructions = '' %}
46
+ {%- if enable_thinking is undefined or enable_thinking is true %}
47
+ {%- set resolved_reasoning_effort = reasoning_effort|default('xhigh') %}
48
+ {%- if resolved_reasoning_effort not in ('xhigh', 'medium', 'low') %}
49
+ {{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported types are xhigh (default), medium, and low.') }}
50
+ {%- endif %}
51
+ {%- if resolved_reasoning_effort == 'xhigh' %}
52
+ {%- set reasoning_instructions = 'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.' %}
53
+ {%- elif resolved_reasoning_effort == 'low' %}
54
+ {%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %}
55
+ {%- endif %}
56
+ {%- endif %}
57
+ {%- if tools and tools is iterable and tools is not mapping %}
58
+ {{- '<|im_start|>system\n' }}
59
+ {%- if reasoning_instructions %}
60
+ {{- reasoning_instructions + '\n\n' }}
61
+ {%- endif %}
62
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
63
+ {%- for tool in tools %}
64
+ {{- "\n" }}
65
+ {{- tool | tojson }}
66
+ {%- endfor %}
67
+ {{- "\n</tools>" }}
68
+ {{- '\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>' }}
69
+ {%- if messages[0].role == 'system' %}
70
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
71
+ {%- if content %}
72
+ {{- '\n\n' + content }}
73
+ {%- endif %}
74
+ {%- endif %}
75
+ {{- '<|im_end|>\n' }}
76
+ {%- else %}
77
+ {%- if messages[0].role == 'system' %}
78
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
79
+ {%- if content %}
80
+ {{- '<|im_start|>system\n' + (reasoning_instructions + '\n\n' if reasoning_instructions else '') + content + '<|im_end|>\n' }}
81
+ {%- elif reasoning_instructions %}
82
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
83
+ {%- endif %}
84
+ {%- elif reasoning_instructions %}
85
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
86
+ {%- endif %}
87
+ {%- endif %}
88
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
89
+ {%- for message in messages[::-1] %}
90
+ {%- set index = (messages|length - 1) - loop.index0 %}
91
+ {%- if ns.multi_step_tool and message.role == "user" %}
92
+ {%- set content = render_content(message.content, false)|trim %}
93
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
94
+ {%- set ns.multi_step_tool = false %}
95
+ {%- set ns.last_query_index = index %}
96
+ {%- endif %}
97
+ {%- endif %}
98
+ {%- endfor %}
99
+ {%- if ns.multi_step_tool %}
100
+ {{- raise_exception('No user query found in messages.') }}
101
+ {%- endif %}
102
+ {%- for message in messages %}
103
+ {%- set content = render_content(message.content, true)|trim %}
104
+ {%- if message.role == "system" %}
105
+ {%- if not loop.first %}
106
+ {{- raise_exception('System message must be at the beginning.') }}
107
+ {%- endif %}
108
+ {%- elif message.role == "user" %}
109
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
110
+ {%- elif message.role == "assistant" %}
111
+ {%- set reasoning_content = '' %}
112
+ {%- if message.reasoning_content is string %}
113
+ {%- set reasoning_content = message.reasoning_content %}
114
+ {%- endif %}
115
+ {%- set reasoning_content = reasoning_content|trim %}
116
+ {%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %}
117
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
118
+ {%- else %}
119
+ {{- '<|im_start|>' + message.role + '\n' + content }}
120
+ {%- endif %}
121
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
122
+ {%- for tool_call in message.tool_calls %}
123
+ {%- if tool_call.function is defined %}
124
+ {%- set tool_call = tool_call.function %}
125
+ {%- endif %}
126
+ {%- if loop.first %}
127
+ {%- if content|trim %}
128
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
129
+ {%- else %}
130
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
131
+ {%- endif %}
132
+ {%- else %}
133
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
134
+ {%- endif %}
135
+ {%- if tool_call.arguments is defined and tool_call.arguments != '' %}
136
+ {%- for args_name, args_value in tool_call.arguments|items %}
137
+ {{- '<parameter=' + args_name + '>\n' }}
138
+ {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
139
+ {{- args_value }}
140
+ {{- '\n</parameter>\n' }}
141
+ {%- endfor %}
142
+ {%- endif %}
143
+ {{- '</function>\n</tool_call>' }}
144
+ {%- endfor %}
145
+ {%- endif %}
146
+ {{- '<|im_end|>\n' }}
147
+ {%- elif message.role == "tool" %}
148
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
149
+ {{- '<|im_start|>user' }}
150
+ {%- endif %}
151
+ {{- '\n<tool_response>\n' }}
152
+ {{- content }}
153
+ {{- '\n</tool_response>' }}
154
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
155
+ {{- '<|im_end|>\n' }}
156
+ {%- elif loop.last %}
157
+ {{- '<|im_end|>\n' }}
158
+ {%- endif %}
159
+ {%- else %}
160
+ {{- raise_exception('Unexpected message role.') }}
161
+ {%- endif %}
162
+ {%- endfor %}
163
+ {%- if add_generation_prompt %}
164
+ {{- '<|im_start|>assistant\n' }}
165
+ {%- if enable_thinking is defined and enable_thinking is false %}
166
+ {{- '<think>\n\n</think>\n\n' }}
167
+ {%- else %}
168
+ {{- '<think>\n' }}
169
+ {%- endif %}
170
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,413 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "image_token_id": 248056,
7
+ "language_model_only": false,
8
+ "model_type": "qwen3_5",
9
+ "quantization_config": {
10
+ "config_groups": {
11
+ "group_0": {
12
+ "format": "nvfp4-pack-quantized",
13
+ "input_activations": {
14
+ "actorder": null,
15
+ "block_structure": null,
16
+ "dynamic": "local",
17
+ "group_size": 16,
18
+ "num_bits": 4,
19
+ "observer": "static_minmax",
20
+ "observer_kwargs": {},
21
+ "scale_dtype": "torch.float8_e4m3fn",
22
+ "strategy": "tensor_group",
23
+ "symmetric": true,
24
+ "type": "float",
25
+ "zp_dtype": null
26
+ },
27
+ "output_activations": null,
28
+ "targets": [
29
+ "Linear"
30
+ ],
31
+ "weights": {
32
+ "actorder": null,
33
+ "block_structure": null,
34
+ "dynamic": false,
35
+ "group_size": 16,
36
+ "num_bits": 4,
37
+ "observer": "memoryless_minmax",
38
+ "observer_kwargs": {},
39
+ "scale_dtype": "torch.float8_e4m3fn",
40
+ "strategy": "tensor_group",
41
+ "symmetric": true,
42
+ "type": "float",
43
+ "zp_dtype": null
44
+ }
45
+ }
46
+ },
47
+ "format": "nvfp4-pack-quantized",
48
+ "global_compression_ratio": null,
49
+ "ignore": [
50
+ "model.visual.blocks.0.attn.qkv",
51
+ "model.visual.blocks.0.attn.proj",
52
+ "model.visual.blocks.0.mlp.linear_fc1",
53
+ "model.visual.blocks.0.mlp.linear_fc2",
54
+ "model.visual.blocks.1.attn.qkv",
55
+ "model.visual.blocks.1.attn.proj",
56
+ "model.visual.blocks.1.mlp.linear_fc1",
57
+ "model.visual.blocks.1.mlp.linear_fc2",
58
+ "model.visual.blocks.2.attn.qkv",
59
+ "model.visual.blocks.2.attn.proj",
60
+ "model.visual.blocks.2.mlp.linear_fc1",
61
+ "model.visual.blocks.2.mlp.linear_fc2",
62
+ "model.visual.blocks.3.attn.qkv",
63
+ "model.visual.blocks.3.attn.proj",
64
+ "model.visual.blocks.3.mlp.linear_fc1",
65
+ "model.visual.blocks.3.mlp.linear_fc2",
66
+ "model.visual.blocks.4.attn.qkv",
67
+ "model.visual.blocks.4.attn.proj",
68
+ "model.visual.blocks.4.mlp.linear_fc1",
69
+ "model.visual.blocks.4.mlp.linear_fc2",
70
+ "model.visual.blocks.5.attn.qkv",
71
+ "model.visual.blocks.5.attn.proj",
72
+ "model.visual.blocks.5.mlp.linear_fc1",
73
+ "model.visual.blocks.5.mlp.linear_fc2",
74
+ "model.visual.blocks.6.attn.qkv",
75
+ "model.visual.blocks.6.attn.proj",
76
+ "model.visual.blocks.6.mlp.linear_fc1",
77
+ "model.visual.blocks.6.mlp.linear_fc2",
78
+ "model.visual.blocks.7.attn.qkv",
79
+ "model.visual.blocks.7.attn.proj",
80
+ "model.visual.blocks.7.mlp.linear_fc1",
81
+ "model.visual.blocks.7.mlp.linear_fc2",
82
+ "model.visual.blocks.8.attn.qkv",
83
+ "model.visual.blocks.8.attn.proj",
84
+ "model.visual.blocks.8.mlp.linear_fc1",
85
+ "model.visual.blocks.8.mlp.linear_fc2",
86
+ "model.visual.blocks.9.attn.qkv",
87
+ "model.visual.blocks.9.attn.proj",
88
+ "model.visual.blocks.9.mlp.linear_fc1",
89
+ "model.visual.blocks.9.mlp.linear_fc2",
90
+ "model.visual.blocks.10.attn.qkv",
91
+ "model.visual.blocks.10.attn.proj",
92
+ "model.visual.blocks.10.mlp.linear_fc1",
93
+ "model.visual.blocks.10.mlp.linear_fc2",
94
+ "model.visual.blocks.11.attn.qkv",
95
+ "model.visual.blocks.11.attn.proj",
96
+ "model.visual.blocks.11.mlp.linear_fc1",
97
+ "model.visual.blocks.11.mlp.linear_fc2",
98
+ "model.visual.blocks.12.attn.qkv",
99
+ "model.visual.blocks.12.attn.proj",
100
+ "model.visual.blocks.12.mlp.linear_fc1",
101
+ "model.visual.blocks.12.mlp.linear_fc2",
102
+ "model.visual.blocks.13.attn.qkv",
103
+ "model.visual.blocks.13.attn.proj",
104
+ "model.visual.blocks.13.mlp.linear_fc1",
105
+ "model.visual.blocks.13.mlp.linear_fc2",
106
+ "model.visual.blocks.14.attn.qkv",
107
+ "model.visual.blocks.14.attn.proj",
108
+ "model.visual.blocks.14.mlp.linear_fc1",
109
+ "model.visual.blocks.14.mlp.linear_fc2",
110
+ "model.visual.blocks.15.attn.qkv",
111
+ "model.visual.blocks.15.attn.proj",
112
+ "model.visual.blocks.15.mlp.linear_fc1",
113
+ "model.visual.blocks.15.mlp.linear_fc2",
114
+ "model.visual.blocks.16.attn.qkv",
115
+ "model.visual.blocks.16.attn.proj",
116
+ "model.visual.blocks.16.mlp.linear_fc1",
117
+ "model.visual.blocks.16.mlp.linear_fc2",
118
+ "model.visual.blocks.17.attn.qkv",
119
+ "model.visual.blocks.17.attn.proj",
120
+ "model.visual.blocks.17.mlp.linear_fc1",
121
+ "model.visual.blocks.17.mlp.linear_fc2",
122
+ "model.visual.blocks.18.attn.qkv",
123
+ "model.visual.blocks.18.attn.proj",
124
+ "model.visual.blocks.18.mlp.linear_fc1",
125
+ "model.visual.blocks.18.mlp.linear_fc2",
126
+ "model.visual.blocks.19.attn.qkv",
127
+ "model.visual.blocks.19.attn.proj",
128
+ "model.visual.blocks.19.mlp.linear_fc1",
129
+ "model.visual.blocks.19.mlp.linear_fc2",
130
+ "model.visual.blocks.20.attn.qkv",
131
+ "model.visual.blocks.20.attn.proj",
132
+ "model.visual.blocks.20.mlp.linear_fc1",
133
+ "model.visual.blocks.20.mlp.linear_fc2",
134
+ "model.visual.blocks.21.attn.qkv",
135
+ "model.visual.blocks.21.attn.proj",
136
+ "model.visual.blocks.21.mlp.linear_fc1",
137
+ "model.visual.blocks.21.mlp.linear_fc2",
138
+ "model.visual.blocks.22.attn.qkv",
139
+ "model.visual.blocks.22.attn.proj",
140
+ "model.visual.blocks.22.mlp.linear_fc1",
141
+ "model.visual.blocks.22.mlp.linear_fc2",
142
+ "model.visual.blocks.23.attn.qkv",
143
+ "model.visual.blocks.23.attn.proj",
144
+ "model.visual.blocks.23.mlp.linear_fc1",
145
+ "model.visual.blocks.23.mlp.linear_fc2",
146
+ "model.visual.blocks.24.attn.qkv",
147
+ "model.visual.blocks.24.attn.proj",
148
+ "model.visual.blocks.24.mlp.linear_fc1",
149
+ "model.visual.blocks.24.mlp.linear_fc2",
150
+ "model.visual.blocks.25.attn.qkv",
151
+ "model.visual.blocks.25.attn.proj",
152
+ "model.visual.blocks.25.mlp.linear_fc1",
153
+ "model.visual.blocks.25.mlp.linear_fc2",
154
+ "model.visual.blocks.26.attn.qkv",
155
+ "model.visual.blocks.26.attn.proj",
156
+ "model.visual.blocks.26.mlp.linear_fc1",
157
+ "model.visual.blocks.26.mlp.linear_fc2",
158
+ "model.visual.merger.linear_fc1",
159
+ "model.visual.merger.linear_fc2",
160
+ "model.language_model.layers.0.linear_attn",
161
+ "model.language_model.layers.0.linear_attn.norm",
162
+ "model.language_model.layers.1.linear_attn",
163
+ "model.language_model.layers.1.linear_attn.norm",
164
+ "model.language_model.layers.2.linear_attn",
165
+ "model.language_model.layers.2.linear_attn.norm",
166
+ "model.language_model.layers.4.linear_attn",
167
+ "model.language_model.layers.4.linear_attn.norm",
168
+ "model.language_model.layers.5.linear_attn",
169
+ "model.language_model.layers.5.linear_attn.norm",
170
+ "model.language_model.layers.6.linear_attn",
171
+ "model.language_model.layers.6.linear_attn.norm",
172
+ "model.language_model.layers.8.linear_attn",
173
+ "model.language_model.layers.8.linear_attn.norm",
174
+ "model.language_model.layers.9.linear_attn",
175
+ "model.language_model.layers.9.linear_attn.norm",
176
+ "model.language_model.layers.10.linear_attn",
177
+ "model.language_model.layers.10.linear_attn.norm",
178
+ "model.language_model.layers.12.linear_attn",
179
+ "model.language_model.layers.12.linear_attn.norm",
180
+ "model.language_model.layers.13.linear_attn",
181
+ "model.language_model.layers.13.linear_attn.norm",
182
+ "model.language_model.layers.14.linear_attn",
183
+ "model.language_model.layers.14.linear_attn.norm",
184
+ "model.language_model.layers.16.linear_attn",
185
+ "model.language_model.layers.16.linear_attn.norm",
186
+ "model.language_model.layers.17.linear_attn",
187
+ "model.language_model.layers.17.linear_attn.norm",
188
+ "model.language_model.layers.18.linear_attn",
189
+ "model.language_model.layers.18.linear_attn.norm",
190
+ "model.language_model.layers.20.linear_attn",
191
+ "model.language_model.layers.20.linear_attn.norm",
192
+ "model.language_model.layers.21.linear_attn",
193
+ "model.language_model.layers.21.linear_attn.norm",
194
+ "model.language_model.layers.22.linear_attn",
195
+ "model.language_model.layers.22.linear_attn.norm",
196
+ "model.language_model.layers.24.linear_attn",
197
+ "model.language_model.layers.24.linear_attn.norm",
198
+ "model.language_model.layers.25.linear_attn",
199
+ "model.language_model.layers.25.linear_attn.norm",
200
+ "model.language_model.layers.26.linear_attn",
201
+ "model.language_model.layers.26.linear_attn.norm",
202
+ "model.language_model.layers.28.linear_attn",
203
+ "model.language_model.layers.28.linear_attn.norm",
204
+ "model.language_model.layers.29.linear_attn",
205
+ "model.language_model.layers.29.linear_attn.norm",
206
+ "model.language_model.layers.30.linear_attn",
207
+ "model.language_model.layers.30.linear_attn.norm",
208
+ "model.language_model.layers.32.linear_attn",
209
+ "model.language_model.layers.32.linear_attn.norm",
210
+ "model.language_model.layers.33.linear_attn",
211
+ "model.language_model.layers.33.linear_attn.norm",
212
+ "model.language_model.layers.34.linear_attn",
213
+ "model.language_model.layers.34.linear_attn.norm",
214
+ "model.language_model.layers.36.linear_attn",
215
+ "model.language_model.layers.36.linear_attn.norm",
216
+ "model.language_model.layers.37.linear_attn",
217
+ "model.language_model.layers.37.linear_attn.norm",
218
+ "model.language_model.layers.38.linear_attn",
219
+ "model.language_model.layers.38.linear_attn.norm",
220
+ "model.language_model.layers.40.linear_attn",
221
+ "model.language_model.layers.40.linear_attn.norm",
222
+ "model.language_model.layers.41.linear_attn",
223
+ "model.language_model.layers.41.linear_attn.norm",
224
+ "model.language_model.layers.42.linear_attn",
225
+ "model.language_model.layers.42.linear_attn.norm",
226
+ "model.language_model.layers.44.linear_attn",
227
+ "model.language_model.layers.44.linear_attn.norm",
228
+ "model.language_model.layers.45.linear_attn",
229
+ "model.language_model.layers.45.linear_attn.norm",
230
+ "model.language_model.layers.46.linear_attn",
231
+ "model.language_model.layers.46.linear_attn.norm",
232
+ "model.language_model.layers.48.linear_attn",
233
+ "model.language_model.layers.48.linear_attn.norm",
234
+ "model.language_model.layers.49.linear_attn",
235
+ "model.language_model.layers.49.linear_attn.norm",
236
+ "model.language_model.layers.50.linear_attn",
237
+ "model.language_model.layers.50.linear_attn.norm",
238
+ "model.language_model.layers.52.linear_attn",
239
+ "model.language_model.layers.52.linear_attn.norm",
240
+ "model.language_model.layers.53.linear_attn",
241
+ "model.language_model.layers.53.linear_attn.norm",
242
+ "model.language_model.layers.54.linear_attn",
243
+ "model.language_model.layers.54.linear_attn.norm",
244
+ "model.language_model.layers.56.linear_attn",
245
+ "model.language_model.layers.56.linear_attn.norm",
246
+ "model.language_model.layers.57.linear_attn",
247
+ "model.language_model.layers.57.linear_attn.norm",
248
+ "model.language_model.layers.58.linear_attn",
249
+ "model.language_model.layers.58.linear_attn.norm",
250
+ "model.language_model.layers.60.linear_attn",
251
+ "model.language_model.layers.60.linear_attn.norm",
252
+ "model.language_model.layers.61.linear_attn",
253
+ "model.language_model.layers.61.linear_attn.norm",
254
+ "model.language_model.layers.62.linear_attn",
255
+ "model.language_model.layers.62.linear_attn.norm",
256
+ "lm_head",
257
+ "mtp.fc",
258
+ "mtp.layers.0.input_layernorm",
259
+ "mtp.layers.0.mlp.down_proj",
260
+ "mtp.layers.0.mlp.gate_proj",
261
+ "mtp.layers.0.mlp.up_proj",
262
+ "mtp.layers.0.post_attention_layernorm",
263
+ "mtp.layers.0.self_attn.k_norm",
264
+ "mtp.layers.0.self_attn.k_proj",
265
+ "mtp.layers.0.self_attn.o_proj",
266
+ "mtp.layers.0.self_attn.q_norm",
267
+ "mtp.layers.0.self_attn.q_proj",
268
+ "mtp.layers.0.self_attn.v_proj",
269
+ "mtp.norm",
270
+ "mtp.pre_fc_norm_embedding",
271
+ "mtp.pre_fc_norm_hidden"
272
+ ],
273
+ "kv_cache_scheme": null,
274
+ "quant_method": "compressed-tensors",
275
+ "quantization_status": "compressed",
276
+ "sparsity_config": {},
277
+ "transform_config": {},
278
+ "version": "0.17.1"
279
+ },
280
+ "text_config": {
281
+ "attention_bias": false,
282
+ "attention_dropout": 0.0,
283
+ "attn_output_gate": true,
284
+ "bos_token_id": 248044,
285
+ "dtype": "bfloat16",
286
+ "eos_token_id": 248044,
287
+ "full_attention_interval": 4,
288
+ "head_dim": 256,
289
+ "hidden_act": "silu",
290
+ "hidden_size": 5120,
291
+ "initializer_range": 0.02,
292
+ "intermediate_size": 17408,
293
+ "layer_types": [
294
+ "linear_attention",
295
+ "linear_attention",
296
+ "linear_attention",
297
+ "full_attention",
298
+ "linear_attention",
299
+ "linear_attention",
300
+ "linear_attention",
301
+ "full_attention",
302
+ "linear_attention",
303
+ "linear_attention",
304
+ "linear_attention",
305
+ "full_attention",
306
+ "linear_attention",
307
+ "linear_attention",
308
+ "linear_attention",
309
+ "full_attention",
310
+ "linear_attention",
311
+ "linear_attention",
312
+ "linear_attention",
313
+ "full_attention",
314
+ "linear_attention",
315
+ "linear_attention",
316
+ "linear_attention",
317
+ "full_attention",
318
+ "linear_attention",
319
+ "linear_attention",
320
+ "linear_attention",
321
+ "full_attention",
322
+ "linear_attention",
323
+ "linear_attention",
324
+ "linear_attention",
325
+ "full_attention",
326
+ "linear_attention",
327
+ "linear_attention",
328
+ "linear_attention",
329
+ "full_attention",
330
+ "linear_attention",
331
+ "linear_attention",
332
+ "linear_attention",
333
+ "full_attention",
334
+ "linear_attention",
335
+ "linear_attention",
336
+ "linear_attention",
337
+ "full_attention",
338
+ "linear_attention",
339
+ "linear_attention",
340
+ "linear_attention",
341
+ "full_attention",
342
+ "linear_attention",
343
+ "linear_attention",
344
+ "linear_attention",
345
+ "full_attention",
346
+ "linear_attention",
347
+ "linear_attention",
348
+ "linear_attention",
349
+ "full_attention",
350
+ "linear_attention",
351
+ "linear_attention",
352
+ "linear_attention",
353
+ "full_attention",
354
+ "linear_attention",
355
+ "linear_attention",
356
+ "linear_attention",
357
+ "full_attention"
358
+ ],
359
+ "linear_conv_kernel_dim": 4,
360
+ "linear_key_head_dim": 128,
361
+ "linear_num_key_heads": 16,
362
+ "linear_num_value_heads": 48,
363
+ "linear_value_head_dim": 128,
364
+ "mamba_ssm_dtype": "float32",
365
+ "max_position_embeddings": 262144,
366
+ "model_type": "qwen3_5_text",
367
+ "mtp_num_hidden_layers": 1,
368
+ "mtp_use_dedicated_embeddings": false,
369
+ "num_attention_heads": 24,
370
+ "num_hidden_layers": 64,
371
+ "num_key_value_heads": 4,
372
+ "output_gate_type": "swish",
373
+ "pad_token_id": null,
374
+ "partial_rotary_factor": 0.25,
375
+ "rms_norm_eps": 1e-06,
376
+ "rope_parameters": {
377
+ "mrope_interleaved": true,
378
+ "mrope_section": [
379
+ 11,
380
+ 11,
381
+ 10
382
+ ],
383
+ "partial_rotary_factor": 0.25,
384
+ "rope_theta": 10000000,
385
+ "rope_type": "default"
386
+ },
387
+ "tie_word_embeddings": false,
388
+ "use_cache": true,
389
+ "vocab_size": 248320
390
+ },
391
+ "tie_word_embeddings": false,
392
+ "transformers_version": "5.14.1+solaropen2",
393
+ "video_token_id": 248057,
394
+ "vision_config": {
395
+ "deepstack_visual_indexes": [],
396
+ "depth": 27,
397
+ "dtype": "bfloat16",
398
+ "hidden_act": "gelu_pytorch_tanh",
399
+ "hidden_size": 1152,
400
+ "in_channels": 3,
401
+ "initializer_range": 0.02,
402
+ "intermediate_size": 4304,
403
+ "model_type": "qwen3_5_vision",
404
+ "num_heads": 16,
405
+ "num_position_embeddings": 2304,
406
+ "out_hidden_size": 5120,
407
+ "patch_size": 16,
408
+ "spatial_merge_size": 2,
409
+ "temporal_patch_size": 2
410
+ },
411
+ "vision_end_token_id": 248054,
412
+ "vision_start_token_id": 248053
413
+ }
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.14.1+solaropen2"
13
+ }
model-mtp-bf16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90fa0e3eed5a647c035c6df9ecabc416c0f8d573ff84ac12485b085f00a7cdf2
3
+ size 849400424
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ca4957d492e9ac0cdf77d79a2f7809482924588cd42cbb589990c6c11efbc2a
3
+ size 19709883808
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
+ }
recipe.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ default_stage:
2
+ default_modifiers:
3
+ QuantizationModifier:
4
+ targets: [Linear]
5
+ ignore: [lm_head, 're:.*visual.*', 're:.*conv1d.*', 're:.*mtp.*']
6
+ scheme: NVFP4
7
+ bypass_divisibility_checks: false
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:445a1c450cb82eba3dac6d4cac5d6ce9a6be0ab6e326bf919934d71e604a871f
3
+ size 19989424
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": "<|endoftext|>",
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
+ }