glm-5.3-exlr8-k2-k3-k4
kindlingai/glm-5.3-exlr8-k2-k3-k4
- 作者
- kindlingai
- 任务
- 文本生成
- 下载量
- 1,698,868
- 点赞数
- 31
- 趋势分
- 1
- 许可证
- other
- 收录时间
- 2026/11/25
license: other license_name: glm-5.3 license_link: LICENSE base_model: zai-org/GLM-5.3-BF16 tags:
- quantized
- exl3
- trellis
- moe
- glm
- tensor-parallel
- gb10 pipeline_tag: text-generation
GLM-5.3 · exlr8 (K2/K3/K4)
Version 0.7 (git tag v0.7). See the changelog. Weight set ID:
3d1a293399f0077e27acd18609ee67f33f8e3f8b5963a7c4b42b7dc16ecd1d98.
Also mirrored on ModelScope: kindlingai/glm-5.3-exlr8-k2-k3-k4.
A quantization of GLM-5.3 (744B MoE: 256 routed experts × 75 MoE layers plus the MTP layer 78, dense layers 0-2) in the exlr8 v2 format, built for NVIDIA GB10-class unified-memory devices served at tensor-parallel sizes 3-7.
Every routed expert is stored at three widths (K2, K3 and K4) in the mul1 trellis codebook, and a width profile chooses which one each expert loads, at load time. The format itself (the trellis encoding, the E4M3 rounding every loader must apply, the file layout, index slices and weight set IDs) is documented in FORMAT.md at kindlingai/exlr8, along with a reference loader.
Engine support
KindlingAI:
- kindlingai/gr8: the exlr8-native engine for GLM-5.3 on 3-6 DGX Sparks (GB10). It fetches each box's part of this repository and serves it at TP=3 and 4.
- kindlingai/exlr8: the format and a pure-PyTorch reference loader, for checking a loader or kernel against known-good weights.
Other engines:
- ashhart/TensorFold: a fast cross-platform inference engine.
- GordoAR/MLXLR8: an EXLR8 engine for Metal by Andrew Gordon.
What is in this repository
| content | notes |
|---|---|
experts/ | routed and shared expert weights at each width, with one index file per layer |
dense/ | the dense weights, and the vocabulary file with the embedding and lm_head in BF16 |
tools/card.py, assets/card.json | regenerate this card's profile table, profile descriptions and charts from the manifests and the measured KL |
manifests/exlr8-manifest-bitNNN.json | the width profiles below |
index-slices/ | what each rank of TP=3 to 7 needs at each width |
hashes/ | sha256 and size of each safetensors file |
config.json, generation_config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja | the base model's, unchanged, from zai-org/GLM-5.3-BF16 at 9d2398f |
Width profiles
A width profile is a manifest: it says which width each routed expert loads at. Every profile reads the same files,
so switching profiles is a load-time choice, with no new download beyond the widths it uses. A profile's name gives
its average bits per routed weight (bit322 = 3.22).
These KL numbers come from our own full-vocabulary test, which is tougher than the short panels most GLM-5.3
quantizations report: it scores long held-out documents (base64, hashes and IDs included, and agent sessions with
tool calls and tool output) and wikitext. On the four-window panel that other GLM-5.3 cards use, the same profiles
score far lower (bit325 in 0.5: 0.025 mean). The numbers are only useful for comparing quantizations measured on
this same test.
| profile | routed bits per weight | model size | expert weights per box, TP=4 / TP=3 | KL vs BF16, model-written text: mean / median | held-out text, every position: mean / median | wikitext: mean / median |
|---|---|---|---|---|---|---|
bit200 | 2.00 | 199 GB | 47 / 62 GB | 0.248 / 0.0440 | 0.267 / 0.0397 | 0.367 / 0.0728 |
bit227 | 2.27 | 223 GB | 53 / 70 GB | 0.177 / 0.0304 | 0.236 / 0.0321 | 0.247 / 0.0427 |
bit240 | 2.40 | 235 GB | 56 / 74 GB | 0.146 / 0.0244 | 0.218 / 0.0270 | 0.199 / 0.0327 |
bit262 | 2.62 | 255 GB | 61 / 81 GB | 0.107 / 0.0163 | 0.190 / 0.0192 | 0.147 / 0.0221 |
bit271 | 2.71 | 263 GB | 63 / 84 GB | 0.095 / 0.0142 | 0.175 / 0.0166 | 0.133 / 0.0196 |
bit280 | 2.80 | 271 GB | 65 / 86 GB | 0.086 / 0.0125 | 0.166 / 0.0147 | 0.121 / 0.0175 |
bit300 | 3.00 | 290 GB | 69 / 92 GB | 0.071 / 0.0106 | 0.156 / 0.0131 | 0.098 / 0.0139 |
bit322 | 3.22 | 310 GB | 74 / 99 GB | 0.058 / 0.0088 | 0.149 / 0.0118 | 0.076 / 0.0105 |
bit340 | 3.40 | 326 GB | 78 / 104 GB | 0.050 / 0.0076 | 0.141 / 0.0105 | 0.065 / 0.0089 |
bit387 | 3.87 | 368 GB | 89 / 118 GB | 0.039 / 0.0058 | 0.125 / 0.0079 | 0.051 / 0.0068 |
bit400 | 4.00 | 380 GB | 92 / 122 GB | 0.038 / 0.0057 | 0.124 / 0.0079 | 0.050 / 0.0067 |
Model size counts every routed and shared expert at the profile's widths plus 12.5 GB of dense and vocabulary weights.
What each profile is:
bit200: Every routed expert at K2.bit227: Gate and up at K3 in layers 48-62 and K2 elsewhere; down at K3 in layers 38-67 and K2 elsewhere.bit240: Gate and up at K3 in layers 43-67 and K2 elsewhere; down at K2 in layers 3-27 and 68-77 and K3 elsewhere.bit262: Gate and up at K2 in layers 3-32 and K3 elsewhere; down at K2 in layers 3-22 and 73-77 and K3 elsewhere.bit271: Gate and up at K2 in layers 3-27 and K3 elsewhere; down at K2 in layers 3-12 and 73-77 and K3 elsewhere.bit280: Gate and up at K2 in layers 3-22 and K3 elsewhere; down at K2 in layers 3-12, K4 in layers 48-52 and K3 elsewhere.bit300: Gate and up at K2 in layers 3-17, K4 in layers 58-62 and K3 elsewhere; down at K2 in layers 8-12, K4 in layers 43-67 and K3 elsewhere.bit322: Gate and up at K2 in layers 3-17, K4 in layers 48-72 and K3 elsewhere; down at K4 in layers 38-67 and K3 elsewhere.bit340: Gate and up at K2 in layers 3-12, K3 in layers 13-37 and 73-77 and K4 elsewhere; down at K3 in layers 3-32 and 73-77 and K4 elsewhere.bit387: Gate and up at K3 in layers 3-12 and K4 elsewhere; down at K3 in layers 3-12 and K4 elsewhere.bit400: Every routed expert at K4.
How to read it:
- Model size is everything a full copy of the profile loads: all routed and shared experts at the profile's widths, plus the dense and vocabulary files. Expert weights per box is the busiest box's share of the experts at that tensor-parallel size, before the KV cache.
- KL is the full-vocabulary KL divergence of each next-token distribution from the BF16 model's, averaged over teacher-forced text: 64 held-out rows of 2,048 tokens from documents the calibration never saw, 4 panel windows, and 32 rows of wikitext-2. Lower is better. The median shows the typical token, the mean the tail.
- Model-written text is the headline: the positions whose next token a model wrote, meaning assistant turns and
plain documents (wikitext included). It leaves out tool results, system prompts and user turns, 23% of the
positions. The model never writes those tokens, and their KL is mostly how well it guesses arbitrary terminal output,
tracebacks and file contents: on
bit400, tool results are 17% of the held-out positions and carry about 70% of the held-out KL. How well the model reads them still counts, through the assistant turns that follow. - Held-out text, every position scores all 131,072 positions of the 64 held-out rows, tool results included, as 0.5 and 0.6 reported. Wikitext is its 65,536 positions alone.
- The means look high next to dense models' numbers, and that is the model, not the format. GLM-5.3's top-8 routing turns small numeric differences into different experts: two BF16 runs that differ only in their batching score mean 0.11 (median 0.004) against each other on 32,768 positions of the held-out text. Compare profiles with each other, and compare other quantizations only on the same harness: an EXL3 3.25 bpw quantization with a per-expert split of 64 experts at 4 bits and 192 at 3 per layer (davidsyoung/GLM-5.3-EXL3-TR3-3.25bpw) scores 0.161 on the held-out text, every position, here.
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). The calibration text, activations and Hessians are not part of this repository.
Known results so far
- Full-vocabulary KL against BF16 for every profile: see Width profiles.
bit300, which mixes K2, K3 and K4 across its layers, andbit400serve in gr8 at TP=4 with the glm-5.3-exlr8-k4-4x-spark recipe's engine: the smoke test passes (14 checks, tool calls included).- On the 0.5 weights, gr8 served
bit325at TP=4 andbit225andbit260at TP=3 with its default KV pool: smoke tests passed and an 87K-token needle was found.
Intended use and limitations
- Serving GLM-5.3 on GB10-class devices at TP=3-7. TP=5 needs engine support that is still landing.
- 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.
- Quantized weights: measure quality for your workload before relying on the lower-width profiles.
- Not for training. Router, norms and small projections are kept at their shipped precision (BF16/FP32) because routing is sensitive.
Licence
These weights are a quantization of Z.ai's GLM-5.3 and remain subject to the GLM-5.3 License, whose full text is in LICENSE. Its conditions apply to this quantization as a derivative work.
The parts this quantization adds (the exlr8 v2 packing, manifests and error tables) are also offered under CC BY 4.0: redistribution and modification with attribution are permitted. CC BY 4.0 does not remove or relax any condition of the GLM-5.3 License.
The exlr8 v2 format and the loader are separate works; the three exllamav3-derived primitives remain under their MIT licence.
Acknowledgements
exllamav3 made this possible through their original research on the EXL3 format.
Built on Z.ai's GLM-5.3; the encoder and the format's primitives are derived from exllamav3 0.0.43 (MIT).
Many contributors made this quant possible in its various forms!
- https://x.com/mmastrac
- https://x.com/CK2084
- https://x.com/coffeedev/
- https://x.com/bertholomusai/
- https://x.com/jakeharrisdev/
Changelog
0.7 (2026-11-18)
- New width profiles from a block sensitivity sweep:
bit227,bit240,bit262,bit271,bit280,bit322,bit340andbit387.bit300keeps its name with new widths: it was every routed expert at K3, and now keeps gate and up at K2 in the first layers and raises downs to K4 in the middle and late layers, with 12% lower KL on model-written text at the same size.bit225,bit239,bit260,bit273,bit325,bit332andbit390are removed: each has a new profile at most 0.02 bits per weight larger, with 5-29% lower KL on model-written text.bit200andbit400are unchanged. - The card's headline KL is now measured on model-written text, beside held-out text at every position and wikitext. Every profile is measured with this release's BF16 embedding and lm_head.
- The weights, the weight set ID and the index slices are unchanged from 0.6.
0.6 (2026-11-18)
- Every routed and shared expert of layers 3-78 is re-encoded in the mul1 codebook, from the same Hessians. Index files are freshly written and carry no error tables or held-out token counts.
- The embedding and lm_head are stored in BF16 (dense format 6), copied from the base model, in place of FP8 with a
scale per row. New weight set ID
3d1a293399f0077e27acd18609ee67f33f8e3f8b5963a7c4b42b7dc16ecd1d98and index slices. - New width profiles
bit200,bit239,bit273,bit300,bit332andbit390.up1is nowbit400, with the same widths.bit225,bit260andbit325keep their widths.home,down1andbit243are removed:bit325,bit225andbit239have lower KL at the same or a smaller size.bit338is removed:bit332matches its KL in 6 GB less. - Every profile's KL is measured on the mul1 weights.
- The format details (encoding, file layout, index slices, loader) move to kindlingai/exlr8.
tools/card.pyregenerates the profile table, the profile descriptions and the charts from the manifests andassets/card.json.
Each version is a git tag on this repository. 0.1 to 0.5 share one weight set ID; 0.6 re-encodes the experts and changes the vocabulary file, so it has a new one.
0.5 (2026-10-11)
Changes:
- Adds the
bit225,bit243,bit260,bit325andbit338width profiles, with their sizes and full-vocabulary KL against BF16 in Width profiles. The weights and the set ID are unchanged. - The card says where to load the release, now that gr8 is public.
0.4 (2026-10-10)
Changes:
- Adds the base model's
config.json,generation_config.json, tokenizer and chat template, unchanged from zai-org/GLM-5.3-BF16 (9d2398f), so the repository is a complete model. The weights, widths and set ID are unchanged. - Adds the byte-level Loader section and points to the reference loader.
0.3 (2026-10-08)
Changes:
- Adds the weight set ID (
set_id) to the card and every manifest. The weights and widths are unchanged. - Adds index slices for TP 3-7 at K2, K3 and K4, with their hashes.
0.2 (2026-10-08)
Fixes:
homeandup1asked for K4 on layer 78's shared expert, which is stored at K3 only, so loaders failed on it. Both now use K3 there.- Removed
exlr8-manifest-calib-325.json. Its widths came from calibration routing counts, which the format spec rules out for shipped manifests. LICENSEnow carries the full GLM-5.3 License text, which the licence requires in derivative works. The weights remain under it, and CC BY 4.0 covers only what this quantization adds.
Changes:
- The card states that loaders must apply E4M3 rounding.
- Manifests gain
versionandchangelogfields, name layer 78's shared expert inmtp_layer, and no longer name an internal mount path insource. - Card corrections: file paths, the layer 78 widths, an unsourced 181 GiB size, the loader (not public yet) and
where to get
config.jsonand the tokenizer.
0.1 (2026-10-08)
Initial release: routed experts of layers 3-77 at K2, K3 and K4 and of the MTP layer 78 at K3; dense and
vocabulary files; home, down1, up1 and calib-325 manifests.
内容来源:Hugging Face 模型卡
在 Hugging Face 查看