Youssofal commited on
Commit
09f71b3
·
verified ·
1 Parent(s): 57449c6

Quantized MTP draft head (INT8/g64 affine, all 8 head matrices)

Browse files

mtp.safetensors: 451 MB (was 849 MB). Trunk weights are
unchanged. Acceptance re-verified flat-or-better against the
previous head before publishing; mtplx_runtime.json carries the
fresh fingerprint-bound verification rows and config.json declares
the prequantized head layout (loadable by MTPLX >= 2.0.1;
this model family needs >= 2.7.0).

Files changed (3) hide show
  1. config.json +9 -1
  2. mtp.safetensors +2 -2
  3. mtplx_runtime.json +168 -155
config.json CHANGED
@@ -172,5 +172,13 @@
172
  "temporal_patch_size": 2
173
  },
174
  "vision_end_token_id": 248054,
175
- "vision_start_token_id": 248053
 
 
 
 
 
 
 
 
176
  }
 
172
  "temporal_patch_size": 2
173
  },
174
  "vision_end_token_id": 248054,
175
+ "vision_start_token_id": 248053,
176
+ "mtplx_mtp_quantization": {
177
+ "bits": 8,
178
+ "group_size": 64,
179
+ "mode": "affine",
180
+ "policy": "all",
181
+ "prequantized": true,
182
+ "description": "All 8 MTP draft-head matrices (fc + attention q/k/v/o + MLP gate/up/down) packed MLX INT8/g64 affine from the released sidecar; head norms keep the pack's float dtype. Verified flat-or-better acceptance vs the unquantized head before publishing."
183
+ }
184
  }
