pipenetwork commited on
Commit
ecfd4c9
·
verified ·
1 Parent(s): f741fec

Add NVFP4/MXFP4 quant comparison

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -35,6 +35,25 @@ multi-token-prediction head is dropped (inference-irrelevant).
35
  | [6bit](https://huggingface.co/pipenetwork/Inkling-MLX-6bit) | ~717 GB | high quality |
36
  | [4bit](https://huggingface.co/pipenetwork/Inkling-MLX-4bit) | ~490 GB | balanced default |
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  ## ⚠️ Loading requires the bundled `inkling_mlx` loader
39
 
40
  The `inkling_mm_model` architecture is **not** in stock `mlx-lm` / `mlx-vlm`, so this
 
35
  | [6bit](https://huggingface.co/pipenetwork/Inkling-MLX-6bit) | ~717 GB | high quality |
36
  | [4bit](https://huggingface.co/pipenetwork/Inkling-MLX-4bit) | ~490 GB | balanced default |
37
 
38
+ ## Quantization scheme: affine int4 (not NVFP4 / MXFP4)
39
+
40
+ MLX supports FP4 modes and Thinking Machines ships an
41
+ [Inkling-NVFP4](https://huggingface.co/thinkingmachines/Inkling-NVFP4) checkpoint — so for
42
+ the record, we benchmarked round-trip reconstruction error (‖W − Ŵ‖ / ‖W‖ vs bf16) on real
43
+ Inkling expert weights:
44
+
45
+ | Scheme | bits/weight | reconstruction error |
46
+ |---|---:|---:|
47
+ | **affine int4** (group 64) | 4.50 | **~9.1%** |
48
+ | nvfp4 (group 16) | 4.50 | ~10.2% |
49
+ | mxfp4 (group 32) | 4.25 | ~12.3% |
50
+
51
+ Affine int4 is the most faithful: it is *asymmetric* (per-group scale **and** zero-point, 16
52
+ uniform levels), which centers on Inkling's near-Gaussian expert weights better than
53
+ symmetric FP4's fixed non-uniform levels. FP4's real payoff is heavy-tailed *activations* and
54
+ native Blackwell FP4 tensor cores — neither helps weight fidelity on Apple Silicon, where MLX
55
+ would dequantize FP4 anyway. So these builds use affine int4.
56
+
57
  ## ⚠️ Loading requires the bundled `inkling_mlx` loader
58
 
59
  The `inkling_mm_model` architecture is **not** in stock `mlx-lm` / `mlx-vlm`, so this