Views
No views yet
A 34%-expert-pruned GLM-5.2, cut directly fromnvidia/GLM-5.2-NVFP4using the exact same REAP keep-168 expert selection as0xSero/GLM-5.2-504B. Whole-expert copy — NVIDIA's NVFP4 weights and scales are preserved bit-for-bit; no re-quantization, no fine-tuning.
0xSero/GLM-5.2-504B,
it is not Router-KD recovered — the router gates here are the original rows sliced down to the kept
experts. Use the recommended sampler guardrail below (it fully recovers pruning-induced looping for free).GlmMoeDsaForCausalLM MoE — 78 layers (3 dense + 75 MoE) + 1 MTP layer,
256 routed experts per layer (top-8) + 1 shared expert, DeepSeek-style MLA attention with a DSA
sparse "indexer," hidden size 6144.n_routed_experts: 168), so it loads and
serves cleanly in vLLM.| Source | nvidia/GLM-5.2-NVFP4 (NVIDIA modelopt NVFP4) |
| Prune method | REAP — saliency = gate_weight × ‖expert_output‖, top-168 kept per layer |
| Expert selection | identical to 0xSero/GLM-5.2-504B (same REAP plan) |
| Recovery | none — raw structural prune (gates sliced, not KD-retrained) |
| Quantization | NVFP4 on routed experts (3–77) + FP8 KV cache, preserved verbatim from NVIDIA; MTP layer 78 BF16 |
| Params | ~504B (34% of routed experts pruned) |
weight, weight_scale, weight_scale_2, input_scale)
travels intact. NVIDIA's quantized values are bit-identical to the source.0..167 and slice the router (gate.weight,
gate.e_score_correction_bias) to the same 168 rows.n_routed_experts is set to 168.1vllm serve 0xSero/GLM-5.2-504B-Nvidia \
2 --tensor-parallel-size 8 \
3 --quantization modelopt_fp4 \
4 --kv-cache-dtype fp8 \
5 --trust-remote-code \
6 --max-model-len 262144</think>-restart loops (the
dominant agent-use failure mode). As established in the GLM-5.2-504B report,
this is fully recoverable at serving time with no retraining via a light sampler guardrail
(measured at n=2000 on the keep-168 cut):min_p=0.05, repetition_penalty=1.05 → gentle, safe default.min_p=0.05, repetition_penalty=1.10 → drops looping to ~2.3% (below the unpruned teacher's raw
3.6%). Start at 1.05; go to 1.10 if you see loops.0xSero/GLM-5.2-504B.| model | source | recovery | use when |
|---|---|---|---|
0xSero/GLM-5.2-504B | 0xSero NVFP4 | Router-KD | you want the evaluated, recovered flagship |
| this model | NVIDIA NVFP4 | none | you want NVIDIA's exact quantization, pruned |
0xSero/GLM-5.2-REAP-504B-GGUF | BF16 | — | llama.cpp / CPU / Metal |
📄 Method, evaluation, and the honest accounting of pruning cost: see the GLM-5.2-504B technical report.
0xSero/GLM-5.2-504B.