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

Add 5bit tier to the measured quantization comparison

Browse files
Files changed (1) hide show
  1. README.md +11 -9
README.md CHANGED
@@ -100,6 +100,7 @@ print(generate(model, processor, prompt, ["your_image.jpg"], max_tokens=512, ver
100
  |---|---|---|
101
  | [...-MLX-4bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-4bit) | 4 | 6.0 GB |
102
  | [...-MLX-6bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-6bit) | 6 | 7.7 GB |
 
103
  | [...-MLX-8bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-8bit) | 8 | 9.7 GB |
104
  | [...-MLX-bf16](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-bf16) | 16 | 18.8 GB |
105
 
@@ -113,26 +114,27 @@ against bf16's own output distribution, so lower means closer to the original mo
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
 
137
  DavidAU's notes for this model, which carry over:
138
 
 
100
  |---|---|---|
101
  | [...-MLX-4bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-4bit) | 4 | 6.0 GB |
102
  | [...-MLX-6bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-6bit) | 6 | 7.7 GB |
103
+ | [...-MLX-5bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-5bit) | 5 | 6.6 GB |
104
  | [...-MLX-8bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-8bit) | 8 | 9.7 GB |
105
  | [...-MLX-bf16](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-bf16) | 16 | 18.8 GB |
106
 
 
114
 
115
  | model | lang. weights | ppl | Δppl | KL(bf16‖quant) | top-1 vs bf16 | decode |
116
  |---|---|---|---|---|---|---|
117
+ | bf16 reference | 17.91 GB | 8.1273 | — | — | — | 39.2 t/s |
118
+ | 8bit | 9.51 GB | 8.1277 | +0.00% | 0.00124 | 98.24% | 67.9 t/s |
119
+ | 6bit | 7.28 GB | 8.1426 | +0.19% | 0.00523 | 96.20% | 80.9 t/s |
120
+ | 5bit | 6.16 GB | 8.2012 | +0.91% | 0.01845 | 93.24% | 92.5 t/s |
121
+ | **4bit** (this repo) | 5.04 GB | 8.5816 | +5.59% | 0.07330 | 87.06% | 110.0 t/s |
122
+ | [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% | 114.7 t/s |
123
 
124
  Reading it:
125
 
126
  - **8bit is effectively free** — bf16 perplexity to four decimals at 47% of the footprint
127
  and 1.7x the decode speed.
128
+ - **5bit is the best quality-per-GB**: under 1% perplexity for 6.2 GB.
129
+ - **The cliff is 5bit → 4bit**, where KL jumps 4x and perplexity goes +0.91% → +5.59%.
130
+ If 4bit feels lossy, 5bit is the tier to move to, not 6bit.
131
  - At the 4-bit tier this affine group-64 quant loses about half the perplexity MXFP4 does,
132
  costing 4.5 vs 4.25 bits/weight (~6% more storage, ~4% slower decode).
133
 
134
  All tiers are quantizations of the same weights, so this isolates the quantization scheme.
135
  Reproduce with [`bench.py`](https://github.com/PipeNetwork/defiant-fable-mlx).
136
 
137
+ ## Sampling## Sampling
138
 
139
  DavidAU's notes for this model, which carry over:
140