GLM-5.3-Flash · exlr8 (K2/K3/K4)
Version v0.2. Layers 3, 20, 43 and 44 store every width, K2, K3 and K4, routed and shared, in the pmcgx codebook (exlr8 FORMAT.md, Codebook), encoded with refinement from the same Hessians. Every other layer uses the mcg codebook, as in v0.1. A loader must decode pmcgx in those four layers' width files. gr8 does, and takes one codebook per layer, so every manifest, mixed ones included, loads as it is.
The vLLM recipe decodes only mcg. Use tag
v0.1(the all-mcg quant) with kindlingai/glm-5.3-flash-exlr8-gx10:hf download kindlingai/glm-5.3-flash-exlr8-k2-k3-k4 --revision v0.1.
A quantization of GLM-5.3-Flash in the exlr8 v2 format, built for NVIDIA GB10-class unified-memory devices (DGX Spark, ASUS GX10) served on one to four boxes. Every routed and shared expert is stored at three trellis widths, K2, K3 and K4, and the serving width is chosen at load time.
These weights cannot be used without E4M3 rounding. A loader must round every value the trellis codebook produces to FP8 E4M3 (round to nearest even, saturating) before applying the side vectors. The encoder searched only over E4M3-rounded values, so the rounding is part of the format: a stock EXL3 decoder, or any decoder that skips the rounding, reads measurably worse weights from the same bytes.
GLM-5.3-Flash is a MoE model: 45 layers (0-2 dense, 3-44 MoE), 288 routed experts with top-8 routing plus one shared expert per MoE layer, an MTP layer 45 and a vision tower. This repository quantizes the routed and shared experts of layers 3-45 and the dense weights of every layer, and carries the vision tower unchanged in BF16.
Engine support
- kindlingai/gr8: KindlingAI's exlr8-native engine for DGX Spark, which serves
this release with
./gr8 glm53fat TP=4 or TP=2 and fetches each box's part from this repository. Flash support is new: one session at a time, MTP with one draft, text only so far. See docs/FLASH.md. - kindlingai/glm-5.3-flash-exlr8-gx10: KindlingAI's vLLM
recipe for GB10 at TP=1, 2, 3 and 4. vLLM with an exlr8 MoE kernel, DFlash2 speculative decoding, the
mentat control plane, and image input at every TP. It decodes only the mcg
codebook, so it needs tag
v0.1, not this version. The numbers below are this recipe's, on v0.1.
The format, and the byte-level description a loader needs, is shared with kindlingai/glm-5.3-exlr8-k2-k3-k4. See Loading for what differs on Flash.
Widths
| width | routed + shared experts | model size | serves at | note |
|---|---|---|---|---|
| K2 | 78.2 GB (2.0 bpw) | 86.3 GB | TP=1 | fits one 128 GB box |
| K3 | 117.3 GB (3.0 bpw) | 125.4 GB | TP=2 | |
| K4 | 156.4 GB (4.0 bpw) | 164.5 GB | TP=3, TP=4 | the validated default |
- Model size is everything one copy loads at that width: the experts of layers 3-45 plus the 8.1 GB of dense, vocabulary and vision files.
- Widths are exact: a K4 layer file is 3,636,527,104 bytes, 289 experts × 3 projections × 4096 × 2048 at 4 bits. NVFP4's experts are 4.25 bpw, so K4 reads about 6% fewer expert bytes per token than the NVFP4 build.
- Each width is an independent, Hessian-aware trellis encode. Codes do not nest between widths, and all three use an E4M3 codebook, so prefill runs on FP8 tensor cores.
Results
Against the NVFP4 build of GLM-5.3-Flash:
- Quality is equal: NLL is +0.0034, +0.0017 and +0.0020 above BF16 on three held-out sets, the same as NVFP4's or slightly lower, and GSM8K scores the same (98%).
- The KV pool is about 15% larger at the same memory, since the expert weights are smaller.
What is in this repository
| content | notes |
|---|---|
experts/exlr8-layer-LLL.kK.safetensors | routed and shared expert trellis halves for layer LLL (003-045) at width K |
experts/exlr8-layer-LLL.index.safetensors | index, side data and checksums for layer LLL |
dense/exlr8-dense-LLL.safetensors | every other weight of layer LLL (000-045) |
dense/exlr8-vocab.safetensors | token embedding, language-model head and final norm |
dense/vision-bf16.safetensors | the vision tower, unquantized BF16 (see Provenance) |
config.json, generation_config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja, processor_config.json | the base model's, unchanged |
manifests/exlr8-manifest-k2.json, -k3, -k4 | every routed and shared expert at one width, in the GLM-5.3 manifest format |
manifests/exlr8-manifest-bit349.json | K3 with K4 where it lowers KL most: about 3.49 bits a routed weight (see below) |
manifests/exlr8-manifest-bit201.json | K2, with 124 routed experts at K3: about 2.01 bits a routed weight (see below) |
index-slices/tp<N>/k<K>/rank<r>.safetensors | what rank r of TP=N needs at width K, for TP 1-4 and K2-K4 (see Index slices) |
hashes/ | a SHA-256 sidecar for every safetensors file, the index slices included |
expert-build-summary.json | per layer: experts, widths, and each file's size and SHA-256 |
Dense matrices by type:
| matrices | encoding |
|---|---|
attention output, q_b_proj, dense MLP (layers 0-2) | trellis K4 |
attention input projections (linear-attention q/k/v, b, f_a/f_b, g_a/g_b; MLA q_a, kv_a), indexer wq_b and wk, MTP eh_proj | MXFP8 |
kv_b_proj | FP8, 128×128 block scales |
| token embedding, language-model head | FP8, per-row scales |
router (mlp.gate), indexer weights_proj, norms, biases | BF16, as shipped |
Loading
The files follow the exlr8 v2 layout in the GLM-5.3 card's Loader section, with Flash's shapes in place of GLM-5.3's:
- Hidden size 4096 (GLM-5.3: 6144) and expert intermediate size 2048, so each projection still has 16 halves of 128 channels. A gate or up half is 4096 × 128 (tiles k16 = 0..255), a down half 128 × 4096 (tile blocks b = 0..31), and each projection carries 32 block scales instead of 48. A half at width K is 65,536 × K bytes.
- 288 routed experts. The shared expert is stored as expert 288 and follows the routed experts.
- Tensor names use the prefix
model.language_model.layers.. - The sharding rule is the same: half h of expert e goes to rank
(16e + h + L) mod Nat TP=N.
Index slices
index-slices/tp<N>/k<K>/rank<r>.safetensors holds, for TP size N (1-4), width K (2-4) and rank r, every half that
rank owns under the sharding rule, so a rank can fetch and load its halves without the layer index files. The layout
is the GLM-5.3 one (Index slices) with
Flash's shapes: per layer, block is F16 [289, 3, 32] (the shared expert as row 288) and signs is I8 [2, 4096].
The metadata also carries the model keys (model, hidden_size, moe_intermediate_size, n_routed_experts,
num_hidden_layers, first_moe_layer, tensor_prefix).
Identifying the weights
The weight set ID names one exact set of weight files: the sha256 of the lines <path> <size> <sha256>, one per
weight file (experts/*.safetensors and dense/*.safetensors, sorted by path, each line ending in a newline). This
release's ID is f726c782b9e6c8bdaddb1614ad25d1ff53a7cbb178d94e8e45f62b961a1c1a52. Every manifest and index slice
carries it as set_id, and every slice also names the sha256 of each index file it was cut from.
Provenance
Built from zai-org/GLM-5.3-Flash-BF16 at revision
a5b45eb41df6402735dedc900be14a42e8d5e538. The configuration, tokenizer, chat template and processor files are that
revision's, byte for byte.
The vision tower in dense/vision-bf16.safetensors holds the 347 model.visual.* tensors of the same checkpoint
(file model-00120-of-00120.safetensors), copied byte for byte under their original names. Each tensor's SHA-256 also
matches the vision tower of the NVFP4 build, which leaves model.visual* unquantized.
Each dense file passed an integrity check and a comparison against BF16 before publication.
Calibration
Encoded with Hessian-aware (LDLQ) rounding against a fixed calibration set of about 2M tokens (2048-token rows; 977 calibration rows and 64 held-out rows from whole unseen documents). GLM-5.3-Flash uses GLM-5.3's tokenizer and chat template, so the set is the same one used for the GLM-5.3 release. The calibration text, activations and Hessians are not part of this repository.
Layers 3, 20, 43 and 44 use the pmcgx codebook, re-encoded from the same Hessians with refinement. The format's three exllamav3-derived primitives (the mcg trellis codebook, the 128×128 Hadamard matrix and the tile packing order) are taken from exllamav3 (MIT) unchanged.
Intended use and limitations
- Serving GLM-5.3-Flash on GB10-class devices at TP=1-4.
- The DFlash2 drafter is not distributed with this checkpoint (its upstream licence does not permit redistribution). A deployment that wants it converts it at load time from the original files.
- On a turn with an image, DFlash2 drafts from the text alone, so draft acceptance can be lower than on text-only turns.
- Not for training. The router, norms and small projections keep their shipped precision because routing is sensitive.
Licence
GLM-5.3-Flash is released by Z.ai under the MIT License, and this quantization stays under it: see LICENSE.
Acknowledgements
exllamav3 made this possible through their original research on the EXL3 format.
Built on Z.ai's GLM-5.3-Flash. The encoder and the format's primitives are derived from exllamav3 0.0.43 (MIT).
Changelog
2026-11-16: v0.2
- Main now holds the pmcgx build, first published 2026-11-08 on branch
pmcgx-l3-l20-l43-l44: layers 3, 20, 43 and 44 store every width, K2, K3 and K4, routed and shared, in the pmcgx codebook. New weight set ID, index slices and manifests. The manifests carry version0.2-pmcgx-l3-l20-l43-l44. - Tag
v0.2names this version. Tagv0.1names the previous main, every layer in the mcg codebook (manifest version0.1), which the vLLM recipe needs.
2026-11-07
- Adds
manifests/exlr8-manifest-bit349.json: K3 with K4 down projections, K4 gate and up in layers 3-12 and a K4 shared expert (about 3.49 bits a routed weight). - Adds
manifests/exlr8-manifest-bit201.json: K2 with 124 routed experts at K3 (about 2.01 bits a routed weight), the ones with the most routing weight at tool-call positions. The weight files are unchanged.
2026-10-24
- The card links gr8, which now serves this release (
./gr8 glm53f), and labels the speed table as the vLLM recipe's. It adds the recipe's KV cache sizes per TP and the NLL figures against BF16.
2026-10-23
- Adds uniform
k2,k3andk4width manifests, index slices for TP 1-4 at K2, K3 and K4 with their hashes, and the weight set ID. The weight files are unchanged.
2026-10-22
- Rewrote this card: widths and sizes, measured speed and quality, file and encoding tables, loader differences from GLM-5.3.
- Corrected the base model to zai-org/GLM-5.3-Flash-BF16 at
a5b45eb. The previous card named a revision of zai-org/GLM-5.3-Flash. The files are unchanged.
2026-10-19
- Added the BF16 vision tower and
processor_config.json.
2026-10-14
Initial release: routed and shared experts of layers 3-45 at K2, K3 and K4; dense and vocabulary files.