Add model card: GPQA-Diamond 88.38 (parity with full precision), NF3-hybrid + mxfp8 tier
Browse files
README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model:
|
| 4 |
+
- zai-org/GLM-5.2
|
| 5 |
+
- lukealonso/GLM-5.2-NVFP4
|
| 6 |
+
base_model_relation: quantized
|
| 7 |
+
tags:
|
| 8 |
+
- glm
|
| 9 |
+
- moe
|
| 10 |
+
- nvfp4
|
| 11 |
+
- nf3
|
| 12 |
+
- mxfp8
|
| 13 |
+
- quantization
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# GLM-5.2-MXFP8-NVFP4-NF3-Hybrid
|
| 17 |
+
|
| 18 |
+
> β οΈ **Usable β read the hazards.** Loads ONLY through the custom serving image below
|
| 19 |
+
> (in-house NF3 3-bit kernel β no official vLLM/inference stack runs it). Serves on
|
| 20 |
+
> 4Γ 96GB sm120 GPUs at **~100k context** (118k max) β NOT the official model's 1M.
|
| 21 |
+
> Not officially supported.
|
| 22 |
+
|
| 23 |
+
**The full GLM-5.2 β 753B, all 256 experts per layer β on 4Γ 96GB GPUs. No pruning.**
|
| 24 |
+
The high-traffic experts ride NVFP4 byte-exact from
|
| 25 |
+
[lukealonso/GLM-5.2-NVFP4](https://huggingface.co/lukealonso/GLM-5.2-NVFP4) (credit to
|
| 26 |
+
Luke for the best-in-class low-KLD 4-bit tier); the long tail is compressed with
|
| 27 |
+
**NF3 β our in-house 3-bit expert format with a matching custom sm120 kernel**. The
|
| 28 |
+
non-expert layers (attention / dense / shared) are **MXFP8** (OCP microscaling FP8,
|
| 29 |
+
built from the BF16 original). ~327 GB total β the only GLM-5.2 that fits 4 cards
|
| 30 |
+
with usable context.
|
| 31 |
+
|
| 32 |
+
## Accuracy
|
| 33 |
+
|
| 34 |
+
Same protocol as the reference cards (temperature 1.0, top_p 0.95, max reasoning
|
| 35 |
+
effort). GPQA-Diamond is measured on **this exact checkpoint**; the remaining axes
|
| 36 |
+
are not yet run.
|
| 37 |
+
|
| 38 |
+
| Precision | GPQA Diamond | SciCode | IFBench | AA-LCR | ΟΒ²-Bench Telecom |
|
| 39 |
+
|---|---|---|---|---|---|
|
| 40 |
+
| baseline (FP8) | 89.52 | 49.85 | 74.95 | 69.38 | 97.9 |
|
| 41 |
+
| NVFP4 (full) | 89.39 | 49.04 | 75.81 | 70.13 | 98.25 |
|
| 42 |
+
| **this model** (326 GB, 4Γ 96GB) | **88.38** | *pending* | *pending* | *pending* | *pending* |
|
| 43 |
+
| *REAP-594B (a prune, for contrast)* | *86.87* | *47.77* | β | β | β |
|
| 44 |
+
|
| 45 |
+
**Read:** on GPQA-Diamond the hybrid scores **88.38 (175/198)** β within ~1 point
|
| 46 |
+
(2 questions) of full-precision FP8/NVFP4, i.e. statistically tied at this sample
|
| 47 |
+
size β while **beating the REAP-594B prune by ~1.5 points**. That's the whole point
|
| 48 |
+
of the build: *keeping* all 256 experts at mixed precision holds parity where
|
| 49 |
+
*pruning* experts measurably loses ground. Baselines: nvidia/GLM-5.2-NVFP4 card.
|
| 50 |
+
|
| 51 |
+
## Output drift (KLD)
|
| 52 |
+
|
| 53 |
+
A *sameness* measure vs the official FP8 (how far outputs move), not a quality
|
| 54 |
+
ranking. Our re-quantization of the NF3 tail from the **BF16 original** (not an
|
| 55 |
+
already-quantized checkpoint) put this at **KL β 0.172** (JS 0.035, 1.05M prefill
|
| 56 |
+
positions, top-8192 support) β the drift lives in confidence on near-ties; token
|
| 57 |
+
argmax matches FP8 ~99.98% of the time. The MXFP8 non-expert tier is quality-
|
| 58 |
+
equivalent to the prior FP8-tier build (identical experts; only the ~8-bit
|
| 59 |
+
non-expert layers changed, to finer per-32 microscaling).
|
| 60 |
+
|
| 61 |
+
## Serving
|
| 62 |
+
|
| 63 |
+
Ready-to-run image with the NF3 kernel + hybrid loader baked in:
|
| 64 |
+
[`madeby561/vllm-glm52-nvfp4-nf3-hybrid`](https://hub.docker.com/r/madeby561/vllm-glm52-nvfp4-nf3-hybrid).
|
| 65 |
+
The `docker-compose.yml` in this repo is the exact serving configuration β
|
| 66 |
+
`hf download` the weights, `MODEL_DIR=<dir> docker compose up`. Needs 4Γ 96GB sm120
|
| 67 |
+
GPUs + ~64GB RAM. 118k context, MTP-5, DCP4.
|
| 68 |
+
|
| 69 |
+
*By madeby561 β built to answer one question: can a 4-card box run the full model
|
| 70 |
+
with no lobotomy? On GPQA-Diamond, the answer is yes.*
|