mtp.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4468f39621de68a19ffd0bcb2e2e2f352205def7436a625b3427e3752866c287
3
- size 849400403
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e350715e0509932e337eb60c074a3e47be1a9a04ea0fcb6c29b193b67c470c5
3
+ size 451270903
mtplx_runtime.json CHANGED
@@ -1,166 +1,179 @@
1
  {
2
- "arch_id": "qwen3-next-mtp",
3
- "artifact_role": "forge-local",
4
- "base_trunk": "/Users/youssof/.mtplx/models/Qwen--Qwen3.8-27B",
5
- "exactness_baseline": {},
6
- "forge_provenance": {
7
- "depth_default_note": "Depth pin REMOVED 2026-08-14 after the gated live ABBA: D2 39.5 vs D3 40.6 tok/s matched-window (tie; D3 fewer verify rounds 697 vs 883). The earlier forge-verify \"D3 18.8 collapse\" was order/JIT-confounded (mistakes/single-forge-verify-tune-rows...). Family ceiling D3 applies.",
8
- "forge_inputs": {
9
- "mtp_source_path": "/Users/youssof/.mtplx/models/Qwen--Qwen3.8-27B",
10
- "trunk_path": "/Users/youssof/.mtplx/models/Qwen3.8-27B-MTPLX-Optimized-Quality"
11
- },
12
- "forge_recipe": {
13
- "body_bits": 8,
14
- "body_group_size": 64,
15
- "body_mode": "affine",
16
- "mtp_policy": "keep_bf16"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  },
18
- "forged_at": "2026-08-14T11:23:31-07:00",
19
- "forged_locally": true,
20
  "mtp_contract": {
21
- "base_hidden_variant": "post_norm",
22
- "concat_order": "embedding_hidden",
23
- "hidden_variant": "post_norm",
24
- "mtp_position_mode": "local",
25
- "mtp_quant_group_size": 64,
26
- "mtp_quant_mode": "affine"
27
  },
28
- "mtplx_version": "2.6.0",
29
- "published_to_hf": null,
30
- "recommended_profile_note": "Restamped sustained->turbo 2026-08-14: the sustained recommendation came from the same confounded verify rows; every gated arm served turbo, medium Flappy 59.8 tok/s blended quiet-window.",
31
- "source_format": "bf16_native",
32
- "source_repo": "/Users/youssof/.mtplx/models/Qwen--Qwen3.8-27B",
33
- "source_sha": null
34
- },
35
- "mtp_contract": {
36
- "base_hidden_variant": "post_norm",
37
- "concat_order": "embedding_hidden",
38
- "hidden_variant": "post_norm",
39
- "mtp_position_mode": "local",
40
- "mtp_quant_group_size": 64,
41
- "mtp_quant_mode": "affine"
42
- },
43
- "mtp_depth_max": 3,
44
- "mtp_sidecar": "bf16",
45
- "mtplx_version": "2.6.0",
46
- "recommended_profile": "turbo",
47
- "sampler": {
48
- "temperature": 0.6,
49
- "top_k": 20,
50
- "top_p": 0.95
51
- },
52
- "speed_evidence": {
53
- "acceptance_by_depth": [
54
- 0.9755555555555555,
55
- 0.9355555555555556
56
- ],
57
- "acceptance_collapsed": [],
58
- "depth": 2,
59
- "failure_reasons": [],
60
- "forge_verify_rows": [
61
- {
62
- "acceptance_by_position": [],
63
- "depth": 0,
64
- "finish_reasons": {
65
- "stop": 1
66
- },
67
- "hit_token_budget": false,
68
- "hit_token_budget_count": 0,
69
- "multiplier_vs_ar": 1.0,
70
- "quality_passed": true,
71
- "tok_s": 14.66011370222799,
72
- "verify_time_s": 137.62840137502644
73
- },
74
- {
75
- "acceptance_by_position": [
76
- 0.9665271966527197
77
  ],
78
- "depth": 1,
79
- "finish_reasons": {
80
- "stop": 1
81
- },
82
- "hit_token_budget": false,
83
- "hit_token_budget_count": 0,
84
- "multiplier_vs_ar": 1.8908957609763113,
85
- "quality_passed": true,
86
- "tok_s": 27.720746854973644,
87
- "verify_time_s": 36.8759049657383
88
- },
89
- {
90
- "acceptance_by_position": [
91
- 0.9755555555555555,
92
- 0.9355555555555556
93
  ],
94
- "depth": 2,
95
- "finish_reasons": {
96
- "stop": 1
97
  },
98
- "hit_token_budget": false,
99
- "hit_token_budget_count": 0,
100
- "multiplier_vs_ar": 2.3151330059181516,
101
- "quality_passed": true,
102
- "tok_s": 33.94011310254097,
103
- "verify_time_s": 38.35901796905091
104
- },
105
- {
106
- "acceptance_by_position": [
107
- 0.95,
108
- 0.8857142857142857,
109
- 0.8071428571428572
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  ],
111
- "depth": 3,
112
- "finish_reasons": {
113
- "stop": 1
114
- },
115
- "hit_token_budget": false,
116
- "hit_token_budget_count": 0,
117
- "multiplier_vs_ar": 1.2850945999364838,
118
- "quality_passed": true,
119
- "tok_s": 18.839632953188044,
120
- "verify_time_s": 71.97223836596822
121
- }
122
- ],
123
- "greedy_diagnostic": {
124
- "tok_s": 14.66011370222799
125
  },
126
- "quality_rejected": [],
127
- "tok_s": [
128
- 33.94011310254097
129
- ],
130
- "verdict": "mtp_depth_wins"
131
- },
132
- "verified_on": {
133
- "hardware": "macOS-26.3.1-arm64-arm-64bit-Mach-O",
134
- "machine_arch": "arm64",
135
- "macos": "26.3.1",
136
- "model": "Qwen3.8-27B-MTPLX-Optimized-Quality",
137
- "timestamp": "2026-08-14T11:23:31-07:00"
138
- },
139
- "mtp_depth_default": 3,
140
- "recommended_draft_sampler": {
141
- "temperature": 1.0,
142
- "top_p": 0.95,
143
- "top_k": 20
144
- },
145
- "release_validation": {
146
- "dropday_depth_abba": {
147
- "stamped_at": "2026-08-14T21:45:00-07:00",
148
- "basis": "dropday uncapped ABBA campaign (clean-receipts.jsonl, temp 1.0 xhigh/medium, die-gated, max fans verified)",
149
- "decode_tps_blended_d2": [
150
- 27.3,
151
- 28.0
152
- ],
153
- "decode_tps_blended_d3": [
154
- 33.2,
155
- 33.1
156
- ],
157
- "workload": "simple flappy xhigh uncapped (33k-46k tokens, EOS stop)",
158
- "verdict": "depth_3 (+19.9% blended)"
159
  },
160
- "draft_sampler_transfer_note": {
161
- "stamped_at": "2026-08-14T21:45:00-07:00",
162
- "basis": "dropday uncapped ABBA campaign (clean-receipts.jsonl, temp 1.0 xhigh/medium, die-gated, max fans verified)",
163
- "note": "draft 1.0 adopted by transfer: OS uncapped ABBA (+13%) + Bare scaffold strict A/B (keep_official_draft_sampler_1_0); same MTP head architecture and temp-1.0 target contract. OQ depth arms measured at draft 0.6; app-receipt validates live at ship config."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  }
165
- }
166
- }
 
