Z.AI GLM

GLM-5.3 (744B) โ€” TFQ 4.50

Base FP8 (703.72 GiB) | TensorFold | TFQ | GLM-5.3 License

Memory Fit 398.95 GiB Core / 408.31 GiB Full TFQ TFP6 TFQ 4.50 KL 0.0252 Code Top-1 97.37% Math Top-1 97.48% 75/75 Verified

GLM-5.3-TFQ-4.50 is a TensorFold Quantization (TFQ, TFP6 zero-LUT pure-ALU native signed-int8 format) checkpoint of zai-org/GLM-5.3 (744B MoE, GlmMoeDsaForCausalLM, 78 backbone layers: L00..L02 dense + L03..L77 MoE with 256 routed experts + 1 shared expert per layer, H = 6144, I = 2048, 154,880-token vocabulary, plus the untouched L78 Multi-Token Prediction speculative layer).

GPU VRAM & Hardware Fit (Fits 512 GB Unified Memory with >100 GiB KV Headroom / 8ร— 80 GB GPUs!)

  • Core Model Footprint (excluding optional 9.34 GiB L78 MTP head): 398.95 GiB (382.37 GiB TFP6 MoE across 75 layers + 16.58 GiB untouched core non-MoE incl. L00..L02 dense & all MLA/DSA attention).
  • Full Checkpoint (including untouched 9.34 GiB L78 MTP head): 408.31 GiB on disk โ€” 295.4 GiB (42%) smaller than the 703.72 GiB native FP8 checkpoint while preserving near-lossless coding (KL 0.0144, 99.99%โ€“100.00% Top-5) and math (KL 0.0175, 97.48% Top-1) fidelity.
Hardware Target Memory Footprint Notes
512 GB Apple Silicon Mac Studio (Unified Memory) 408.31 GiB full (398.95 GiB core) 100% resident in RAM with ~104โ€“113 GiB KV headroom
8ร— 80 GB GPUs (H100 / A100) 408.31 GiB full (398.95 GiB core) Fits 640 GB aggregate VRAM with >230 GiB KV headroom
3ร— 192 GB AMD MI300X / 5ร—โ€“6ร— 96 GB RTX PRO 6000 408.31 GiB full (398.95 GiB core) Fits cleanly with full zero-LUT native signed-int8 execution

All 57,825 MoE matrices (75 MoE layers ร— 256 routed experts ร— {gate, up, down} = 57,600 routed tensors at 4.4994 bpw tempered SwiGLU Jacobian MCKP across 3.5โ€“6.0 bpw, with L03/L77 edge layers at 5.0 bpw + 225 shared-expert tensors at 6.0 bpw โ†’ 4.5052 bpw combined MoE average) are quantized directly from native 128ร—128 blockwise FP8 using calibrated sequential 2-stage wยฒ-weighted per-expert Hessian-LDLQ-H (192 ร— 1,024 = 196,608 calibration tokens), while keeping all non-MoE tensors (25.92 GiB, including L00..L02 dense layers, all MLA/DSA attention, routers, norms, embeddings, lm_head, and L78 MTP) completely untouched in their original dtypes.

Highlights

  • Footprint: 408.31 GiB total on disk (398.95 GiB core without optional L78 MTP):
    • 382.37 GiB across 75 self-contained TFP6 MoE shards (moe_L03.tffp6 .. moe_L77.tffp6, 771 tensors/layer = 57,825 MoE tensors total โ€” zero external lookup tables).
    • 25.92 GiB across 6 untouched non-MoE shards (nonmoe-00001-of-00006.safetensors .. nonmoe-00006-of-00006.safetensors: 16.58 GiB core non-MoE + 9.34 GiB untouched L78 MTP).
  • Zero-LUT Pure-ALU Native int8 (TFP6 + FLAG_A8_HADAMARD): Decodes directly to signed int8 with zero LUT lookups and supports both normative 128ร—128 Hadamard int8 activation execution (tfp6_a8) and BF16 activation execution (tfp6_a16).
  • Calibrated Sequential 2-Stage Method:
    • Tempered SwiGLU Jacobian MCKP rate allocation (power = 0.75, 10% median floor, 3.5โ€“6.0 bpw on routed experts, L03/L77 = 5.0 bpw, all 225 shared-expert matrices at 6.0 bpw).
    • Sequential 192 ร— 1,024 (196,608 tokens, [gMASK]<sop> prepended) calibration with Kish wยฒ-weighted Stage-1 H_up, post-quantization Stage-2 H_down, and 2-pass coordinate polish (--polish --polish-su --polish-sv --share-su-groups).
    • Per-layer A16 MoE output SNR across all 75 logged MoE layers (L03..L77, measured on the first 8 calibration sequences with matched layer inputs and routing): mean 33.32 dB (29.59 dB min at L41 to 51.52 dB max at L09).
  • Integrity: All 75 MoE shards verified 75/75 OK [A8] [XXH64 verified] via tfq3-inspect.

