Ttimms commited on
Commit
e8640fd
·
verified ·
1 Parent(s): 5c80a46

Add files using upload-large-folder tool

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,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Zyphra/ZAYA1-8B
3
+ license: apache-2.0
4
+ tags:
5
+ - nvfp4
6
+ - w4a4
7
+ - compressed-tensors
8
+ - quantization
9
+ - vllm
10
+ - blackwell
11
+ - moe
12
+ pipeline_tag: text-generation
13
+ ---
14
+
15
+ # ZAYA1-8B NVFP4 W4A4
16
+
17
+ **NVFP4 W4A4 inference for Zyphra's ZAYA1-8B on consumer Blackwell (RTX 5070 Ti, SM120)** —
18
+ 4-bit weights *and* 4-bit activations running on native CUTLASS FP4 tensor-core kernels,
19
+ at **102.6 tok/s single-stream / 407.4 tok/s batch-8** in under 6 GB of VRAM.
20
+
21
+ One other public NVFP4 W4A4 ZAYA1 checkpoint exists — built with NVIDIA ModelOpt
22
+ and validated on a 96 GB workstation Blackwell card, with no published accuracy or
23
+ throughput numbers. This checkpoint is, as far as we know, the first built with
24
+ compressed-tensors on a 16 GB **consumer** card, with its own measured accuracy
25
+ and throughput. Full build/debug writeup, quantization scripts, and reproduction
26
+ steps: [github.com/t-timms/zaya1-godspeed](https://github.com/t-timms/zaya1-godspeed).
27
+
28
+ ## Highlights
29
+
30
+ | Result | Detail |
31
+ |--------|--------|
32
+ | **102.6 tok/s** single / **407.4 tok/s** batch-8 | vLLM + CUDA graphs on RTX 5070 Ti (12.8× over eager mode) |
33
+ | **5.99 GB checkpoint** | 936 Linears in packed NVFP4 W4A4, 384 outlier-sensitive Linears kept BF16 (mixed precision) |
34
+ | **Checkpoint verified healthy** | Budget-forced GPQA-Diamond rises monotonically with reasoning budget — 45.8% → 62.5% at a 12k-token think budget, within CI of Zyphra's BF16 CoT 71.0% |
35
+ | **vLLM SM120 source build** | `TORCH_CUDA_ARCH_LIST=12.0` build enabling `cutlass_scaled_fp4_mm_sm120a` + FP4 group MoE GEMM — kernels that ship in vLLM source but not in wheels |
36
+
37
+ ## Quantization details
38
+
39
+ | Field | Value |
40
+ |---|---|
41
+ | Base model | `Zyphra/ZAYA1-8B` |
42
+ | Method | compressed-tensors, `float-quantized` |
43
+ | Scheme | NVFP4, `w4a4` (4-bit weights, 4-bit activations) |
44
+ | Group size | 16 (tensor-group strategy) |
45
+ | Ignored / kept BF16 | `lm_head`, router, norm, qkv, cca modules, plus 12 MoE layers with `max_abs > 500` (384 Linears) |
46
+ | Calibration | 977 samples, ARC-mix calibration set, 936 Linears calibrated |
47
+ | Compressor | `NVFP4PackedCompressor` (`weight_packed_dtype=uint8`, `weight_scale_dtype=float8_e4m3fn`) |
48
+ | Built on | RTX 5070 Ti, 16 GB VRAM, CUDA 13.0 |
49
+
50
+ See `quantization_manifest.json` in this repo for the full machine-readable config,
51
+ including the exact outlier-layer list and mixed-precision threshold.
52
+
53
+ ## Why this is hard
54
+
55
+ ZAYA1-8B is an 80-layer MoE (760M active / 8.4B total) with Zyphra's CCA
56
+ (compressed convolutional attention) — no stock quantization path works out of
57
+ the box. Notably: W4A4 requires calibrating activation scales (not just
58
+ weights), the compressed-tensors calibration path has a silent NaN-producing
59
+ trap if you calibrate through the fake-quant `nn.Linear.forward` wrapper, and
60
+ the NVFP4 global-scale convention (`2688 / max_abs`, divisor form, block
61
+ scales pre-multiplied) is undocumented — getting it wrong produces silent
62
+ pad-token collapse, not an error. Full root-cause writeup in `RESEARCH.md` on
63
+ the [GitHub repo](https://github.com/t-timms/zaya1-godspeed).
64
+
65
+ ## Usage
66
+
67
+ This checkpoint requires vLLM built from source with SM120 NVFP4 CUTLASS
68
+ kernels (stock wheels don't include them) — see the
69
+ [reproduce steps](https://github.com/t-timms/zaya1-godspeed#reproduce) in the
70
+ GitHub repo. Inference must run in `bfloat16` (not fp16/fp32).
71
+
72
+ ```bash
73
+ # vLLM built from source with: TORCH_CUDA_ARCH_LIST=12.0
74
+ vllm serve Ttimms/zaya1-8b-nvfp4-w4a4 --dtype bfloat16
75
+ ```
76
+
77
+ ## Evaluation
78
+
79
+ Budget-forced GPQA-Diamond (n=24, paired), using an s1-style harness that caps
80
+ the reasoning trace and scores only the closed answer — stock lm-eval
81
+ harnesses score near-random on this model because ZAYA never closes its
82
+ `<think>` block within a normal budget:
83
+
84
+ | think budget | GPQA-Diamond | traces self-closing `</think>` |
85
+ |---|---|---|
86
+ | 2,500 | 45.8% | 1/24 |
87
+ | 5,000 | 45.8% | 2/24 |
88
+ | 12,000 | **62.5%** | 9/24 |
89
+
90
+ The gap to Zyphra's BF16 CoT (71.0%) is the 16 GB context/reasoning-budget
91
+ ceiling on the source hardware — not quantization damage.
92
+
93
+ ## License
94
+
95
+ Apache 2.0 — matches the ZAYA1-8B upstream license.
chat_template.jinja ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% macro render_extra_keys(json_dict, handled_keys) %}
2
+ {%- if json_dict is mapping %}
3
+ {%- for json_key in json_dict if json_key not in handled_keys %}
4
+ {%- if json_dict[json_key] is mapping or (json_dict[json_key] is sequence and json_dict[json_key] is not string) %}
5
+ {{- '\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | tojson | safe) ~ '</' ~ json_key ~ '>' }}
6
+ {%- else %}
7
+ {{-'\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | string) ~ '</' ~ json_key ~ '>' }}
8
+ {%- endif %}
9
+ {%- endfor %}
10
+ {%- endif %}
11
+ {% endmacro %}
12
+ {%- set enable_thinking = enable_thinking if enable_thinking is defined else True %}
13
+ {# TODO: set truncate to true for deployment & agent evals. Keep on for SFT. #}
14
+ {%- set truncate_history_thinking = truncate_history_thinking if truncate_history_thinking is defined else False %}
15
+ {{- bos_token }}
16
+ {%- set ns = namespace(last_user_idx = -1) %}
17
+ {%- set loop_messages = messages %}
18
+ {%- for m in loop_messages %}
19
+ {%- if m["role"] == "user" %}
20
+ {%- set ns.last_user_idx = loop.index0 %}
21
+ {%- endif %}
22
+ {%- endfor %}
23
+
24
+ {%- if messages[0]["role"] == "system" %}
25
+ {%- set system_message = messages[0]["content"] %}
26
+ {%- set loop_messages = messages[1:] %}
27
+ {%- else %}
28
+ {%- set system_message = "" %}
29
+ {%- set loop_messages = messages %}
30
+ {%- endif %}
31
+ {%- if not tools is defined %}
32
+ {%- set tools = [] %}
33
+ {%- endif %}
34
+ {# Recompute last_user_idx relative to loop_messages after handling system #}
35
+ {%- set ns = namespace(last_user_idx = -1) %}
36
+ {%- for m in loop_messages %}
37
+ {%- if m["role"] == "user" %}
38
+ {%- set ns.last_user_idx = loop.index0 %}
39
+ {%- endif %}
40
+ {%- endfor %}
41
+ {%- if system_message is defined %}
42
+ {{- "<|im_start|>system\n" + system_message }}
43
+ {%- else %}
44
+ {%- if tools is iterable and tools | length > 0 %}
45
+ {{- "<|im_start|>system\n" }}
46
+ {%- endif %}
47
+ {%- endif %}
48
+ {%- if tools is iterable and tools | length > 0 %}
49
+ {%- if system_message is defined and system_message | length > 0 %}
50
+ {{- "\n\n" }}
51
+ {%- endif %}
52
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
53
+ {{- "<tools>" }}
54
+ {%- for tool in tools %}
55
+ {%- if tool.function is defined %}
56
+ {%- set tool = tool.function %}
57
+ {%- endif %}
58
+ {{- "\n<function>\n<name>" ~ tool.name ~ "</name>" }}
59
+ {%- if tool.description is defined %}
60
+ {{- '\n<description>' ~ (tool.description | trim) ~ '</description>' }}
61
+ {%- endif %}
62
+ {{- '\n<parameters>' }}
63
+ {%- if tool.parameters is defined and tool.parameters is mapping and tool.parameters.properties is defined and tool.parameters.properties is mapping %}
64
+ {%- for param_name, param_fields in tool.parameters.properties|items %}
65
+ {{- '\n<parameter>' }}
66
+ {{- '\n<name>' ~ param_name ~ '</name>' }}
67
+ {%- if param_fields.type is defined %}
68
+ {{- '\n<type>' ~ (param_fields.type | string) ~ '</type>' }}
69
+ {%- endif %}
70
+ {%- if param_fields.description is defined %}
71
+ {{- '\n<description>' ~ (param_fields.description | trim) ~ '</description>' }}
72
+ {%- endif %}
73
+ {%- if param_fields.enum is defined %}
74
+ {{- '\n<enum>' ~ (param_fields.enum | tojson | safe) ~ '</enum>' }}
75
+ {%- endif %}
76
+ {%- set handled_keys = ['name', 'type', 'description', 'enum'] %}
77
+ {{- render_extra_keys(param_fields, handled_keys) }}
78
+ {{- '\n</parameter>' }}
79
+ {%- endfor %}
80
+ {%- endif %}
81
+ {% set handled_keys = ['type', 'properties', 'required'] %}
82
+ {{- render_extra_keys(tool.parameters, handled_keys) }}
83
+ {%- if tool.parameters is defined and tool.parameters.required is defined %}
84
+ {{- '\n<required>' ~ (tool.parameters.required | tojson | safe) ~ '</required>' }}
85
+ {%- endif %}
86
+ {{- '\n</parameters>' }}
87
+ {%- set handled_keys = ['type', 'name', 'description', 'parameters'] %}
88
+ {{- render_extra_keys(tool, handled_keys) }}
89
+ {{- '\n</function>' }}
90
+ {%- endfor %}
91
+ {{- "\n</tools>" }}
92
+
93
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<zyphra_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</zyphra_tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <zyphra_tool_call></zyphra_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>' }}
94
+ {%- endif %}
95
+
96
+
97
+ {%- if system_message is defined %}
98
+ {{- '<|im_end|>\n' }}
99
+ {%- else %}
100
+ {%- if tools is iterable and tools | length > 0 %}
101
+ {{- '<|im_end|>\n' }}
102
+ {%- endif %}
103
+ {%- endif %}
104
+
105
+ {%- for message in loop_messages %}
106
+ {%- if message.role == "assistant" %}
107
+ {# Add reasoning content in to content field for unified processing below. #}
108
+ {%- if message.reasoning_content is defined and message.reasoning_content is string and message.reasoning_content | trim | length > 0 %}
109
+ {%- set content = "<think>\n" ~ message.reasoning_content ~ "\n</think>\n\n" ~ (message.content | default('', true)) %}
110
+ {%- else %}
111
+ {%- set content = message.content | default('', true) %}
112
+ {%- if content is string -%}
113
+ {# Allow downstream logic to to take care of broken thought, only handle coherent reasoning here. #}
114
+ {%- if '<think>' not in content and '</think>' not in content -%}
115
+ {%- set content = "<think>\n</think>\n\n" ~ content -%}
116
+ {%- endif -%}
117
+ {%- else -%}
118
+ {%- set content = content -%}
119
+ {%- endif -%}
120
+ {%- endif %}
121
+ {%- if message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}
122
+ {# Assistant message has tool calls. #}
123
+ {{- '<|im_start|>assistant\n' }}
124
+ {%- set include_content = not (truncate_history_thinking and loop.index0 < ns.last_user_idx) %}
125
+ {%- if content is string and content | trim | length > 0 %}
126
+ {%- if include_content %}
127
+ {{- (content | trim) ~ '\n\n' -}}
128
+ {%- else %}
129
+ {%- set c = (content | string) %}
130
+ {%- if '</think>' in c %}
131
+ {# Keep only content after the last closing think. Also generation prompt causes this. #}
132
+ {%- set c = c.split('</think>')[-1] %}
133
+ {%- elif '<think>' in c %}
134
+ {# If <think> was opened but never closed, drop the trailing think segment #}
135
+ {%- set c = c.split('<think>')[0] %}
136
+ {%- endif %}
137
+ {%- set c = "<think>\n</think>\n\n" ~ c | trim %}
138
+ {%- if c | length > 0 %}
139
+ {{- c ~ '\n' -}}
140
+ {%- endif %}
141
+ {%- endif %}
142
+ {%- else %}
143
+ {{- "<think>\n</think>\n\n" -}}
144
+ {%- endif %}
145
+ {%- for tool_call in message.tool_calls %}
146
+ {%- if tool_call.function is defined %}
147
+ {%- set tool_call = tool_call.function %}
148
+ {%- endif %}
149
+ {{- '<zyphra_tool_call>\n<function=' ~ tool_call.name ~ '>\n' -}}
150
+ {%- if tool_call.arguments is defined %}
151
+ {%- for args_name, args_value in tool_call.arguments|items %}
152
+ {{- '<parameter=' ~ args_name ~ '>\n' -}}
153
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
154
+ {{- args_value ~ '\n</parameter>\n' -}}
155
+ {%- endfor %}
156
+ {%- endif %}
157
+ {{- '</function>\n</zyphra_tool_call>\n' -}}
158
+ {%- endfor %}
159
+ {{- '<|im_end|>\n' }}
160
+ {%- else %}
161
+ {# Assistant message doesn't have tool calls. #}
162
+ {%- if not (truncate_history_thinking and loop.index0 < ns.last_user_idx) %}
163
+ {{- '<|im_start|>assistant\n' ~ (content | default('', true) | string | trim) ~ '<|im_end|>\n' }}
164
+ {%- else %}
165
+ {%- set c = (content | default('', true) | string) %}
166
+ {%- if '<think>' in c and '</think>' in c %}
167
+ {%- set c = "<think>\n</think>\n\n" ~ (c.split('</think>')[-1] | trim) %}
168
+ {%- endif %}
169
+ {%- set c = c | trim %}
170
+ {%- if c | length > 0 %}
171
+ {{- '<|im_start|>assistant\n' ~ c ~ '<|im_end|>\n' }}
172
+ {%- else %}
173
+ {{- '<|im_start|>assistant\n<|im_end|>\n' }}
174
+ {%- endif %}
175
+ {%- endif %}
176
+ {%- endif %}
177
+ {%- elif message.role == "user" or message.role == "system" %}
178
+ {{- '<|im_start|>' + message.role + '\n' }}
179
+ {%- set content = message.content | string %}
180
+ {{- content }}
181
+ {{- '<|im_end|>\n' }}
182
+ {%- elif message.role == "tool" %}
183
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
184
+ {{- '<|im_start|>user\n' }}
185
+ {%- endif %}
186
+ {{- '<zyphra_tool_response>\n' }}
187
+ {{- message.content }}
188
+ {{- '\n</zyphra_tool_response>\n' }}
189
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
190
+ {{- '<|im_end|>\n' }}
191
+ {%- elif loop.last %}
192
+ {{- '<|im_end|>\n' }}
193
+ {%- endif %}
194
+ {%- else %}
195
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>\n' }}
196
+ {%- endif %}
197
+ {%- endfor %}
198
+
199
+ {%- if add_generation_prompt %}
200
+ {%- if enable_thinking %}
201
+ {{- '<|im_start|>assistant\n<think>\n' }}
202
+ {%- else %}
203
+ {{- '<|im_start|>assistant\n<think>\n</think>\n\n' }}
204
+ {%- endif %}
205
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_func": "swiglu",
3
+ "activation_func_fp8_input_store": false,
4
+ "add_bias_linear": false,
5
+ "architectures": [
6
+ "ZayaForCausalLM"
7
+ ],
8
+ "attention_bias": false,
9
+ "attention_dropout": 0.0,
10
+ "bias_activation_fusion": true,
11
+ "bos_token_id": 2,
12
+ "cca": true,
13
+ "cca_time0": 2,
14
+ "cca_time1": 2,
15
+ "clamp_temp": false,
16
+ "dtype": "bfloat16",
17
+ "eos_token_id": 106,
18
+ "ffn_hidden_size": 4096,
19
+ "gated_linear_unit": true,
20
+ "head_dim": 128,
21
+ "hidden_size": 2048,
22
+ "kv_channels": 128,
23
+ "lm_head_bias": false,
24
+ "mamba_cache_dtype": "float32",
25
+ "max_position_embeddings": 131072,
26
+ "model_type": "zaya",
27
+ "moe_router_topk": 1,
28
+ "norm_epsilon": 1e-05,
29
+ "normalization": "RMSNorm",
30
+ "num_attention_heads": 8,
31
+ "num_experts": 16,
32
+ "num_hidden_layers": 80,
33
+ "num_key_value_heads": 2,
34
+ "num_query_groups": 2,
35
+ "pad_token_id": 0,
36
+ "partial_rotary_factor": 0.5,
37
+ "residual_in_fp32": true,
38
+ "rope_parameters": {
39
+ "partial_rotary_factor": 0.5,
40
+ "rope_theta": 5000000,
41
+ "rope_type": "default"
42
+ },
43
+ "rope_theta": 5000000,
44
+ "scale_residual_merge": true,
45
+ "sliding_window": null,
46
+ "swa_layers": null,
47
+ "swa_rotary_base": null,
48
+ "transformers_version": "4.57.1",
49
+ "use_cache": true,
50
+ "vocab_size": 262272,
51
+ "zaya_high_prec": true,
52
+ "zaya_mlp_expansion": 256,
53
+ "zaya_use_eda": true,
54
+ "zaya_use_mod": true,
55
+ "quantization_config": {
56
+ "quant_method": "compressed-tensors",
57
+ "format": "nvfp4-pack-quantized",
58
+ "config_groups": {
59
+ "group_0": {
60
+ "weights": {
61
+ "num_bits": 4,
62
+ "type": "float",
63
+ "strategy": "tensor_group",
64
+ "group_size": 16,
65
+ "symmetric": true,
66
+ "dynamic": false
67
+ },
68
+ "input_activations": {
69
+ "num_bits": 4,
70
+ "type": "float",
71
+ "strategy": "tensor_group",
72
+ "group_size": 16,
73
+ "symmetric": true,
74
+ "dynamic": false
75
+ },
76
+ "targets": [
77
+ "Linear"
78
+ ]
79
+ }
80
+ },
81
+ "ignore": [
82
+ "lm_head",
83
+ "re:.*router.*",
84
+ "re:.*norm.*",
85
+ "re:.*qkv.*",
86
+ "re:.*cca.*",
87
+ "re:model\\.layers\\.(1|19|31|37|39|65|69|71|73|75|77|79)\\..+"
88
+ ]
89
+ }
90
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": 106,
5
+ "pad_token_id": 0,
6
+ "top_k": null,
7
+ "top_p": null,
8
+ "transformers_version": "4.57.1"
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78702ae84a70df261847fb44e99654c5d3827f80e95d6c3ca422853c159a7487
3
+ size 9457736016
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
quantization_manifest.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "Zyphra/ZAYA1-8B",
3
+ "quantization": {
4
+ "method": "compressed-tensors",
5
+ "format": "float-quantized",
6
+ "scheme": "NVFP4",
7
+ "scheme_variant": "w4a4",
8
+ "num_bits_weight": 4,
9
+ "num_bits_activation": 4,
10
+ "type": "float",
11
+ "strategy": "tensor_group",
12
+ "group_size": 16,
13
+ "target_modules": [
14
+ "Linear"
15
+ ],
16
+ "ignore": [
17
+ "lm_head",
18
+ "re:.*router.*",
19
+ "re:.*norm.*",
20
+ "re:.*qkv.*",
21
+ "re:.*cca.*"
22
+ ],
23
+ "weight_packed_dtype": "uint8",
24
+ "weight_scale_dtype": "float8_e4m3fn",
25
+ "weight_global_scale_dtype": "float32",
26
+ "input_global_scale_dtype": "float32",
27
+ "zero_point": "none (symmetric)",
28
+ "compressor": "NVFP4PackedCompressor"
29
+ },
30
+ "calibration": {
31
+ "data_path": "data/calibration/arcmix/calibration_data.pt",
32
+ "num_samples_used": 977,
33
+ "batch_size": 1,
34
+ "linears_calibrated": 936
35
+ },
36
+ "mixed_precision": {
37
+ "threshold": 500.0,
38
+ "outlier_layers": [
39
+ 1,
40
+ 19,
41
+ 31,
42
+ 37,
43
+ 39,
44
+ 65,
45
+ 69,
46
+ 71,
47
+ 73,
48
+ 75,
49
+ 77,
50
+ 79
51
+ ],
52
+ "bf16_exempted_modules": 384,
53
+ "w4a4_compressed_modules": 936,
54
+ "description": "12 MoE layers where max_abs > 500 kept at BF16 (384 Linears). FusedMoE requires uniform quantization per layer."
55
+ },
56
+ "hardware": {
57
+ "gpu": "NVIDIA GeForce RTX 5070 Ti",
58
+ "vram": "16 GB",
59
+ "cuda": "13.0"
60
+ },
61
+ "modules_compressed": 936,
62
+ "output_size_bytes": 9492784787,
63
+ "dry_run": false
64
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<|im_end|>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05b019781e631e0bc0bebe417317fe2d2296a0354ab7f206fbb80b446758fd75
3
+ size 33385009
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff