selimaktas commited on
Commit
9055eee
·
verified ·
1 Parent(s): 7e9006d

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,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen3.8-27B
4
+ tags:
5
+ - nvfp4
6
+ - fp4
7
+ - awq
8
+ - gptq
9
+ - llm-compressor
10
+ - compressed-tensors
11
+ - vllm
12
+ library_name: transformers
13
+ ---
14
+
15
+ # Qwen3.8-27B-NVFP4-AWQ-GPTQ
16
+
17
+ Mixed-precision **NVFP4** quantization of [`Qwen/Qwen3.8-27B`](https://huggingface.co/Qwen/Qwen3.8-27B),
18
+ built with [llm-compressor](https://github.com/vllm-project/llm-compressor) using
19
+ **AWQ activation-aware scaling followed by GPTQ**, with an `imatrix_mse` observer.
20
+
21
+ **23 GB.** At the same size as a plain NVFP4 build, it cuts high-confidence damage by
22
+ roughly a third, and it is the most accurate NVFP4 checkpoint of this model we have measured.
23
+
24
+ ## Recipe
25
+
26
+ | component | precision |
27
+ |---|---|
28
+ | `mlp.{gate,up,down}_proj`, layers 0–55 | **NVFP4** (4-bit, group-16, FP8-e4m3 scales → 4.5 effective bits) |
29
+ | `mlp.{gate,up,down}_proj`, layers 56–63 | FP8 e4m3 (dynamic) |
30
+ | `self_attn.{q,k,v,o}_proj` | FP8 e4m3 (dynamic) |
31
+ | `linear_attn.{in_proj_qkv,in_proj_z,out_proj}` (GDN) | FP8 e4m3 (dynamic) |
32
+ | `lm_head`, `embed_tokens`, all norms, GDN state params, vision tower | **BF16** |
33
+
34
+ Two passes, in order:
35
+
36
+ 1. **AWQ** — per-input-channel scaling on `post_attention_layernorm → {gate_proj, up_proj}`
37
+ and `up_proj → down_proj`. Gate and up share one input, so the reciprocal scale folds
38
+ into the norm weights: **the accuracy gain costs zero bytes and zero throughput.**
39
+ The scales merge into weights entirely, so unlike rotation-based methods (QuIP/SpinQuant)
40
+ this checkpoint still runs under tensor parallelism.
41
+ 2. **GPTQ** on every quantized module (`actorder="static"`, `dampening_frac=0.01`).
42
+
43
+ Calibration: 1024 sequences × 1024 tokens of a balanced Nemotron-v2 blend
44
+ (25% code, 25% math, 20% STEM, 20% chat, 10% multilingual).
45
+
46
+ `lm_head` and `embed_tokens` are left in BF16 — matching Qwen's own official FP8 release,
47
+ which does the same.
48
+
49
+ ## Benchmarks
50
+
51
+ Measured against the BF16 base model on 142,727 tokens of self-distilled thinking-mode
52
+ output, plus 200 free greedy generations. vLLM 0.27.1, TP=2, 2×B300.
53
+
54
+ | checkpoint | size ↓ | top-1 ↑ | near-tie ↓ | moderate ↓ | confident ↓ | certain ↓ | divmed ↑ | tok/s ↑ |
55
+ |---|---:|---:|---:|---:|---:|---:|---:|---:|
56
+ | `Qwen/Qwen3.8-27B-FP8` *(8-bit ref)* | 29 GB | 96.15% | 22.70% | 3.48% | 1.45% | 0.08% | 47 | 8711 |
57
+ | **this model (NVFP4+AWQ)** | 23 GB | **93.44%** | **33.86%** | **7.74%** | **2.69%** | **0.19%** | **29** | 10680 |
58
+ | `RadixArk/Qwen3.8-27B-NVFP4` | **21 GB** | 90.23% | 43.80% | 14.49% | 3.29% | 0.70% | 11 | **11436** |
59
+ | `unsloth/Qwen3.8-27B-NVFP4` | 22 GB | 91.75% | 40.12% | 10.32% | 3.91% | 0.25% | 19 | 11069 |
60
+
61
+ Bold marks the best value in each column **among the FP4 checkpoints**; the FP8 row is a
62
+ reference at a different precision and size class, so it is excluded from the comparison.
63
+
64
+ **Columns.** `top-1` is raw argmax agreement with BF16. The four bucket columns are
65
+ *disagreement* rates, split by how confident the base model was at that position
66
+ (top1−top2 logprob margin): `near-tie` <0.5, `moderate` 0.5–2, `confident` 2–5,
67
+ `certain` >5. **Only `confident` and `certain` represent real damage** — a flip where
68
+ the base model itself was nearly tied is numerical noise, not a quality loss.
69
+ `divmed` is the median token index at which free greedy generation first diverges
70
+ from BF16 (higher is better).
71
+
72
+ **Perplexity is deliberately excluded.** On this comparison it is anti-correlated with
73
+ quality — the checkpoint with the best perplexity (`RadixArk`, −1.75%) has the worst
74
+ `certain`-bucket damage of any arm measured (0.70%, 3.7× this model's). Do not rank
75
+ FP4 checkpoints of this model by perplexity.
76
+
77
+ In an internal ablation, removing the AWQ pass and keeping everything else identical
78
+ raises `confident` damage from 2.69% to 3.97% — so AWQ closes **about half** of the
79
+ gap to FP8, at **no size or speed cost**.
80
+
81
+ ## Usage
82
+
83
+ ```python
84
+ from vllm import LLM
85
+ llm = LLM("selimaktas/Qwen3.8-27B-NVFP4-AWQ-GPTQ", tensor_parallel_size=2)
86
+ ```
87
+
88
+ Requires a Blackwell-class GPU for native NVFP4, and vLLM with `compressed-tensors`.
89
+
90
+ ## Limitations
91
+
92
+ - **The MTP head is not included.** `Qwen3_5ForConditionalGeneration` does not carry it
93
+ in its state dict, so it is dropped during quantization. MTP speculative decoding is
94
+ not available with this checkpoint.
95
+ - **Single evaluation corpus.** All numbers come from one self-distilled corpus. The
96
+ margins over the public NVFP4 checkpoints are large and statistically solid, but the
97
+ comparison has not been replicated on a second distribution.
98
+ - Vision tower is untouched (BF16); this was evaluated as a text model.
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,531 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "float-quantized",
13
+ "input_activations": {
14
+ "actorder": null,
15
+ "block_structure": null,
16
+ "dynamic": true,
17
+ "group_size": null,
18
+ "num_bits": 8,
19
+ "observer": null,
20
+ "observer_kwargs": {},
21
+ "scale_dtype": null,
22
+ "strategy": "token",
23
+ "symmetric": true,
24
+ "type": "float",
25
+ "zp_dtype": null
26
+ },
27
+ "output_activations": null,
28
+ "targets": [
29
+ "re:.*self_attn\\.(q|k|v|o)_proj$",
30
+ "re:.*linear_attn\\.(in_proj_qkv|in_proj_z|out_proj)$",
31
+ "re:.*layers\\.(5[6-9]|6[0-3])\\.mlp\\.(gate|up|down)_proj$"
32
+ ],
33
+ "weights": {
34
+ "actorder": "static",
35
+ "block_structure": null,
36
+ "dynamic": false,
37
+ "group_size": null,
38
+ "num_bits": 8,
39
+ "observer": "memoryless_minmax",
40
+ "observer_kwargs": {},
41
+ "scale_dtype": null,
42
+ "strategy": "channel",
43
+ "symmetric": true,
44
+ "type": "float",
45
+ "zp_dtype": null
46
+ }
47
+ },
48
+ "group_1": {
49
+ "format": "nvfp4-pack-quantized",
50
+ "input_activations": {
51
+ "actorder": null,
52
+ "block_structure": null,
53
+ "dynamic": "local",
54
+ "group_size": 16,
55
+ "num_bits": 4,
56
+ "observer": "static_minmax",
57
+ "observer_kwargs": {},
58
+ "scale_dtype": "torch.float8_e4m3fn",
59
+ "strategy": "tensor_group",
60
+ "symmetric": true,
61
+ "type": "float",
62
+ "zp_dtype": null
63
+ },
64
+ "output_activations": null,
65
+ "targets": [
66
+ "re:.*layers\\.([0-9]|[1-4][0-9]|5[0-5])\\.mlp\\.(gate|up|down)_proj$"
67
+ ],
68
+ "weights": {
69
+ "actorder": "static",
70
+ "block_structure": null,
71
+ "dynamic": false,
72
+ "group_size": 16,
73
+ "num_bits": 4,
74
+ "observer": "imatrix_mse",
75
+ "observer_kwargs": {},
76
+ "scale_dtype": "torch.float8_e4m3fn",
77
+ "strategy": "tensor_group",
78
+ "symmetric": true,
79
+ "type": "float",
80
+ "zp_dtype": null
81
+ }
82
+ }
83
+ },
84
+ "format": "mixed-precision",
85
+ "global_compression_ratio": null,
86
+ "ignore": [
87
+ "model.visual.blocks.0.attn.qkv",
88
+ "model.visual.blocks.0.attn.proj",
89
+ "model.visual.blocks.0.mlp.linear_fc1",
90
+ "model.visual.blocks.0.mlp.linear_fc2",
91
+ "model.visual.blocks.1.attn.qkv",
92
+ "model.visual.blocks.1.attn.proj",
93
+ "model.visual.blocks.1.mlp.linear_fc1",
94
+ "model.visual.blocks.1.mlp.linear_fc2",
95
+ "model.visual.blocks.2.attn.qkv",
96
+ "model.visual.blocks.2.attn.proj",
97
+ "model.visual.blocks.2.mlp.linear_fc1",
98
+ "model.visual.blocks.2.mlp.linear_fc2",
99
+ "model.visual.blocks.3.attn.qkv",
100
+ "model.visual.blocks.3.attn.proj",
101
+ "model.visual.blocks.3.mlp.linear_fc1",
102
+ "model.visual.blocks.3.mlp.linear_fc2",
103
+ "model.visual.blocks.4.attn.qkv",
104
+ "model.visual.blocks.4.attn.proj",
105
+ "model.visual.blocks.4.mlp.linear_fc1",
106
+ "model.visual.blocks.4.mlp.linear_fc2",
107
+ "model.visual.blocks.5.attn.qkv",
108
+ "model.visual.blocks.5.attn.proj",
109
+ "model.visual.blocks.5.mlp.linear_fc1",
110
+ "model.visual.blocks.5.mlp.linear_fc2",
111
+ "model.visual.blocks.6.attn.qkv",
112
+ "model.visual.blocks.6.attn.proj",
113
+ "model.visual.blocks.6.mlp.linear_fc1",
114
+ "model.visual.blocks.6.mlp.linear_fc2",
115
+ "model.visual.blocks.7.attn.qkv",
116
+ "model.visual.blocks.7.attn.proj",
117
+ "model.visual.blocks.7.mlp.linear_fc1",
118
+ "model.visual.blocks.7.mlp.linear_fc2",
119
+ "model.visual.blocks.8.attn.qkv",
120
+ "model.visual.blocks.8.attn.proj",
121
+ "model.visual.blocks.8.mlp.linear_fc1",
122
+ "model.visual.blocks.8.mlp.linear_fc2",
123
+ "model.visual.blocks.9.attn.qkv",
124
+ "model.visual.blocks.9.attn.proj",
125
+ "model.visual.blocks.9.mlp.linear_fc1",
126
+ "model.visual.blocks.9.mlp.linear_fc2",
127
+ "model.visual.blocks.10.attn.qkv",
128
+ "model.visual.blocks.10.attn.proj",
129
+ "model.visual.blocks.10.mlp.linear_fc1",
130
+ "model.visual.blocks.10.mlp.linear_fc2",
131
+ "model.visual.blocks.11.attn.qkv",
132
+ "model.visual.blocks.11.attn.proj",
133
+ "model.visual.blocks.11.mlp.linear_fc1",
134
+ "model.visual.blocks.11.mlp.linear_fc2",
135
+ "model.visual.blocks.12.attn.qkv",
136
+ "model.visual.blocks.12.attn.proj",
137
+ "model.visual.blocks.12.mlp.linear_fc1",
138
+ "model.visual.blocks.12.mlp.linear_fc2",
139
+ "model.visual.blocks.13.attn.qkv",
140
+ "model.visual.blocks.13.attn.proj",
141
+ "model.visual.blocks.13.mlp.linear_fc1",
142
+ "model.visual.blocks.13.mlp.linear_fc2",
143
+ "model.visual.blocks.14.attn.qkv",
144
+ "model.visual.blocks.14.attn.proj",
145
+ "model.visual.blocks.14.mlp.linear_fc1",
146
+ "model.visual.blocks.14.mlp.linear_fc2",
147
+ "model.visual.blocks.15.attn.qkv",
148
+ "model.visual.blocks.15.attn.proj",
149
+ "model.visual.blocks.15.mlp.linear_fc1",
150
+ "model.visual.blocks.15.mlp.linear_fc2",
151
+ "model.visual.blocks.16.attn.qkv",
152
+ "model.visual.blocks.16.attn.proj",
153
+ "model.visual.blocks.16.mlp.linear_fc1",
154
+ "model.visual.blocks.16.mlp.linear_fc2",
155
+ "model.visual.blocks.17.attn.qkv",
156
+ "model.visual.blocks.17.attn.proj",
157
+ "model.visual.blocks.17.mlp.linear_fc1",
158
+ "model.visual.blocks.17.mlp.linear_fc2",
159
+ "model.visual.blocks.18.attn.qkv",
160
+ "model.visual.blocks.18.attn.proj",
161
+ "model.visual.blocks.18.mlp.linear_fc1",
162
+ "model.visual.blocks.18.mlp.linear_fc2",
163
+ "model.visual.blocks.19.attn.qkv",
164
+ "model.visual.blocks.19.attn.proj",
165
+ "model.visual.blocks.19.mlp.linear_fc1",
166
+ "model.visual.blocks.19.mlp.linear_fc2",
167
+ "model.visual.blocks.20.attn.qkv",
168
+ "model.visual.blocks.20.attn.proj",
169
+ "model.visual.blocks.20.mlp.linear_fc1",
170
+ "model.visual.blocks.20.mlp.linear_fc2",
171
+ "model.visual.blocks.21.attn.qkv",
172
+ "model.visual.blocks.21.attn.proj",
173
+ "model.visual.blocks.21.mlp.linear_fc1",
174
+ "model.visual.blocks.21.mlp.linear_fc2",
175
+ "model.visual.blocks.22.attn.qkv",
176
+ "model.visual.blocks.22.attn.proj",
177
+ "model.visual.blocks.22.mlp.linear_fc1",
178
+ "model.visual.blocks.22.mlp.linear_fc2",
179
+ "model.visual.blocks.23.attn.qkv",
180
+ "model.visual.blocks.23.attn.proj",
181
+ "model.visual.blocks.23.mlp.linear_fc1",
182
+ "model.visual.blocks.23.mlp.linear_fc2",
183
+ "model.visual.blocks.24.attn.qkv",
184
+ "model.visual.blocks.24.attn.proj",
185
+ "model.visual.blocks.24.mlp.linear_fc1",
186
+ "model.visual.blocks.24.mlp.linear_fc2",
187
+ "model.visual.blocks.25.attn.qkv",
188
+ "model.visual.blocks.25.attn.proj",
189
+ "model.visual.blocks.25.mlp.linear_fc1",
190
+ "model.visual.blocks.25.mlp.linear_fc2",
191
+ "model.visual.blocks.26.attn.qkv",
192
+ "model.visual.blocks.26.attn.proj",
193
+ "model.visual.blocks.26.mlp.linear_fc1",
194
+ "model.visual.blocks.26.mlp.linear_fc2",
195
+ "model.visual.merger.linear_fc1",
196
+ "model.visual.merger.linear_fc2",
197
+ "model.language_model.layers.0.linear_attn",
198
+ "model.language_model.layers.0.linear_attn.norm",
199
+ "model.language_model.layers.0.linear_attn.in_proj_b",
200
+ "model.language_model.layers.0.linear_attn.in_proj_a",
201
+ "model.language_model.layers.1.linear_attn",
202
+ "model.language_model.layers.1.linear_attn.norm",
203
+ "model.language_model.layers.1.linear_attn.in_proj_b",
204
+ "model.language_model.layers.1.linear_attn.in_proj_a",
205
+ "model.language_model.layers.2.linear_attn",
206
+ "model.language_model.layers.2.linear_attn.norm",
207
+ "model.language_model.layers.2.linear_attn.in_proj_b",
208
+ "model.language_model.layers.2.linear_attn.in_proj_a",
209
+ "model.language_model.layers.4.linear_attn",
210
+ "model.language_model.layers.4.linear_attn.norm",
211
+ "model.language_model.layers.4.linear_attn.in_proj_b",
212
+ "model.language_model.layers.4.linear_attn.in_proj_a",
213
+ "model.language_model.layers.5.linear_attn",
214
+ "model.language_model.layers.5.linear_attn.norm",
215
+ "model.language_model.layers.5.linear_attn.in_proj_b",
216
+ "model.language_model.layers.5.linear_attn.in_proj_a",
217
+ "model.language_model.layers.6.linear_attn",
218
+ "model.language_model.layers.6.linear_attn.norm",
219
+ "model.language_model.layers.6.linear_attn.in_proj_b",
220
+ "model.language_model.layers.6.linear_attn.in_proj_a",
221
+ "model.language_model.layers.8.linear_attn",
222
+ "model.language_model.layers.8.linear_attn.norm",
223
+ "model.language_model.layers.8.linear_attn.in_proj_b",
224
+ "model.language_model.layers.8.linear_attn.in_proj_a",
225
+ "model.language_model.layers.9.linear_attn",
226
+ "model.language_model.layers.9.linear_attn.norm",
227
+ "model.language_model.layers.9.linear_attn.in_proj_b",
228
+ "model.language_model.layers.9.linear_attn.in_proj_a",
229
+ "model.language_model.layers.10.linear_attn",
230
+ "model.language_model.layers.10.linear_attn.norm",
231
+ "model.language_model.layers.10.linear_attn.in_proj_b",
232
+ "model.language_model.layers.10.linear_attn.in_proj_a",
233
+ "model.language_model.layers.12.linear_attn",
234
+ "model.language_model.layers.12.linear_attn.norm",
235
+ "model.language_model.layers.12.linear_attn.in_proj_b",
236
+ "model.language_model.layers.12.linear_attn.in_proj_a",
237
+ "model.language_model.layers.13.linear_attn",
238
+ "model.language_model.layers.13.linear_attn.norm",
239
+ "model.language_model.layers.13.linear_attn.in_proj_b",
240
+ "model.language_model.layers.13.linear_attn.in_proj_a",
241
+ "model.language_model.layers.14.linear_attn",
242
+ "model.language_model.layers.14.linear_attn.norm",
243
+ "model.language_model.layers.14.linear_attn.in_proj_b",
244
+ "model.language_model.layers.14.linear_attn.in_proj_a",
245
+ "model.language_model.layers.16.linear_attn",
246
+ "model.language_model.layers.16.linear_attn.norm",
247
+ "model.language_model.layers.16.linear_attn.in_proj_b",
248
+ "model.language_model.layers.16.linear_attn.in_proj_a",
249
+ "model.language_model.layers.17.linear_attn",
250
+ "model.language_model.layers.17.linear_attn.norm",
251
+ "model.language_model.layers.17.linear_attn.in_proj_b",
252
+ "model.language_model.layers.17.linear_attn.in_proj_a",
253
+ "model.language_model.layers.18.linear_attn",
254
+ "model.language_model.layers.18.linear_attn.norm",
255
+ "model.language_model.layers.18.linear_attn.in_proj_b",
256
+ "model.language_model.layers.18.linear_attn.in_proj_a",
257
+ "model.language_model.layers.20.linear_attn",
258
+ "model.language_model.layers.20.linear_attn.norm",
259
+ "model.language_model.layers.20.linear_attn.in_proj_b",
260
+ "model.language_model.layers.20.linear_attn.in_proj_a",
261
+ "model.language_model.layers.21.linear_attn",
262
+ "model.language_model.layers.21.linear_attn.norm",
263
+ "model.language_model.layers.21.linear_attn.in_proj_b",
264
+ "model.language_model.layers.21.linear_attn.in_proj_a",
265
+ "model.language_model.layers.22.linear_attn",
266
+ "model.language_model.layers.22.linear_attn.norm",
267
+ "model.language_model.layers.22.linear_attn.in_proj_b",
268
+ "model.language_model.layers.22.linear_attn.in_proj_a",
269
+ "model.language_model.layers.24.linear_attn",
270
+ "model.language_model.layers.24.linear_attn.norm",
271
+ "model.language_model.layers.24.linear_attn.in_proj_b",
272
+ "model.language_model.layers.24.linear_attn.in_proj_a",
273
+ "model.language_model.layers.25.linear_attn",
274
+ "model.language_model.layers.25.linear_attn.norm",
275
+ "model.language_model.layers.25.linear_attn.in_proj_b",
276
+ "model.language_model.layers.25.linear_attn.in_proj_a",
277
+ "model.language_model.layers.26.linear_attn",
278
+ "model.language_model.layers.26.linear_attn.norm",
279
+ "model.language_model.layers.26.linear_attn.in_proj_b",
280
+ "model.language_model.layers.26.linear_attn.in_proj_a",
281
+ "model.language_model.layers.28.linear_attn",
282
+ "model.language_model.layers.28.linear_attn.norm",
283
+ "model.language_model.layers.28.linear_attn.in_proj_b",
284
+ "model.language_model.layers.28.linear_attn.in_proj_a",
285
+ "model.language_model.layers.29.linear_attn",
286
+ "model.language_model.layers.29.linear_attn.norm",
287
+ "model.language_model.layers.29.linear_attn.in_proj_b",
288
+ "model.language_model.layers.29.linear_attn.in_proj_a",
289
+ "model.language_model.layers.30.linear_attn",
290
+ "model.language_model.layers.30.linear_attn.norm",
291
+ "model.language_model.layers.30.linear_attn.in_proj_b",
292
+ "model.language_model.layers.30.linear_attn.in_proj_a",
293
+ "model.language_model.layers.32.linear_attn",
294
+ "model.language_model.layers.32.linear_attn.norm",
295
+ "model.language_model.layers.32.linear_attn.in_proj_b",
296
+ "model.language_model.layers.32.linear_attn.in_proj_a",
297
+ "model.language_model.layers.33.linear_attn",
298
+ "model.language_model.layers.33.linear_attn.norm",
299
+ "model.language_model.layers.33.linear_attn.in_proj_b",
300
+ "model.language_model.layers.33.linear_attn.in_proj_a",
301
+ "model.language_model.layers.34.linear_attn",
302
+ "model.language_model.layers.34.linear_attn.norm",
303
+ "model.language_model.layers.34.linear_attn.in_proj_b",
304
+ "model.language_model.layers.34.linear_attn.in_proj_a",
305
+ "model.language_model.layers.36.linear_attn",
306
+ "model.language_model.layers.36.linear_attn.norm",
307
+ "model.language_model.layers.36.linear_attn.in_proj_b",
308
+ "model.language_model.layers.36.linear_attn.in_proj_a",
309
+ "model.language_model.layers.37.linear_attn",
310
+ "model.language_model.layers.37.linear_attn.norm",
311
+ "model.language_model.layers.37.linear_attn.in_proj_b",
312
+ "model.language_model.layers.37.linear_attn.in_proj_a",
313
+ "model.language_model.layers.38.linear_attn",
314
+ "model.language_model.layers.38.linear_attn.norm",
315
+ "model.language_model.layers.38.linear_attn.in_proj_b",
316
+ "model.language_model.layers.38.linear_attn.in_proj_a",
317
+ "model.language_model.layers.40.linear_attn",
318
+ "model.language_model.layers.40.linear_attn.norm",
319
+ "model.language_model.layers.40.linear_attn.in_proj_b",
320
+ "model.language_model.layers.40.linear_attn.in_proj_a",
321
+ "model.language_model.layers.41.linear_attn",
322
+ "model.language_model.layers.41.linear_attn.norm",
323
+ "model.language_model.layers.41.linear_attn.in_proj_b",
324
+ "model.language_model.layers.41.linear_attn.in_proj_a",
325
+ "model.language_model.layers.42.linear_attn",
326
+ "model.language_model.layers.42.linear_attn.norm",
327
+ "model.language_model.layers.42.linear_attn.in_proj_b",
328
+ "model.language_model.layers.42.linear_attn.in_proj_a",
329
+ "model.language_model.layers.44.linear_attn",
330
+ "model.language_model.layers.44.linear_attn.norm",
331
+ "model.language_model.layers.44.linear_attn.in_proj_b",
332
+ "model.language_model.layers.44.linear_attn.in_proj_a",
333
+ "model.language_model.layers.45.linear_attn",
334
+ "model.language_model.layers.45.linear_attn.norm",
335
+ "model.language_model.layers.45.linear_attn.in_proj_b",
336
+ "model.language_model.layers.45.linear_attn.in_proj_a",
337
+ "model.language_model.layers.46.linear_attn",
338
+ "model.language_model.layers.46.linear_attn.norm",
339
+ "model.language_model.layers.46.linear_attn.in_proj_b",
340
+ "model.language_model.layers.46.linear_attn.in_proj_a",
341
+ "model.language_model.layers.48.linear_attn",
342
+ "model.language_model.layers.48.linear_attn.norm",
343
+ "model.language_model.layers.48.linear_attn.in_proj_b",
344
+ "model.language_model.layers.48.linear_attn.in_proj_a",
345
+ "model.language_model.layers.49.linear_attn",
346
+ "model.language_model.layers.49.linear_attn.norm",
347
+ "model.language_model.layers.49.linear_attn.in_proj_b",
348
+ "model.language_model.layers.49.linear_attn.in_proj_a",
349
+ "model.language_model.layers.50.linear_attn",
350
+ "model.language_model.layers.50.linear_attn.norm",
351
+ "model.language_model.layers.50.linear_attn.in_proj_b",
352
+ "model.language_model.layers.50.linear_attn.in_proj_a",
353
+ "model.language_model.layers.52.linear_attn",
354
+ "model.language_model.layers.52.linear_attn.norm",
355
+ "model.language_model.layers.52.linear_attn.in_proj_b",
356
+ "model.language_model.layers.52.linear_attn.in_proj_a",
357
+ "model.language_model.layers.53.linear_attn",
358
+ "model.language_model.layers.53.linear_attn.norm",
359
+ "model.language_model.layers.53.linear_attn.in_proj_b",
360
+ "model.language_model.layers.53.linear_attn.in_proj_a",
361
+ "model.language_model.layers.54.linear_attn",
362
+ "model.language_model.layers.54.linear_attn.norm",
363
+ "model.language_model.layers.54.linear_attn.in_proj_b",
364
+ "model.language_model.layers.54.linear_attn.in_proj_a",
365
+ "model.language_model.layers.56.linear_attn",
366
+ "model.language_model.layers.56.linear_attn.norm",
367
+ "model.language_model.layers.56.linear_attn.in_proj_b",
368
+ "model.language_model.layers.56.linear_attn.in_proj_a",
369
+ "model.language_model.layers.57.linear_attn",
370
+ "model.language_model.layers.57.linear_attn.norm",
371
+ "model.language_model.layers.57.linear_attn.in_proj_b",
372
+ "model.language_model.layers.57.linear_attn.in_proj_a",
373
+ "model.language_model.layers.58.linear_attn",
374
+ "model.language_model.layers.58.linear_attn.norm",
375
+ "model.language_model.layers.58.linear_attn.in_proj_b",
376
+ "model.language_model.layers.58.linear_attn.in_proj_a",
377
+ "model.language_model.layers.60.linear_attn",
378
+ "model.language_model.layers.60.linear_attn.norm",
379
+ "model.language_model.layers.60.linear_attn.in_proj_b",
380
+ "model.language_model.layers.60.linear_attn.in_proj_a",
381
+ "model.language_model.layers.61.linear_attn",
382
+ "model.language_model.layers.61.linear_attn.norm",
383
+ "model.language_model.layers.61.linear_attn.in_proj_b",
384
+ "model.language_model.layers.61.linear_attn.in_proj_a",
385
+ "model.language_model.layers.62.linear_attn",
386
+ "model.language_model.layers.62.linear_attn.norm",
387
+ "model.language_model.layers.62.linear_attn.in_proj_b",
388
+ "model.language_model.layers.62.linear_attn.in_proj_a",
389
+ "lm_head"
390
+ ],
391
+ "kv_cache_scheme": null,
392
+ "quant_method": "compressed-tensors",
393
+ "quantization_status": "compressed",
394
+ "sparsity_config": {},
395
+ "transform_config": {},
396
+ "version": "0.18.0"
397
+ },
398
+ "text_config": {
399
+ "attention_bias": false,
400
+ "attention_dropout": 0.0,
401
+ "attn_output_gate": true,
402
+ "bos_token_id": 248044,
403
+ "dtype": "bfloat16",
404
+ "eos_token_id": 248044,
405
+ "full_attention_interval": 4,
406
+ "head_dim": 256,
407
+ "hidden_act": "silu",
408
+ "hidden_size": 5120,
409
+ "initializer_range": 0.02,
410
+ "intermediate_size": 17408,
411
+ "layer_types": [
412
+ "linear_attention",
413
+ "linear_attention",
414
+ "linear_attention",
415
+ "full_attention",
416
+ "linear_attention",
417
+ "linear_attention",
418
+ "linear_attention",
419
+ "full_attention",
420
+ "linear_attention",
421
+ "linear_attention",
422
+ "linear_attention",
423
+ "full_attention",
424
+ "linear_attention",
425
+ "linear_attention",
426
+ "linear_attention",
427
+ "full_attention",
428
+ "linear_attention",
429
+ "linear_attention",
430
+ "linear_attention",
431
+ "full_attention",
432
+ "linear_attention",
433
+ "linear_attention",
434
+ "linear_attention",
435
+ "full_attention",
436
+ "linear_attention",
437
+ "linear_attention",
438
+ "linear_attention",
439
+ "full_attention",
440
+ "linear_attention",
441
+ "linear_attention",
442
+ "linear_attention",
443
+ "full_attention",
444
+ "linear_attention",
445
+ "linear_attention",
446
+ "linear_attention",
447
+ "full_attention",
448
+ "linear_attention",
449
+ "linear_attention",
450
+ "linear_attention",
451
+ "full_attention",
452
+ "linear_attention",
453
+ "linear_attention",
454
+ "linear_attention",
455
+ "full_attention",
456
+ "linear_attention",
457
+ "linear_attention",
458
+ "linear_attention",
459
+ "full_attention",
460
+ "linear_attention",
461
+ "linear_attention",
462
+ "linear_attention",
463
+ "full_attention",
464
+ "linear_attention",
465
+ "linear_attention",
466
+ "linear_attention",
467
+ "full_attention",
468
+ "linear_attention",
469
+ "linear_attention",
470
+ "linear_attention",
471
+ "full_attention",
472
+ "linear_attention",
473
+ "linear_attention",
474
+ "linear_attention",
475
+ "full_attention"
476
+ ],
477
+ "linear_conv_kernel_dim": 4,
478
+ "linear_key_head_dim": 128,
479
+ "linear_num_key_heads": 16,
480
+ "linear_num_value_heads": 48,
481
+ "linear_value_head_dim": 128,
482
+ "mamba_ssm_dtype": "float32",
483
+ "max_position_embeddings": 262144,
484
+ "model_type": "qwen3_5_text",
485
+ "mtp_num_hidden_layers": 1,
486
+ "mtp_use_dedicated_embeddings": false,
487
+ "num_attention_heads": 24,
488
+ "num_hidden_layers": 64,
489
+ "num_key_value_heads": 4,
490
+ "output_gate_type": "swish",
491
+ "pad_token_id": null,
492
+ "partial_rotary_factor": 0.25,
493
+ "rms_norm_eps": 1e-06,
494
+ "rope_parameters": {
495
+ "mrope_interleaved": true,
496
+ "mrope_section": [
497
+ 11,
498
+ 11,
499
+ 10
500
+ ],
501
+ "partial_rotary_factor": 0.25,
502
+ "rope_theta": 10000000,
503
+ "rope_type": "default"
504
+ },
505
+ "tie_word_embeddings": false,
506
+ "use_cache": true,
507
+ "vocab_size": 248320
508
+ },
509
+ "tie_word_embeddings": false,
510
+ "transformers_version": "5.14.1",
511
+ "video_token_id": 248057,
512
+ "vision_config": {
513
+ "deepstack_visual_indexes": [],
514
+ "depth": 27,
515
+ "dtype": "bfloat16",
516
+ "hidden_act": "gelu_pytorch_tanh",
517
+ "hidden_size": 1152,
518
+ "in_channels": 3,
519
+ "initializer_range": 0.02,
520
+ "intermediate_size": 4304,
521
+ "model_type": "qwen3_5_vision",
522
+ "num_heads": 16,
523
+ "num_position_embeddings": 2304,
524
+ "out_hidden_size": 5120,
525
+ "patch_size": 16,
526
+ "spatial_merge_size": 2,
527
+ "temporal_patch_size": 2
528
+ },
529
+ "vision_end_token_id": 248054,
530
+ "vision_start_token_id": 248053
531
+ }
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"
13
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8cc41cd198f9ca68fe843b955ac6c2d0c494723e7a18cd65ccf31ab8582ae90c
3
+ size 19985620784
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cb91d68f3a410eede4b93b938441db0ab2cd2741e8285af2582f0c6e263178d
3
+ size 3853467728
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
+ }
recipe.yaml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ default_stage:
2
+ default_modifiers:
3
+ AWQModifier:
4
+ requires_calibration_data: true
5
+ mappings:
6
+ - smooth_layer: re:.*post_attention_layernorm$
7
+ balance_layers: ['re:.*mlp\.gate_proj$', 're:.*mlp\.up_proj$']
8
+ activation_hook_target: null
9
+ - smooth_layer: re:.*mlp\.up_proj$
10
+ balance_layers: ['re:.*mlp\.down_proj$']
11
+ activation_hook_target: null
12
+ offload_device: !!python/object/apply:torch.device [cpu]
13
+ duo_scaling: true
14
+ n_grid: 20
15
+ GPTQModifier:
16
+ config_groups:
17
+ g0:
18
+ targets: ['re:.*layers\.([0-9]|[1-4][0-9]|5[0-5])\.mlp\.(gate|up|down)_proj$']
19
+ weights:
20
+ num_bits: 4
21
+ type: float
22
+ symmetric: true
23
+ group_size: 16
24
+ strategy: tensor_group
25
+ block_structure: null
26
+ dynamic: false
27
+ actorder: static
28
+ scale_dtype: torch.float8_e4m3fn
29
+ zp_dtype: null
30
+ observer: imatrix_mse
31
+ observer_kwargs: {}
32
+ input_activations:
33
+ num_bits: 4
34
+ type: float
35
+ symmetric: true
36
+ group_size: 16
37
+ strategy: tensor_group
38
+ block_structure: null
39
+ dynamic: local
40
+ actorder: null
41
+ scale_dtype: torch.float8_e4m3fn
42
+ zp_dtype: null
43
+ observer: static_minmax
44
+ observer_kwargs: {}
45
+ output_activations: null
46
+ format: null
47
+ g1:
48
+ targets: ['re:.*self_attn\.(q|k|v|o)_proj$', 're:.*linear_attn\.(in_proj_qkv|in_proj_z|out_proj)$',
49
+ 're:.*layers\.(5[6-9]|6[0-3])\.mlp\.(gate|up|down)_proj$']
50
+ weights:
51
+ num_bits: 8
52
+ type: float
53
+ symmetric: true
54
+ group_size: null
55
+ strategy: channel
56
+ block_structure: null
57
+ dynamic: false
58
+ actorder: static
59
+ scale_dtype: null
60
+ zp_dtype: null
61
+ observer: memoryless_minmax
62
+ observer_kwargs: {}
63
+ input_activations:
64
+ num_bits: 8
65
+ type: float
66
+ symmetric: true
67
+ group_size: null
68
+ strategy: token
69
+ block_structure: null
70
+ dynamic: true
71
+ actorder: null
72
+ scale_dtype: null
73
+ zp_dtype: null
74
+ observer: null
75
+ observer_kwargs: {}
76
+ output_activations: null
77
+ format: null
78
+ targets: ['re:.*layers\.([0-9]|[1-4][0-9]|5[0-5])\.mlp\.(gate|up|down)_proj$', 're:.*self_attn\.(q|k|v|o)_proj$',
79
+ 're:.*linear_attn\.(in_proj_qkv|in_proj_z|out_proj)$', 're:.*layers\.(5[6-9]|6[0-3])\.mlp\.(gate|up|down)_proj$']
80
+ ignore: [lm_head, 're:visual.*', 're:model\.visual.*', 're:.*embed_tokens$', 're:.*mtp.*',
81
+ 're:.*linear_attn\.(in_proj_b|in_proj_a|conv1d|A_log|dt_bias|norm)$', 're:.*norm$']
82
+ bypass_divisibility_checks: false
83
+ requires_calibration_data: true
84
+ block_size: 128
85
+ dampening_frac: 0.01
86
+ actorder: static
87
+ offload_hessians: false
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
tokenizer_config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": false,
13
+ "local_files_only": false,
14
+ "model_max_length": 262144,
15
+ "model_specific_special_tokens": {
16
+ "audio_bos_token": "<|audio_start|>",
17
+ "audio_eos_token": "<|audio_end|>",
18
+ "audio_token": "<|audio_pad|>",
19
+ "image_token": "<|image_pad|>",
20
+ "video_token": "<|video_pad|>",
21
+ "vision_bos_token": "<|vision_start|>",
22
+ "vision_eos_token": "<|vision_end|>"
23
+ },
24
+ "pad_token": "<|endoftext|>",
25
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
26
+ "split_special_tokens": false,
27
+ "tokenizer_class": "Qwen2Tokenizer",
28
+ "unk_token": null,
29
+ "video_token": "<|video_pad|>",
30
+ "vision_bos_token": "<|vision_start|>",
31
+ "vision_eos_token": "<|vision_end|>"
32
+ }
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
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff