An EXL3 quantization of Z.ai's GLM-5.3-Flash (320B total / ~18B active, natively multimodal, 1M context), made with exllamav3 from the BF16 master weights.
mul1 codebook, calibrated. The MTP layer's experts use 6 bpw.lm_head and the whole vision tower.| base model | zai-org/GLM-5.3-Flash-BF16 @ f9fed3bbc82291073373d67452e9f25317ef7577 (MIT) |
| encoder | exllamav3 1.6.2 @ 058b8630 (MIT), convert_model with a routed-experts-only scope |
| routed experts, layers 3–44 | EXL3 4 bpw, mul1 codebook, calibrated |
| routed experts, MTP layer 45 | EXL3 6 bpw |
| everything else | source dtype (BF16, or F32 where the source ships F32), byte-identical to the source |
| size | 165.25 GiB (177,434,918,904 bytes of tensors), 42 shards, 150,226 tensors |
| tensor group | tensors | format | size | vs the BF16 source |
|---|---|---|---|---|
| routed experts, layers 3–44 (42 × 288 × gate/up/down) | 145,152 | EXL3 4 bpw, mul1 |
142.17 GiB | quantized, calibrated |
| routed experts, MTP layer 45 (288 × gate/up/down) | 3,456 | EXL3 6 bpw, mul1 |
5.07 GiB | quantized |
| KDA linear attention (34 layers) | 510 | BF16, F32 | 8.72 GiB | byte-identical |
| sparse attention (11 layers + MTP layer) | 84 | BF16 | 2.63 GiB | byte-identical |
| DSA indexer (11 layers + MTP layer) | 84 | BF16 | 0.17 GiB | byte-identical |
| shared experts (43 layers) | 129 | BF16 | 2.02 GiB | byte-identical |
| dense MLPs (layers 0–2) | 9 | BF16 | 0.84 GiB | byte-identical |
| router (43 layers) | 86 | BF16, F32 | 0.09 GiB | byte-identical |
| mHC hyper-connections (45 layers) | 270 | F32, BF16 | 0.07 GiB | byte-identical |
| norms | 96 | BF16 | 0.75 MiB | byte-identical |
MTP projection (eh_proj) |
1 | BF16 | 0.06 GiB | byte-identical |
token embedding + lm_head |
2 | BF16 | 2.36 GiB | byte-identical |
| vision tower | 347 | BF16 | 1.05 GiB | byte-identical |
| total | 150,226 | 165.25 GiB |
Each quantized projection is stored as four tensors: trellis, suh, svh and mul1.
Counting the suh/svh vectors and the marker, the experts store 4.01 and 6.01 bits per weight.
Both rows come from the same harness: an exact fp32 reference forward pass over 16 sequences × 2048 tokens per corpus. Lower perplexity is better and higher top-1 is better.
| corpus | ppl, this quant | ppl, TR3 4bpw | Δ ppl | top-1, this quant | top-1, TR3 4bpw |
|---|---|---|---|---|---|
| code | 1.2536 | 1.2640 | −0.8% | 0.9397 | 0.9364 |
| novel | 7.2525 | 7.3077 | −0.8% | 0.5715 | 0.5702 |
| prose | 1.0536 | 1.0529 | ±0 (+0.07%) | 0.9890 | 0.9893 |
The two checkpoints also differ outside the experts: every non-expert tensor here is the BF16 source. So the gap can't be credited to the experts alone.
This is the relative Frobenius error, ‖Wq − W‖ / ‖W‖, against the BF16 source. It was sampled on layers 3, 20, 44 and 45 × experts 0, 77, 200 and 287 × gate/up/down. TR3's channel permutation was undone before comparing.
| tensors | this quant | TR3 4bpw |
|---|---|---|
| routed experts, layers 3 / 20 / 44 | 6.9–7.6% (4 bpw) | 7.8–9.0% (4 bpw) |
| routed experts, MTP layer 45 | 1.7% (6 bpw) | 7.9–9.0% (4 bpw) |
TR3 4bpw here is brandonmusic/GLM-5.3-Flash-tr3-4bpw
@ a5fee929, a public re-packaging of Mia-AiLab's TR3 4bpw weights.
| corpus | exllamav3's bundled default mix: c4, code, multilingual, technical, wiki, tiny, plus random-token rows |
| size | 128 rows × 2048 tokens |
| Hessian capture | every routed expert activated on every calibration token |
| state between layers | advanced with normal top-8 routing through the already-quantized layer |
| MTP layer 45 | no calibration data; exllamav3 quantizes the MTP side-model without it |
Z.ai publishes the model in BF16 and in FP8. The FP8 release is a round-to-nearest of the BF16 master:
| release | format | error vs the BF16 master |
|---|---|---|
zai-org/GLM-5.3-Flash-BF16 |
BF16 master | — |
zai-org/GLM-5.3-Flash, layers 0–44 |
FP8 E4M3, 128×128 blocks | 0.16% relative |
zai-org/GLM-5.3-Flash, MTP layer 45 |
FP8 E4M3, 128×128 blocks | 2.1–2.3% relative; its scales aren't amax-based |
Starting from BF16 has two consequences:
The tensor names are the same as in the community TR3 GLM-5.3-Flash EXL3 checkpoints. We
checked all 150,226 names against TR3 4bpw. They match once .mcg is read as .mul1.
| this repo | TR3 4bpw | |
|---|---|---|
expert trellis |
I16 [in/16, out/16, 16·K] |
I16 [in/16, out/16, 16·K] |
expert suh / svh |
F16 [in] / [out] |
F16 [in] / [out] |
| codebook marker | .mul1, I32, multiplier 0x83DCD12D |
.mcg, I32 |
| routed experts, layers 3–44 | 4 bpw (trellis last dim 64) |
4 bpw (64) |
| routed experts, MTP layer 45 | 6 bpw (trellis last dim 96) |
4 bpw (64) |
A loader for this checkpoint has to accept .mul1 as the codebook marker and a K = 6 trellis
in layer 45. The per-projection bits and codebook multiplier are recorded in
quantization_config.json.
| file | contents |
|---|---|
model-000NN-of-00042.safetensors |
weights, 42 shards |
model.safetensors.index.json |
tensor → shard map |
config.json |
Z.ai's config plus quantization_config (exl3, bits: 4, codebook: mul1, head_bits: 16, scope) |
quantization_config.json |
per projection: bits per weight, codebook multiplier, stored tensors with dtype and shape |
quantization/recipe.json |
source revision, encoder version and commit, tensor policy, calibration |
chat_template.jinja, tokenizer.json, tokenizer_config.json, generation_config.json, processor_config.json |
from the source, unchanged |
LICENSE |
Z.ai's MIT license, unchanged |
Every check below was run on this checkpoint.
| check | result |
|---|---|
non-expert tensors byte-identical to zai-org/GLM-5.3-Flash-BF16 @ f9fed3bb |
1,618 / 1,618 (18.01 GiB), same dtypes and shapes |
tokenizer, chat template, processor and generation configs, LICENSE vs the source |
identical, 6 / 6 files |
quantized projections in quantization_config.json |
36,288 at 4 bpw (layers 3–44) + 864 at 6 bpw (layer 45), all mul1 |
| tensor names vs TR3 4bpw | 150,226 / 150,226 (.mcg ↔ .mul1) |
| parameters | 320B total, ~18B active |
| layers | 46: 34 KDA linear-attention, 11 DeepSeek-sparse-attention (with DSA indexer), 1 MTP |
| MoE | 288 routed experts + 1 shared, top-8; layers 0–2 dense |
| residual stream | mHC hyper-connections (hc_mult: 4) |
| context | 1,048,576 tokens |
| modalities | natively multimodal; 24-block vision tower |
Benchmarks and usage are on Z.ai's model card.
LICENSE. All model credit is theirs.MIT, inherited from the base model. See LICENSE.
Published by LibertAI. Also from LibertAIDAI: GLM-5.3-Flash-NVFP4.
model-00008-of-00042.safetensors 4.3 GBmodel-00020-of-00042.safetensors 4.3 GBmodel-00001-of-00042.safetensors 4.3 GBmodel-00033-of-00042.safetensors 4.3 GBmodel-00032-of-00042.safetensors 4.3 GBmodel-00019-of-00042.safetensors 4.3 GBmodel-00031-of-00042.safetensors 4.3 GBmodel-00011-of-00042.safetensors 4.3 GBmodel-00016-of-00042.safetensors 4.3 GBmodel-00022-of-00042.safetensors 4.3 GBmodel-00025-of-00042.safetensors 4.3 GBmodel-00027-of-00042.safetensors 4.3 GBmodel-00036-of-00042.safetensors 4.3 GBmodel-00038-of-00042.safetensors 4.3 GBmodel-00010-of-00042.safetensors 4.3 GBmodel-00012-of-00042.safetensors 4.3 GBmodel-00015-of-00042.safetensors 4.3 GBmodel-00023-of-00042.safetensors 4.3 GBmodel-00034-of-00042.safetensors 4.3 GBmodel-00014-of-00042.safetensors 4.3 GBmodel-00026-of-00042.safetensors 4.3 GBmodel-00037-of-00042.safetensors 4.3 GBmodel-00029-of-00042.safetensors 4.3 GBmodel-00030-of-00042.safetensors 4.3 GBmodel-00018-of-00042.safetensors 4.3 GBmodel-00007-of-00042.safetensors 4.3 GBmodel-00003-of-00042.safetensors 4.3 GBmodel-00005-of-00042.safetensors 4.3 GBmodel-00004-of-00042.safetensors 4.3 GBmodel-00040-of-00042.safetensors 4.3 GBmodel-00013-of-00042.safetensors 4.3 GBmodel-00024-of-00042.safetensors 4.3 GBmodel-00035-of-00042.safetensors 4.3 GBmodel-00028-of-00042.safetensors 4.3 GBmodel-00039-of-00042.safetensors 4.3 GBmodel-00017-of-00042.safetensors 4.3 GBmodel-00002-of-00042.safetensors 4.3 GBmodel-00006-of-00042.safetensors 4.3 GBmodel-00021-of-00042.safetensors 4.3 GBmodel-00009-of-00042.safetensors 4.3 GBmodel-00041-of-00042.safetensors 3.3 GBmodel-00042-of-00042.safetensors 2.4 GB有文件?提交种子。
提交种子