Rewrite card: plain-English explanation, size-picker table, KL explained
Browse files
README.md
CHANGED
|
@@ -16,58 +16,52 @@ tags:
|
|
| 16 |
|
| 17 |
# GLM-5.3-569B — REAP keep-192 (EXL3 3.0bpw)
|
| 18 |
|
| 19 |
-
|
| 20 |
-
> **EXL3 3.0 bpw** for **223 GB** on disk — fits on three 96 GB GPUs. The flagship cut of the
|
| 21 |
-
> GLM-5.3 REAP-EXL3 series.
|
| 22 |
|
| 23 |
-
|
| 24 |
-
largest share of any single domain's routed mass, so every domain's specialist experts survive. At a
|
| 25 |
-
fixed 192 experts this beats stock REAP's frequency-blind mean criterion by a wide margin — argmax
|
| 26 |
-
agreement 0.822 vs 0.775, KLD cut by a third.
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|---|---|
|
| 30 |
-
| Base | zai-org/GLM-5.3-BF16 → EXL3 3.0 bpw (exllamav3, head 6-bit, MTP 4-bit, `--hq`) |
|
| 31 |
-
| Prune | REAP, keep-192/256, all 75 MoE layers + MTP, routers sliced |
|
| 32 |
-
| Size | 223 GB |
|
| 33 |
-
| KL vs BF16 | **0.361 nats** (argmax agreement 0.822; prose 0.560 / code 0.202 / multilingual 0.258) |
|
| 34 |
|
| 35 |
-
##
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|---|---:|---|
|
| 39 |
-
| GPQA Diamond | **85.4%** | 169/198, uncapped reasoning; Physics 96.5% / Chemistry 79.6% / Biology 63.2% |
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
| repo | experts | size | KL vs BF16 |
|
| 44 |
|---|---|---|---|
|
| 45 |
-
| [
|
| 46 |
-
|
|
| 47 |
-
| [
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
|
| 50 |
|
| 51 |
-
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
| 56 |
-
- **[Cerebras Research](https://github.com/CerebrasResearch/reap)** for REAP (Router-weighted Expert Activation Pruning), the pruning method — [arXiv:2510.13999](https://arxiv.org/abs/2510.13999).
|
| 57 |
-
- **[turboderp / exllamav3](https://github.com/turboderp-org/exllamav3)** for the EXL3 trellis quantization format and runtime.
|
| 58 |
|
| 59 |
-
|
| 60 |
|
| 61 |
-
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
}
|
| 69 |
```
|
|
|
|
| 70 |
|
| 71 |
-
##
|
| 72 |
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# GLM-5.3-569B — REAP keep-192 (EXL3 3.0bpw)
|
| 18 |
|
| 19 |
+
**GLM-5.3 with 25% of its experts removed and the rest quantized to ~3-bit — 223 GB, so it runs on 3x 96 GB instead of the ~1.5 TB the full model needs, with a small, measured drop in fidelity.**
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
## What this is
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
GLM-5.3 is a 753B mixture-of-experts model: each token is routed to 8 of 256 expert sub-networks per layer, so only ~40B parameters are active at once. Most of those 256 experts are rarely the best choice. **REAP** (Router-weighted Expert Activation Pruning) scores how much each expert actually contributes and deletes the least useful ones outright — no retraining. This cut keeps **192 of 256** experts per layer. The survivors are then quantized to **EXL3 3.0 bpw**; attention, the shared expert, and the router stay full-precision BF16. The result loads in 223 GB and answers almost identically to the original.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
## Which size should I pick?
|
| 26 |
|
| 27 |
+
Every row is the same model at a different quality/size trade-off — fewer experts is smaller and faster but further from the original:
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
| Variant | Experts kept | Size | KL vs BF16 (lower = closer) |
|
|
|
|
|
|
|
| 30 |
|---|---|---|---|
|
| 31 |
+
| [base (unpruned)](https://huggingface.co/0xSero/GLM-5.3-EXL3-3.0bpw) | 256 (all) | 293 GB | 0.089 |
|
| 32 |
+
| [661B](https://huggingface.co/0xSero/GLM-5.3-661B-EXL3-3.0bpw) | 224 / 256 | 258 GB | 0.195 |
|
| 33 |
+
| [615B](https://huggingface.co/0xSero/GLM-5.3-615B-EXL3-3.0bpw) | 208 / 256 | 240 GB | 0.283 |
|
| 34 |
+
| **569B** (this) | 192 / 256 | 223 GB | 0.361 |
|
| 35 |
+
| [533B](https://huggingface.co/0xSero/GLM-5.3-533B-EXL3-3.0bpw) | 180 / 256 | 210 GB | 0.428 |
|
| 36 |
+
| [500B](https://huggingface.co/0xSero/GLM-5.3-500B-EXL3-3.0bpw) | 168 / 256 | 197 GB | 0.511 |
|
| 37 |
|
| 38 |
+
This cut fits **3x 96 GB**. If you have the VRAM, move up the table — each step keeps more experts and lands closer to the original.
|
| 39 |
|
| 40 |
+
## How close to the original is it?
|
| 41 |
|
| 42 |
+
**KL divergence vs full BF16: 0.361 nats**, measured token-by-token over a sealed 25-prompt panel across the full 154k-token vocabulary. KL divergence is the standard “how differently do these two models predict” score: **0 = identical**, lower = closer. For scale: the *unpruned* base scores 0.089, and this cut still reproduces the full model’s single most-likely next token about 82% of the time.
|
| 43 |
|
| 44 |
+
All cuts are measured the same way in the [fidelity study](https://huggingface.co/datasets/0xSero/glm-5.3-reap-fidelity-study).
|
|
|
|
|
|
|
| 45 |
|
| 46 |
+
## Why these experts (and not the popular ones)
|
| 47 |
|
| 48 |
+
Naive pruning keeps the experts that fire *most often* — which quietly deletes the specialists that a single domain (code, a rare language, structured output) leans on. This series instead scores each expert by its **largest share of any one domain’s routed work** (“max-over-domain”), so every domain keeps its specialists even when they’re globally rare. On the same panel this beats frequency-based pruning by a wide margin — the head-to-head is in the [fidelity study](https://huggingface.co/datasets/0xSero/glm-5.3-reap-fidelity-study).
|
| 49 |
|
| 50 |
+
## Running it
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
pip install exllamav3 # or run via TabbyAPI
|
| 54 |
+
# download this repo, then tensor-split it across your GPUs in TabbyAPI/exllamav3
|
|
|
|
| 55 |
```
|
| 56 |
+
Built for Blackwell / any CUDA GPUs with enough combined VRAM (3x 96 GB).
|
| 57 |
|
| 58 |
+
## Credits
|
| 59 |
|
| 60 |
+
- **[Z.AI / zai-org](https://huggingface.co/zai-org)** — [GLM-5.3](https://huggingface.co/zai-org/GLM-5.3), the base model.
|
| 61 |
+
- **[Cerebras Research](https://github.com/CerebrasResearch/reap)** — REAP ([arXiv:2510.13999](https://arxiv.org/abs/2510.13999)).
|
| 62 |
+
- **[turboderp / exllamav3](https://github.com/turboderp-org/exllamav3)** — the EXL3 format and runtime.
|
| 63 |
+
|
| 64 |
+
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.
|
| 65 |
+
|
| 66 |
+
## License
|
| 67 |
+
Inherits the [GLM-5.3 license](https://huggingface.co/zai-org/GLM-5.3).
|