0xSero/glm-5.3-reap-fidelity-study

Dataset

GLM-5.3 REAP Fidelity Study

0

9 commits

3 linked in READMEs

updated Sep 8, 2026

See the code
evaluation
expert-pruning
kl-divergence
mixture-of-experts
reap

README

GLM-5.3 REAP Fidelity Study

The evidence behind the GLM-5.3 REAP model series: how each pruned cut was measured, and why it prunes the way it does.

What we measured, and how

Every number here is KL divergence vs the full BF16 model — a token-by-token “how differently do these two models predict the next token” score over a sealed 25-prompt panel across the full 154,880-token vocabulary. 0 = identical, lower = closer. It is a far more sensitive test than benchmark accuracy: it catches quality loss long before a leaderboard would.

Finding 1 — which experts to keep matters more than anything

Pruning to the same size (keep 192 of 256 experts), only changing how experts are ranked:

CriterionKL vs BF16
max-over-domain (massmax)0.361← used by the series
domain-balanced0.399
reap × max-over-domain0.406
mean routed mass0.569
frequency only0.635the “obvious” choice
random0.685
stock REAP (frequency-blind mean)0.889

Ranking experts by their largest share of any single domain’s work (so every domain keeps its specialists) beats the frequency-based choice almost 2×. That is the whole idea behind the series.

Finding 2 — the size ladder

Same criterion, different number of experts kept:

CutExpertsKL vs BF16
base (unpruned, 3-bit)2560.089
661B2240.195
615B2080.283
569B1920.361
533B1800.428
500B1680.511

Finding 3 — the prune dominates the quant format

At the same expert count, EXL3 (3-bit) and W4A16 (INT4) land in the same place — 0.361 vs 0.357 at keep-192, 0.511 vs 0.506 at keep-168. The pruning drives the fidelity; the quant format barely moves it. So pick the format your hardware wants (EXL3 for Blackwell/consumer, W4A16 for Hopper) and choose the size by how much fidelity you can spend.

Contents

  • kld/ — every KL run: the criterion sweep, the size ladder, EXL3 vs W4A16, NVFP4.
  • plans/ — the exact kept-expert lists per layer.
  • gpqa/ — GPQA-Diamond runs for spot-checking downstream accuracy.
  • panel.json, frontier_table.txt, *_summary.json — the sealed eval panel and roll-ups.

Inputs come from glm-5.3-reap-observations-v1.

Credits

Contributors

0xSero

9 commits

0xSero/glm-5.3-reap-fidelity-study

Dataset

GLM-5.3 REAP Fidelity Study

0

9 commits

3 linked in READMEs

updated Sep 8, 2026

See the code
evaluation
expert-pruning
kl-divergence
mixture-of-experts
reap

README

GLM-5.3 REAP Fidelity Study

The evidence behind the GLM-5.3 REAP model series: how each pruned cut was measured, and why it prunes the way it does.

What we measured, and how

Every number here is KL divergence vs the full BF16 model — a token-by-token “how differently do these two models predict the next token” score over a sealed 25-prompt panel across the full 154,880-token vocabulary. 0 = identical, lower = closer. It is a far more sensitive test than benchmark accuracy: it catches quality loss long before a leaderboard would.

Finding 1 — which experts to keep matters more than anything

Pruning to the same size (keep 192 of 256 experts), only changing how experts are ranked:

CriterionKL vs BF16
max-over-domain (massmax)0.361← used by the series
domain-balanced0.399
reap × max-over-domain0.406
mean routed mass0.569
frequency only0.635the “obvious” choice
random0.685
stock REAP (frequency-blind mean)0.889

Ranking experts by their largest share of any single domain’s work (so every domain keeps its specialists) beats the frequency-based choice almost 2×. That is the whole idea behind the series.

Finding 2 — the size ladder

Same criterion, different number of experts kept:

CutExpertsKL vs BF16
base (unpruned, 3-bit)2560.089
661B2240.195
615B2080.283
569B1920.361
533B1800.428
500B1680.511

Finding 3 — the prune dominates the quant format

At the same expert count, EXL3 (3-bit) and W4A16 (INT4) land in the same place — 0.361 vs 0.357 at keep-192, 0.511 vs 0.506 at keep-168. The pruning drives the fidelity; the quant format barely moves it. So pick the format your hardware wants (EXL3 for Blackwell/consumer, W4A16 for Hopper) and choose the size by how much fidelity you can spend.

Contents

  • kld/ — every KL run: the criterion sweep, the size ladder, EXL3 vs W4A16, NVFP4.
  • plans/ — the exact kept-expert lists per layer.
  • gpqa/ — GPQA-Diamond runs for spot-checking downstream accuracy.
  • panel.json, frontier_table.txt, *_summary.json — the sealed eval panel and roll-ups.

Inputs come from glm-5.3-reap-observations-v1.

Credits

Contributors

0xSero

9 commits