pipenetwork commited on
Commit
fb05bcd
·
verified ·
1 Parent(s): af5dfec

Benchmark all quant tiers against the bf16 reference

Browse files
Files changed (1) hide show
  1. README.md +24 -14
README.md CHANGED
@@ -26,7 +26,7 @@ base_model: nightmedia/Qwen3.5-9B-DS9-USS-Defiant
26
 
27
  # Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-4bit
28
 
29
- MLX conversion of **Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic** for Apple silicon — 4-bit, the smallest tier and the usual default
30
 
31
  Uncensored ("Heretic'd") multi-stage merge of Qwen3.5-9B fine tunes by [nightmedia](https://huggingface.co/nightmedia) and [DavidAU](https://huggingface.co/DavidAU), with a compacted-but-stronger thinking block. Vision is included and works out of the box — no separate `mmproj` download.
32
 
@@ -108,19 +108,29 @@ Group size 64, `affine` mode. The vision tower is left unquantized (mlx-vlm's de
108
  ## Measured quantization quality
109
 
110
  Against the bf16 reference these were converted from — 65,536 tokens of wikitext-2 test
111
- at 1024 context, identical token ids through mlx-lm, on an M3 Ultra:
112
-
113
- | model | ppl | Δppl | KL(bf16‖quant) | top-1 vs bf16 | decode |
114
- |---|---|---|---|---|---|
115
- | bf16 reference | 8.1273 |||| 39.0 t/s |
116
- | **this 4bit** (affine, group 64) | **8.5816** | **+5.59%** | **0.0733** | **87.06%** | 109.9 t/s |
117
- | [nightmedia mxfp4](https://huggingface.co/nightmedia/Qwen3.5-9B-DS9-USS-Defiant-mxfp4-mlx) (group 32) | 8.9443 | +10.05% | 0.1133 | 82.34% | 114.4 t/s |
118
-
119
- The 4bit tier loses about half the perplexity that MXFP4 does and stays measurably closer
120
- to the original distribution, at the cost of 4.5 vs 4.25 bits/weight (~6% more storage)
121
- and ~4% slower decode. Both are quantizations of the same weights, so this compares the
122
- quantization scheme only. Reproduce with
123
- [`bench.py`](https://github.com/PipeNetwork/defiant-fable-mlx).
 
 
 
 
 
 
 
 
 
 
124
 
125
  ## Sampling
126
 
 
26
 
27
  # Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-4bit
28
 
29
+ MLX conversion of **Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic** for Apple silicon — 4-bit, the smallest tier
30
 
31
  Uncensored ("Heretic'd") multi-stage merge of Qwen3.5-9B fine tunes by [nightmedia](https://huggingface.co/nightmedia) and [DavidAU](https://huggingface.co/DavidAU), with a compacted-but-stronger thinking block. Vision is included and works out of the box — no separate `mmproj` download.
32
 
 
108
  ## Measured quantization quality
109
 
110
  Against the bf16 reference these were converted from — 65,536 tokens of wikitext-2 test
111
+ at 1024 context, identical token ids through mlx-lm, on an M3 Ultra. KL is measured
112
+ against bf16's own output distribution, so lower means closer to the original model.
113
+
114
+ | model | lang. weights | ppl | Δppl | KL(bf16‖quant) | top-1 vs bf16 | decode |
115
+ |---|---|---|---|---|---|---|
116
+ | bf16 reference | 17.91 GB | 8.1273 | | | | 38.9 t/s |
117
+ | 8bit | 9.51 GB | 8.1277 | +0.00% | 0.00124 | 98.24% | 67.3 t/s |
118
+ | 6bit | 7.28 GB | 8.1426 | +0.19% | 0.00523 | 96.20% | 80.4 t/s |
119
+ | **4bit** (this repo) | 5.04 GB | 8.5816 | +5.59% | 0.07330 | 87.06% | 109.1 t/s |
120
+ | [nightmedia mxfp4](https://huggingface.co/nightmedia/Qwen3.5-9B-DS9-USS-Defiant-mxfp4-mlx) | 4.76 GB | 8.9443 | +10.05% | 0.11328 | 82.34% | 113.8 t/s |
121
+
122
+ Reading it:
123
+
124
+ - **8bit is effectively free** — bf16 perplexity to four decimals at 47% of the footprint
125
+ and 1.7x the decode speed.
126
+ - **6bit is the value pick** at +0.19%.
127
+ - **The quality cliff is 6bit → 4bit**, not further down: KL jumps 14x. If you can fit
128
+ 7.3 GB, prefer 6bit over 4bit.
129
+ - At the 4-bit tier this affine group-64 quant loses about half the perplexity MXFP4 does,
130
+ costing 4.5 vs 4.25 bits/weight (~6% more storage, ~4% slower decode).
131
+
132
+ All tiers are quantizations of the same weights, so this isolates the quantization scheme.
133
+ Reproduce with [`bench.py`](https://github.com/PipeNetwork/defiant-fable-mlx).
134
 
135
  ## Sampling
136