GLM-5.3-DERISKED-Cyber-GR8-K4, by Mia's AI Lab
Mia's AI Lab's EXLR8 quantization of
Blackfrost-Research/GLM-5.3-DERISKED-BF16
for the gr8 engine. It is the full 78-layer GLM-5.3 (GlmMoeDsaForCausalLM,
DSA attention, 256 routed experts plus a shared expert, native MTP layer 78).
Every routed and shared expert, in layers 3-78 including the MTP layer, is stored at K4 (4 bits a weight, mul1 codebook rounded to FP8 E4M3). The experts of layers 3-77 were quantized with our own calibration set, described below.
| Size | 399.9 GB (372.5 GiB), 243 files |
| Experts, layers 3-78 | EXLR8 v2 trellis, K4 only, mul1 0x83DCD12D with E4M3 rounding |
| Manifest | manifests/exlr8-manifest-gr8q-k4.json (gr8q-k4, all K4) |
| Index slices | TP=4 (index-slices/tp4/k4/rank0..3) |
| Serves on | 4x DGX Spark with gr8, TP=4, about 93 GB of weights a rank |
What is in the checkpoint
| Part | Format | Source |
|---|---|---|
| Routed experts, layers 3-77 (gate, up, down) | EXLR8 trellis K4: shared hidden-side signs per layer, one FP16 scale per 128 hidden channels, per-channel intermediate scales | the FP8 release (E4M3, 128x128 block scales) |
| Shared experts, layers 3-77 | EXLR8 trellis K4 (gr8's shared-expert slot) | the FP8 release |
| MTP layer 78, routed and shared experts | EXLR8 trellis K4, uncalibrated | the BF16 release |
q_a_proj, kv_a_proj_with_mqa, indexer wq_b / wk, eh_proj |
MXFP8 (round to nearest, one power-of-two scale per 32 inputs), as gr8 requires | the BF16 release |
q_b_proj, kv_b_proj, o_proj, dense MLPs (layers 0-2), router, indexer weights_proj |
BF16, copied | the BF16 release |
embed_tokens, lm_head ([154880, 6144]), final norm |
BF16, copied (dense/exlr8-vocab.safetensors) |
the BF16 release |
| Tokenizer, chat template, generation config | the FP8 release |
Unlike Kindling's GLM-5.3 EXLR8 release, this repository stores only K4. Manifests that ask for K2 or K3 units do not load against it. Use the included manifest.
hashes/<path>.sha256 holds <sha256> <bytes> for every file (expert files without the experts/ prefix).
The manifest's set_id is 61c5d19c009feb5e73a7cf36a4b9165f4a5f3e78e491f86e9af708a8ce0e99a9.
How it was made
- Quantizer: exllamav3 at
8c593e4ewith local changes for the EXLR8 form: mul1 codebook values rounded to E4M3 inside the Viterbi search and every decode path, block-128 hidden-side scales (gate/up input, down output), one sign vector per layer shared by all 256 experts and the shared expert. Hessians come from upstream's implementation, with output scales. - The MTP layer's experts (layer 78) are quantized without calibration (identity Hessian), because the converter's calibration pass stops at layer 77. Their mean relative error is 0.067.
- Sources: BF16 release at
45e8d608, FP8 release ate84d7fe5. - Post-pack check: decoded weights of experts 0, 255 and the shared expert in layers 40, 77 and 78 compared with the source give a relative error of 0.067-0.073 per projection, the expected range for K4. Index preflight passed for all 76 MoE layers.
- Calibration: our own English hybrid set, 523 rows of up to 4,096 tokens, 786,243 tokens in total
(SHA-256
5ba3b953...):
| Category | Tokens |
|---|---|
| Repository coding | 260,856 |
| Tool-call exchanges | 196,608 |
| Math reasoning | 65,536 |
| Algorithmic coding | 65,536 |
| Multi-turn chat | 65,536 |
| English reference text | 61,440 |
| Defensive security | 35,098 |
| Offensive security | 34,428 |
| Coding workflows | 1,205 |
Fidelity
To be published: top-20 partition KL against the Derisked BF16 model on the GLM-5.3 eval suite's 72-window and 8K code panels.
Use
Four DGX Sparks with the official gr8 image (tested with ghcr.io/kindlingai/gr8:v1.1.1) and Kindling's
glm53-4x-spark compose file. Place this repository at the model cache path on each box (each rank needs only its
own share) and point the launcher at it:
GR8_MODEL=glm53
MODEL=/var/lib/gr8/cache/gr8q-k4
VARIANT=/var/lib/gr8/cache/gr8q-k4/manifests/exlr8-manifest-gr8q-k4.json
DFLASH=0 # the DFlash2 drafter was trained on stock GLM-5.3; draft with the release's own MTP layer
KV_FORMAT=int4 # an FP8 KV pool ran out of memory at start on 128 GB Sparks
MOE_UNION_CAP=0
CAP=131072 # 196,608 also serves, with only 1.6-2.4 GiB left a box
Unpatched gr8 v1.1.1 keeps the BF16 embedding as stored but re-rounds lm_head to MXFP8 at load.
License
The base model is released under the GLM-5.3 License by Z.AI (LICENSE, kept unchanged in this repository).
This quantization is distributed under the same terms. Recipients are responsible for complying with the upstream
terms of Z.AI and of the Blackfrost-Research release.
Credits
- Base model: Z.AI, GLM-5.3 (GLM-5.3 License).
- Derisked fine-tune: Blackfrost-Research.
- Trellis codec: exllamav3 by turboderp (MIT).
- EXLR8 format and gr8 engine: Kindling.