GLM-5.3-Flash-FP4-Local-MXFP8
A Blackwell-optimized (SM120 / SM121) derivative of nvidia/GLM-5.3-Flash-FP4-Local (base model zai-org/GLM-5.3-Flash) that combines:
- QAD-tuned CSF32 NVFP4 routed MoE experts (
layers.3..44) and QAD-tuned routers/norms preserved untouched from nvidia/GLM-5.3-Flash-FP4-Local (keeping its low KLD and compact ~168 GiB footprint that fits 2× DGX Spark 128 GB with 14.5 GiB KV cache).
- All-native
MXFP8 [1, 32] attention, dense MLPs, shared experts, and lm_head — eliminating all 170 FP8_PB_WO [128, 128] projections from nvidia/GLM-5.3-Flash-FP4-Local (zero BlockFP8 projections remain):
- 11 MLA attention layers (44 projections): quantized directly from the original BF16 weights (
zai-org/GLM-5.3-Flash / local-inference-lab/GLM-5.3-Flash-NVFP4) to MXFP8 [1, 32] (zero double-quantization).
- 42 shared experts (126 projections): dequantized from
nvidia/GLM-5.3-Flash-FP4-Local QAD-tuned FP8_PB_WO [128, 128] to FP32 and re-encoded to MXFP8 [1, 32], preserving NVIDIA QAD co-adaptation between shared and routed experts.
- 34 KDA attention layers, layers 0–2 dense MLPs,
lm_head, and MTP layer 45: preserved untouched from nvidia/GLM-5.3-Flash-FP4-Local (already MXFP8 + W4A16_NVFP4 draft experts).
- Full lossless
BF16 vision tower (model.visual.*, 1,075 MiB) restored from the untouched BF16 weights (replacing nvidia/GLM-5.3-Flash-FP4-Local quantized vision, which measured 0.850 cosine similarity / 52.8% relative L2 drift vs BF16 across the 24-layer ViT + merger; 0 B overhead when exported with --language-model-only).
Per-Component Precision Summary
| Component |
Precision |
Source |
Routed MoE experts (layers.3..44, 288 experts/layer) |
NVFP4 (csf_32x2_v1 compressed scales) |
nvidia/GLM-5.3-Flash-FP4-Local (QAD, untouched) |
Router gates, post_attention_layernorm, final norm |
BF16 / FP32 |
nvidia/GLM-5.3-Flash-FP4-Local (QAD, untouched) |
Shared experts (layers.3..44, 126 projections) |
MXFP8 ([1, 32] UE8M0) |
Re-encoded from FP4-Local QAD FP8_PB_WO |
MLA attention (11 layers, 44 projections) |
MXFP8 ([1, 32] UE8M0) |
Quantized directly from BF16 (378ca545) |
KDA attention (34 layers, q/k/v/o) |
MXFP8 ([1, 32] UE8M0) |
nvidia/GLM-5.3-Flash-FP4-Local (untouched) |
Dense MLPs (layers.0..2) & lm_head |
MXFP8 ([1, 32] UE8M0) |
nvidia/GLM-5.3-Flash-FP4-Local (untouched) |
MTP layer (layers.45) |
MXFP8 attn/shared + W4A16_NVFP4 experts |
nvidia/GLM-5.3-Flash-FP4-Local (untouched) |
Vision tower (model.visual.*, 347 tensors) |
BF16 (1,075 MiB) |
Untouched BF16 (378ca545, cos = 1.000000) |
Measured Accuracy & Performance (Flare / b12x)
Exact Full-Vocabulary KLD vs BF16 Teacher (2,047 positions, N=5 passes, 4× RTX PRO 6000 Max-Q SM120)
| Checkpoint |
Mode |
Weights/GPU |
Mean KLD ± std |
Median KLD |
Max KLD |
Top-1 |
Top-5 |
decode1 |
prefill |
GLM-5.3-Flash-NVFP4 (BF16 attn) |
std (2k) |
46.61 GiB |
0.04438 ± 0.0013 |
0.04389 |
2.007 |
91.77% |
87.31% |
124.0 t/s |
11,328 t/s |
GLM-5.3-Flash-NVFP4-attn-mxfp8 |
std (2k) |
45.30 GiB |
0.05395 ± 0.0203 |
0.04420 |
2.406 |
91.30% |
86.64% |
136.0 t/s |
11,537 t/s |
nvidia/GLM-5.3-Flash-FP4-Local |
std (2k) |
42.03 GiB |
0.03788 ± 0.0014 |
0.03711 |
1.374 |
92.80% |
88.33% |
141.4 t/s |
10,562 t/s |
This model (FP4-Local-MXFP8) |
std (2k) |
42.07 GiB |
0.04015 ± 0.0015 |
0.03954 |
2.084 |
92.28% |
88.26% |
144.3 t/s |
10,735 t/s |
GLM-5.3-Flash-NVFP4 (BF16 attn) |
row_shard (12k) |
46.61 GiB |
0.05568 ± 0.0169 |
0.04607 |
3.166 |
91.13% |
86.38% |
124.2 t/s |
17,190 t/s |
GLM-5.3-Flash-NVFP4-attn-mxfp8 |
row_shard (12k) |
45.30 GiB |
0.05037 ± 0.0028 |
0.04908 |
3.018 |
91.26% |
86.81% |
135.1 t/s |
22,219 t/s |
This model (FP4-Local-MXFP8) |
row_shard (12k) |
42.07 GiB |
0.04155 ± 0.0011 |
0.04199 |
1.440 |
91.88% |
88.05% |
144.0 t/s |
19,908 t/s |
This model (FP4-Local-MXFP8, TP4 expanded scales) |
row_shard (12k) |
44.72 GiB |
0.04131 ± 0.0002 |
0.04131 |
1.598 |
92.25% |
87.89% |
142.5 t/s (502.9 @ B=4) |
20,472 t/s |
Vision Encoder Embedding Fidelity vs BF16 Ground Truth
| Vision Tower |
Size |
Cosine Similarity |
Relative L2 Error |
nvidia/GLM-5.3-Flash-FP4-Local (MXFP8 attn + W4A16_NVFP4 MLP/merger) |
372.5 MiB |
0.8499 |
52.77% |
All-MXFP8 vision |
~540 MiB |
0.9522 |
31.33% |
This model (BF16 vision) |
1,075 MiB |
1.000000 |
0.00% |
Hardware Compatibility (Language-Model Export)
- 2× NVIDIA DGX Spark (128 GB, SM121, 200 Gbps RoCE):
83.5 GiB weights/GPU (91.22 GiB loaded) → 14.54 GiB KV cache (3.83M tokens); cold prefill 2,302 / 2,564 / 2,852 tok/s at 8k / 32k / 100k.
- 4× NVIDIA RTX PRO 6000 Blackwell (96 GB, SM120):
42.07 GiB weights/GPU (-3.23 GiB/GPU vs uncompressed NVFP4).
License & Attribution