1
  {
2
+ "arch_id": "qwen3-next-mtp",
3
+ "artifact_role": "forge-local",
4
+ "base_trunk": "/Users/youssof/.mtplx/models/Qwen--Qwen3.8-27B",
5
+ "exactness_baseline": {},
6
+ "forge_provenance": {
7
+ "depth_default_note": "Depth pin REMOVED 2026-08-14 after the gated live ABBA: D2 39.5 vs D3 40.6 tok/s matched-window (tie; D3 fewer verify rounds 697 vs 883). The earlier forge-verify \"D3 18.8 collapse\" was order/JIT-confounded (mistakes/single-forge-verify-tune-rows...). Family ceiling D3 applies.",
8
+ "forge_inputs": {
9
+ "mtp_source_path": "/Users/youssof/.mtplx/models/Qwen--Qwen3.8-27B",
10
+ "trunk_path": "/Users/youssof/.mtplx/models/Qwen3.8-27B-MTPLX-Optimized-Quality"
11
+ },
12
+ "forge_recipe": {
13
+ "body_bits": 8,
14
+ "body_group_size": 64,
15
+ "body_mode": "affine",
16
+ "mtp_policy": "keep_bf16"
17
+ },
18
+ "forged_at": "2026-08-14T11:23:31-07:00",
19
+ "forged_locally": true,
20
+ "mtp_contract": {
21
+ "base_hidden_variant": "post_norm",
22
+ "concat_order": "embedding_hidden",
23
+ "hidden_variant": "post_norm",
24
+ "mtp_position_mode": "local",
25
+ "mtp_quant_group_size": 64,
26
+ "mtp_quant_mode": "affine"
27
+ },
28
+ "mtplx_version": "2.6.0",
29
+ "published_to_hf": null,
30
+ "recommended_profile_note": "Restamped sustained->turbo 2026-08-14: the sustained recommendation came from the same confounded verify rows; every gated arm served turbo, medium Flappy 59.8 tok/s blended quiet-window.",
31
+ "source_format": "bf16_native",
32
+ "source_repo": "/Users/youssof/.mtplx/models/Qwen--Qwen3.8-27B",
33
+ "source_sha": null,
34
+ "head_quantization": {
35
+ "bits": 8,
36
+ "group_size": 64,
37
+ "mode": "affine",
38
+ "policy": "all",
39
+ "quantized_at": "2026-08-20T04:49:56Z",
40
+ "source_sidecar_bytes": 849400403,
41
+ "quantized_sidecar_bytes": 451270903,
42
+ "tool": "scripts/build_qwen38_q4head_sidecar.py",
43
+ "note": "Structural head quantization of the released sidecar; no calibration, no training. Trunk weights unchanged."
44
+ }
45
  },
 
 
46
  "mtp_contract": {
47
+ "base_hidden_variant": "post_norm",
48
+ "concat_order": "embedding_hidden",
49
+ "hidden_variant": "post_norm",
50
+ "mtp_position_mode": "local",
51
+ "mtp_quant_group_size": 64,
52
+ "mtp_quant_mode": "affine"
53
  },
54
+ "mtp_depth_max": 3,
55
+ "mtp_sidecar": "int8-g64-prequantized",
56
+ "mtplx_version": "2.9.0",
57
+ "recommended_profile": "turbo",
58
+ "sampler": {
59
+ "temperature": 0.6,
60
+ "top_k": 20,
61
+ "top_p": 0.95
62
+ },
63
+ "speed_evidence": {
64
+ "depth": 3,
65
+ "tok_s": [
66
+ 39.192696206919734
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  ],
68
+ "acceptance_by_depth": [
69
+ 0.9433962264150944,
70
+ 0.8814016172506739,
71
+ 0.8059299191374663
 
 
 
 
 
 
 
 
 
 
 
72
  ],
73
+ "greedy_diagnostic": {
74
+ "tok_s": 13.054796369549772
 
75
  },
76
+ "forge_verify_rows": [
77
+ {
78
+ "acceptance_by_position": [],
79
+ "depth": 0,
80
+ "finish_reasons": {
81
+ "stop": 1
82
+ },
83
+ "hit_token_budget": false,
84
+ "hit_token_budget_count": 0,
85
+ "multiplier_vs_ar": 1.0,
86
+ "quality_passed": true,
87
+ "tok_s": 13.054796369549772,
88
+ "verify_time_s": 154.4356367919827
89
+ },
90
+ {
91
+ "acceptance_by_position": [
92
+ 0.9570405727923628
93
+ ],
94
+ "depth": 1,
95
+ "finish_reasons": {
96
+ "stop": 1
97
+ },
98
+ "hit_token_budget": false,
99
+ "hit_token_budget_count": 0,
100
+ "multiplier_vs_ar": 2.0262953935160954,
101
+ "quality_passed": true,
102
+ "tok_s": 26.45287374690935,
103
+ "verify_time_s": 35.17482435004786
104
+ },
105
+ {
106
+ "acceptance_by_position": [
107
+ 0.9776119402985075,
108
+ 0.9129353233830846
109
+ ],
110
+ "depth": 2,
111
+ "finish_reasons": {
112
+ "stop": 1
113
+ },
114
+ "hit_token_budget": false,
115
+ "hit_token_budget_count": 0,
116
+ "multiplier_vs_ar": 2.560816141204823,
117
+ "quality_passed": true,
118
+ "tok_s": 33.430933263285176,
119
+ "verify_time_s": 36.15608408872504
120
+ },
121
+ {
122
+ "acceptance_by_position": [
123
+ 0.9433962264150944,
124
+ 0.8814016172506739,
125
+ 0.8059299191374663
126
+ ],
127
+ "depth": 3,
128
+ "finish_reasons": {
129
+ "stop": 1
130
+ },
131
+ "hit_token_budget": false,
132
+ "hit_token_budget_count": 0,
133
+ "multiplier_vs_ar": 3.002168329361034,
134
+ "quality_passed": true,
135
+ "tok_s": 39.192696206919734,
136
+ "verify_time_s": 31.090109037584625
137
+ }
138
  ],
139
+ "quality_rejected": [],
140
+ "acceptance_collapsed": [],
141
+ "failure_reasons": [],
142
+ "verdict": "mtp_depth_wins",
143
+ "artifact_fingerprint": "sha256:5a7a0d400ebff91dc544f7d93454d6d48d2833b4f0f7ad832d00e1d9513fd750"
144
+ },
145
+ "verified_on": {
146
+ "timestamp": "2026-08-19T23:08:02-07:00",
147
+ "hardware": "macOS-26.3.1-arm64-arm-64bit-Mach-O",
148
+ "machine_arch": "arm64",
149
+ "macos": "26.3.1",
150
+ "model": "Qwen3.8-27B-MTPLX-Optimized-Quality"
 
 
151
  },
152
+ "mtp_depth_default": 3,
153
+ "recommended_draft_sampler": {
154
+ "temperature": 1.0,
155
+ "top_p": 0.95,
156
+ "top_k": 20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  },
158
+ "release_validation": {
159
+ "dropday_depth_abba": {
160
+ "stamped_at": "2026-08-14T21:45:00-07:00",
161
+ "basis": "dropday uncapped ABBA campaign (clean-receipts.jsonl, temp 1.0 xhigh/medium, die-gated, max fans verified)",
162
+ "decode_tps_blended_d2": [
163
+ 27.3,
164
+ 28.0
165
+ ],
166
+ "decode_tps_blended_d3": [
167
+ 33.2,
168
+ 33.1
169
+ ],
170
+ "workload": "simple flappy xhigh uncapped (33k-46k tokens, EOS stop)",
171
+ "verdict": "depth_3 (+19.9% blended)"
172
+ },
173
+ "draft_sampler_transfer_note": {
174
+ "stamped_at": "2026-08-14T21:45:00-07:00",
175
+ "basis": "dropday uncapped ABBA campaign (clean-receipts.jsonl, temp 1.0 xhigh/medium, die-gated, max fans verified)",
176
+ "note": "draft 1.0 adopted by transfer: OS uncapped ABBA (+13%) + Bare scaffold strict A/B (keep_official_draft_sampler_1_0); same MTP head architecture and temp-1.0 target contract. OQ depth arms measured at draft 0.6; app-receipt validates live at ship config."
177
+ }
178
  }
179
+ }