Rewrite card: plain explanation, size-picker, KL explained
Browse files
README.md
CHANGED
|
@@ -7,8 +7,8 @@ tags:
|
|
| 7 |
- glm
|
| 8 |
- glm-5.3
|
| 9 |
- moe
|
| 10 |
-
- awq
|
| 11 |
- w4a16
|
|
|
|
| 12 |
- int4
|
| 13 |
- compressed-tensors
|
| 14 |
- reap
|
|
@@ -19,49 +19,46 @@ tags:
|
|
| 19 |
> [!TIP]
|
| 20 |
> **[Support this work →](https://donate.sybilsolutions.ai)** · [X](https://x.com/0xsero) · [GitHub](https://github.com/0xsero) · [REAP paper](https://arxiv.org/abs/2510.13999) · [Cerebras REAP](https://huggingface.co/collections/cerebras/cerebras-reap)
|
| 21 |
|
| 22 |
-
# GLM-5.3-504B — REAP keep-168 (W4A16 /
|
| 23 |
|
| 24 |
-
|
| 25 |
-
> (compressed-tensors, AWQ), built for **Hopper (4x H200)** serving in vLLM / SGLang.
|
| 26 |
|
| 27 |
-
|
| 28 |
-
with a **domain-protective max-over-domain saliency criterion** (each expert scored by its largest share of
|
| 29 |
-
any single domains routed mass, so every domains specialist experts survive). Whole experts are dropped,
|
| 30 |
-
kept experts renumbered, and the routers + MTP layer sliced to match.
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|---|---|
|
| 34 |
-
| Base | [cyankiwi/GLM-5.3-AWQ-INT4](https://huggingface.co/cyankiwi/GLM-5.3-AWQ-INT4) (compressed-tensors INT4 / AWQ) |
|
| 35 |
-
| Prune | REAP, keep-168/256 (max-over-domain routed-mass saliency), all 75 MoE layers + MTP |
|
| 36 |
-
| Format | INT4 W4A16, compressed-tensors (Marlin MoE kernel in vLLM) |
|
| 37 |
-
| KL vs BF16 | **0.506 nats** (95% CI 0.403-0.607; 25-window full-vocabulary panel vs GLM-5.3-BF16) |
|
| 38 |
|
| 39 |
-
|
| 40 |
-
This is the Hopper-servable sibling of [`GLM-5.3-504B-EXL3-3.0bpw`](https://huggingface.co/0xSero/GLM-5.3-504B-EXL3-3.0bpw).
|
| 41 |
|
| 42 |
-
##
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
-
##
|
| 49 |
|
| 50 |
-
- **
|
| 51 |
-
- **[cyankiwi](https://huggingface.co/cyankiwi)** for the [GLM-5.3-AWQ-INT4](https://huggingface.co/cyankiwi/GLM-5.3-AWQ-INT4) W4A16 base quantization this prune is built on.
|
| 52 |
-
- **[Cerebras Research](https://github.com/CerebrasResearch/reap)** for REAP (Router-weighted Expert Activation Pruning) — [arXiv:2510.13999](https://arxiv.org/abs/2510.13999).
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
-
|
| 57 |
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
year = {{2025}}, eprint = {{2510.13999}}, archivePrefix = {{arXiv}}
|
| 63 |
-
}
|
| 64 |
```
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
## License
|
| 67 |
-
|
|
|
|
| 7 |
- glm
|
| 8 |
- glm-5.3
|
| 9 |
- moe
|
|
|
|
| 10 |
- w4a16
|
| 11 |
+
- awq
|
| 12 |
- int4
|
| 13 |
- compressed-tensors
|
| 14 |
- reap
|
|
|
|
| 19 |
> [!TIP]
|
| 20 |
> **[Support this work →](https://donate.sybilsolutions.ai)** · [X](https://x.com/0xsero) · [GitHub](https://github.com/0xsero) · [REAP paper](https://arxiv.org/abs/2510.13999) · [Cerebras REAP](https://huggingface.co/collections/cerebras/cerebras-reap)
|
| 21 |
|
| 22 |
+
# GLM-5.3-504B — REAP keep-168 (W4A16 / INT4)
|
| 23 |
|
| 24 |
+
**GLM-5.3 with 34% of its experts removed, at INT4 — 328 GB, built to serve on 4× H200 (Hopper) in vLLM or SGLang.**
|
|
|
|
| 25 |
|
| 26 |
+
## What this is
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
+
GLM-5.3 is a 753B mixture-of-experts model: each token uses 8 of 256 expert sub-networks per layer (~40B active). **REAP** (Router-weighted Expert Activation Pruning) scores each expert’s real contribution and deletes the least useful ones — no retraining. This cut keeps **168 of 256** experts per layer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
+
The experts are then INT4 **W4A16** (compressed-tensors, AWQ), taken from the [cyankiwi/GLM-5.3-AWQ-INT4](https://huggingface.co/cyankiwi/GLM-5.3-AWQ-INT4) base. Only the routed experts are 4-bit; attention, the shared expert, the dense layers, and the head stay BF16. vLLM auto-selects the Marlin MoE kernel.
|
|
|
|
| 31 |
|
| 32 |
+
## Which one, and what about Blackwell?
|
| 33 |
|
| 34 |
+
| Variant | Experts kept | Size | KL vs BF16 |
|
| 35 |
+
|---|---|---|---|
|
| 36 |
+
| **504B** (this) | 168 / 256 | 328 GB | 0.506 |
|
| 37 |
+
| [569B](https://huggingface.co/0xSero/GLM-5.3-569B-W4A16) | 192 / 256 | 372 GB | 0.357 |
|
| 38 |
+
|
| 39 |
+
This W4A16 build is the **Hopper-servable** sibling of the EXL3 series. On Blackwell or consumer GPUs use the EXL3 equivalent instead — [`GLM-5.3-500B-EXL3-3.0bpw`](https://huggingface.co/0xSero/GLM-5.3-500B-EXL3-3.0bpw), which measures the same fidelity (0.511).
|
| 40 |
|
| 41 |
+
## How close to the original is it?
|
| 42 |
|
| 43 |
+
**KL divergence vs full BF16: 0.506 nats** (sealed 25-prompt panel, full 154k vocabulary). KL is the standard “how differently do these two models predict” score — **0 = identical**, lower = closer. Notably this is essentially the same as the EXL3 cut at the same expert count (0.511): **the pruning drives the fidelity, the quant format barely moves it.** Full numbers: [fidelity study](https://huggingface.co/datasets/0xSero/glm-5.3-reap-fidelity-study).
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+
## Why these experts
|
| 46 |
|
| 47 |
+
Instead of keeping the globally most-frequent experts (which deletes a domain’s specialists), each expert is scored by its **largest share of any single domain’s routed work**, so every domain — code, rare languages, structured output — keeps its specialists. Head-to-head vs frequency pruning: [fidelity study](https://huggingface.co/datasets/0xSero/glm-5.3-reap-fidelity-study).
|
| 48 |
|
| 49 |
+
## Serving (vLLM, 4× H200)
|
| 50 |
+
|
| 51 |
+
```bash
|
| 52 |
+
vllm serve 0xSero/GLM-5.3-504B-W4A16 --tensor-parallel-size 4 --trust-remote-code --max-model-len 131072
|
|
|
|
|
|
|
| 53 |
```
|
| 54 |
|
| 55 |
+
## Credits
|
| 56 |
+
|
| 57 |
+
- **[Z.AI / zai-org](https://huggingface.co/zai-org)** — [GLM-5.3](https://huggingface.co/zai-org/GLM-5.3), the base model.
|
| 58 |
+
- **[cyankiwi](https://huggingface.co/cyankiwi)** — the [GLM-5.3-AWQ-INT4](https://huggingface.co/cyankiwi/GLM-5.3-AWQ-INT4) W4A16 base this prune is built on.
|
| 59 |
+
- **[Cerebras Research](https://github.com/CerebrasResearch/reap)** — REAP ([arXiv:2510.13999](https://arxiv.org/abs/2510.13999)).
|
| 60 |
+
|
| 61 |
+
Observations: [`glm-5.3-reap-observations-v1`](https://huggingface.co/datasets/0xSero/glm-5.3-reap-observations-v1) · Fidelity study: [`glm-5.3-reap-fidelity-study`](https://huggingface.co/datasets/0xSero/glm-5.3-reap-fidelity-study) · Built on 8× NVIDIA RTX PRO 6000 Blackwell.
|
| 62 |
+
|
| 63 |
## License
|
| 64 |
+
Inherits the [GLM-5.3 license](https://huggingface.co/zai-org/GLM-5.3).
|