Evaluation (Exact 154,880-Vocab FP64 Held-Out KL)

Evaluated on 48 teacher-forced 1,024-token sequences (49,104 next-token predictions, 12,276 per domain) across four held-out domains (chat, code, math, and prose, [gMASK]<sop> prepended, zero aligned 64-token block overlap with calibration), comparing exact full 154,880-vocabulary FP64 log-probabilities (computed via FP64 log_softmax and reductions over BF16-projected logits) directly against native zai-org/GLM-5.3 FP8 Gold (exact 128ร—128 blockwise dequantization):

Overall (49,104 Next-Token Predictions)

Execution Path KL (gold || cand) Rev-KL Top-1 Agree Top-5 Agree* Gold PPL โ†’ Cand PPL (ฮ”%)
tfp6_a8 (Normative) 0.025232 0.025982 96.10% 99.890% 2.6019 โ†’ 2.6170 (+0.579%)
tfp6_a16 (BF16 act) 0.025157 0.026105 96.18% 99.894% 2.6019 โ†’ 2.6192 (+0.666%)

Per-Domain Breakdown (12,276 Next-Token Predictions Each)

Domain tfp6_a8 (Normative) KL / Top-1 / Top-5* / PPL (ฮ”%) tfp6_a16 (BF16 act) KL / Top-1 / Top-5* / PPL (ฮ”%)
Code 0.014377 / 97.37% / 99.992% / 1.9342 โ†’ 1.9339 (-0.015%) 0.014174 / 97.40% / 100.000% / 1.9342 โ†’ 1.9342 (+0.001%)
Math 0.017484 / 97.48% / 99.984% / 1.7721 โ†’ 1.7789 (+0.384%) 0.018306 / 97.51% / 99.959% / 1.7721 โ†’ 1.7804 (+0.470%)
Chat 0.034533 / 94.17% / 99.658% / 5.1899 โ†’ 5.2038 (+0.267%) 0.034050 / 94.34% / 99.674% / 5.1899 โ†’ 5.2117 (+0.419%)
Prose 0.034533 / 95.36% / 99.927% / 2.5764 โ†’ 2.6199 (+1.688%) 0.034100 / 95.46% / 99.943% / 2.5764 โ†’ 2.6224 (+1.782%)

*Top-1 and Top-5 agreement measure how often the stock FP8 reference's top-1 token ranks first or within the candidate's top five on this 48-sequence held-out teacher-forced evaluation (49,104 predictions total; 4.50 bpw is the nominal MoE weight target). PPL values and ฮ”% deltas are scoped to observed target next tokens on this evaluation sample.

Checkpoint Layout

  • moe_L03.tffp6 .. moe_L77.tffp6: 75 self-contained TFP6 v6 MoE shards (382.37 GiB total; 771 tensors per layer: 256 routed experts + 1 shared expert ร— {gate, up, down}).
  • nonmoe-00001-of-00006.safetensors .. nonmoe-00006-of-00006.safetensors + model.safetensors.index.json: Untouched non-MoE tensors (25.92 GiB total โ€” 16.58 GiB core non-MoE incl. L00..L02 dense layers, MLA/DSA attention, routers, norms, embeddings, lm_head + 9.34 GiB untouched L78 MTP speculative layer).
  • Tokenizer (tokenizer.json, tokenizer_config.json), chat_template.jinja, config.json, generation_config.json, and LICENSE copied verbatim from zai-org/GLM-5.3.

Running with TensorFold

tensorfold serve TensorFold/GLM-5.3-TFQ-4.50

Open-source TFP6 specification, conformance suite, and Metal/CUDA/ROCm converters live in TFQ.

License

This quantized checkpoint inherits the GLM-5.3 License from zai-org/GLM-5.3.

Downloads last month
99
Safetensors
Model size
26B params
Tensor type
F32
ยท
BF16
ยท
F8_E4M3
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for TensorFold/GLM-5.3-TFQ-4.50

Base model

zai-org/GLM-5.3
Quantized
(136)
this model