[!NOTE]
Compute Sponsorship: Quantization, teacher-logit archiving, post-quantization recovery, and exact IEEE-754 FP64 KLD verification of the source checkpoint were generously sponsored by Lambda Labs (8x NVIDIA B200).
Built with Z.ai GLM-5.3-Flash-BF16, incoai GLM-5.3-Flash-DFlash2 (Apache-2.0), Hyperflare / Flare (NVIDIA and community contributors), Local Inference Lab CSF scale compression and recipes, b12x / FlashInfer by Luke Alonso with Martin Vit (voipmonitor), QTIP and ExLlamaV3 / EXL3 lineage (turboderp), KQuant/QSRT operand lineage, and ShapleyMCG allocation, procedural-npk codec, Dual-Trellis QEC v2 recovery, and SM120 TrellisMX P8 runtime optimizations by Brandon M. Music. See Credits and CREDITS.md [blocked].
This repository publishes a prepared Hyperflare (Flare) runtime package for GLM-5.3-Flash quantized to 2.375 bpw TrellisMX (procedural-npk) with Dual-Trellis QEC v2 recovery and bundled MXFP8 DFlash2 speculative decoding, built for four-GPU tensor-parallel serving on NVIDIA RTX PRO 6000 Blackwell (SM120 / gb202) GPUs. Flare is a native Rust inference runtime (NVIDIA/hyperflare-inference). Each hardware revision contains prepared weights, compiled CUDA kernels, captured execution graphs, and signed package metadata. Loading runs directly on the GPU with no Python and no runtime compilation. Transformers, vLLM, SGLang, and llama.cpp cannot load this format.
🎯 At a Glance
📈 Pareto Frontier and Speed Comparison
[Image blocked: GLM-5.3-Flash TrellisMX 2.375 bpw QEC Pareto Frontier and 4x RTX PRO 6000 Blackwell Speed Comparison]
📊 Results
Measured on 2026-11-28 on four RTX PRO 6000 Blackwell PCIe GPUs (96 GB each; two Max-Q cards at 300 W and two Workstation Edition cards at 450 W, NVreg_EnablePCIERelaxedOrderingMode=1) using the bundled runner/flare-linux-x86_64 executable with 7-token MXFP8 DFlash2 speculative decoding (--mtp-draft-tokens 7), 32,768-token prefill chunks, and default sampling (temperature=1.0, top_p=0.95).
[Image blocked: GLM-5.3-Flash TP4 Concurrency Scaling C1-C32, Cold Prefill 8K-128K, and HTML Tetris Coding Dashboard]
Sustained Decode Scaling (llm-decode-bench v0.8.0, ctx=0, 30 s per cell)
Cold Prefill, Real-World Coding, and Runtime Summary
[!TIP]
Ready to launch? Head to the gb202 platform card for copy-paste native and Docker commands, prepared settings, and serving flags.
🧬 What is unique about this TrellisMX quantization
Standard EXL3 / trellis quantizations decode bit-packed weights into FP16 or BF16 before feeding Tensor Cores and use uniform or coarse layer-level bit rates, which leaves both VRAM efficiency and SM120 FP8/MXFP8 Tensor Core throughput on the table. This checkpoint (brandonmusic/GLM-5.3-Flash-TrellisMX-2.375bpw-QEC) combines four ideas:
- Direct BF16 quantization with per-expert four-rate ShapleyMCG allocation: Quantized directly from
zai-org/GLM-5.3-Flash-BF16 (a6c167b6), each routed expert receives one of four bit-rate tiers (k2=4839, p25=5624, k3=1542, k4=91) allocated by Brandon M. Music's ShapleyMCG method, averaging 2.375 bpw trellis payload (2.417 bpw stored with Local Inference Lab's lossless CSF block-scale compression).
procedural-npk register-decode codec: Brandon M. Music's procedural NPK (Neural Processing of K) codebook law decodes trellis states directly in GPU registers into native FP8 E4M3 / MXFP8 operands with E8M0 block scales, feeding Blackwell SM120 FP8 Tensor Cores directly without materializing BF16 weight tiles in VRAM or shared memory.
- Zero-overhead Dual-Trellis QEC v2 recovery: Post-quantization recovery (
27.78M zero-overlap supervised tokens) merged 316 BF16 LoRA projections into the non-routed carrier weights (excluding q_a_proj to keep the frozen DSA top-k indexer aligned) and restored 147 BF16 RMSNorms. Because the recovery is folded into the carrier weights, serving pays zero adapter or sidecar overhead while cutting KLD by ~17% relative to the pre-recovery 2.375 bpw checkpoint and approaching full 3.0 bpw EXL3 fidelity in ~25–38 GB less VRAM (decimal).
- Bundled Apache-2.0 MXFP8 DFlash2 drafter: Pairs the quantized target model with
incoai/GLM-5.3-Flash-DFlash2 (Apache-2.0) quantized to MXFP8 with an NVFP4 draft head for 7-token speculative decoding inside captured CUDA graphs.
⚙️ SM120 kernel and runtime optimizations for fast trellis serving
Achieving 303 tok/s single-stream decode, 508–549 tok/s single-stream coding, 1,666 tok/s aggregate decode at C32, and 20.8k tok/s 128K prefill on a sub-2.5 bpw trellis model across four PCIe GPUs required original SM120 kernel and execution-graph work by Brandon M. Music on top of Hyperflare and b12x:
- In-tree SM120 TrellisMX P8 routed-expert runtime: Native CuTe-DSL / CUDA
procedural-npk kernels decode mixed-rate (k2/p25/k3/k4) CSF-scaled experts in registers into SM120 FP8 Tensor Core instructions. To keep mixed-rate MoE fast across both decode and prefill, the P8 runtime adds a unified M64 prefill prologue, rate-bucketed M256 FC2 dispatch (grouping experts by bit rate to avoid warp divergence), empty M16 tile skipping, and cold-M16 offload.
- Fused TP4 PCIe AllReduce + non-lagged mHC + Gram RMSNorm: Collapses the tensor-parallel PCIe AllReduce, manifold hyper-connection post/pre stream update, and Gram RMSNorm into one fused kernel per sublayer with GPU-scope epoch ordering, removing multiple kernel launches and full hidden-state HBM round-trips on every layer.
- Single-launch Tensor-Core sigmoid top-k MoE router and overlapped KDA decode: Replaces multi-kernel routing with a single Tensor-Core BF16 sigmoid top-k router kernel for decode/verify (
M=2..8), overlaps all four KDA decode side GEMVs, fuses routed and shared MoE outputs directly into the AllReduce addend, and removes redundant decode launches.
- Online MXFP8 non-routed projections and SM120 prefill pipeline (
--online-mxfp8): Quantizes non-routed linear projections to MXFP8 during preparation while pairing them with a custom SM120 tiled MXFP8 BMM kernel (M >= 64), batch=64 row-sharded quantized MLA slices, zero-copy linear-workspace pipelined KDA prefill, empty-supertile skipping in the DSA top-k indexer, 256-byte coalesced TF32 mHC prefill, and register-recycled QK/PV staging in SM120 MLA prefill.
- Mixed-SKU SM120 TP4 support: Keys compiled forward sharing and Inductor validation by GPU model name so mixed RTX PRO 6000 Max-Q and Workstation Edition systems prepare and serve cleanly.
🔬 Distribution fidelity (KLD vs BF16 reference)
At 2.375 bpw trellis payload (2.417 bpw stored with CSF scales), this package delivers distribution fidelity typically seen only in full 3.0 bpw EXL3 K3 or 4-bit NVFP4 builds, while cutting KLD by 2.3x to 2.9x versus published 2-bit EXL3 quantizations and freeing 214.5 GiB (36.21M tokens) of GPU KV cache on four 96 GB cards.
All measurements below are first-party evaluations against the exact same 28-window ood_confirmation_2k split (ood_confirmation_2k-window-0000.pt through 0027.pt, 57,316 total next-token targets) in the public full-vocabulary FP32 teacher-logit archive brandonmusic/GLM-5.3-Flash-BF16-Nemotron-100M-Teacher-Logits (47a15aa09762eb5ba15d742c195ec030f065005e) from zai-org/GLM-5.3-Flash-BF16 (a6c167b6).
The live served Flare TP4 measurement ran end-to-end against this exact gb202 package served by runner/flare-linux-x86_64 over HTTP (including TrellisMX P8 routed experts, --online-mxfp8 non-routed projections, FP8 KV cache, and the full SM120 kernel stack) across all 28 disjoint 2,048-token OOD windows and all 2,047 contiguous next-token targets per window (57,316 scored positions total, zero striding, zero truncation). Each position r = 0..2046 is conditioned on its full causal prefix toks[0..r] and scored with exact IEEE-754 FP64 Data Processing Inequality (DPI) KLD over the top-128 teacher-support tokens plus the realized token (98.737% covered teacher probability mass, with the remaining 1.263% tail folded into the DPI residual bucket; teacher self-KLD canary 0.0 PASS). Top-1 agreement and perplexity ratio are exact over the full 154,880 vocabulary.
End-to-end live Flare TP4 serving with --online-mxfp8 non-routed projections, FP8 KV cache, and all SM120 kernels adds just +0.001985 nats (0.045665 vs 0.043680) and -0.05 percentage points of Top-1 agreement (92.90% vs 92.95%, inside the 95% Wilson CI) across all 57,316 held-out tokens, with perplexity ratio 0.997412.
How this 2.375 bpw fidelity compares against published GLM-5.3-Flash quantizations
On the identical sealed 25 x 2K (51,175-position) ood_final_all25 panel tracked in malaiwah/quant-fidelity-registry, the underlying brandonmusic/GLM-5.3-Flash-TrellisMX-2.375bpw-QEC carrier achieves 0.05309 nats (Top-1 92.67%) — 2.29x to 2.92x lower KLD than published 2-bit EXL3 builds and within 0.0026 nats of full 3.00 bpw EXL3 K3 builds while saving 25 to 38 GB (decimal; 111.3 GB vs 136.7–149.6 GB) of VRAM (measurement lanes are reported explicitly per registry provenance):
Speed and VRAM context on four RTX PRO 6000 Blackwell GPUs
Publicly reported TP4 GLM-5.3-Flash deployments on 4x RTX PRO 6000 Blackwell (96 GB) GPUs include 0xSero/local-ai-registry benchmarks for SGLang NVFP4 (142 tok/s C1, 381.8 tok/s C4, 550 tok/s C8, 6,383 tok/s peak prefill) and vLLM FP8 (146.8 tok/s C1, 7,060 tok/s peak prefill), and upstream Hyperflare FP4-Local + MXFP8 attention TP4 on four 300 W Max-Q GPUs (local-inference-lab/hyperflare-recipes#55 & #64: 144.0 tok/s / 6.95 ms target-only single-step decode; 215.6 tok/s C1 and 771.2 tok/s C8 at 32K ctx with MTP-5; 18,760 tok/s 32K and 20,769 tok/s 128K cold prefill; aexol TP4 FP4 174.1 GiB / 27.64M KV tokens). At 2.375 bpw with DFlash2 and the SM120 P8/mHC/MLA/KDA kernels (two 300 W Max-Q + two 450 W Workstation GPUs, 0K ctx), this Flare TP4 package reaches 303.4 tok/s C1 (7.36 ms/step for a full 8-token verify + DFlash2 draft round), 507.7–549.0 tok/s single-stream HTML coding, 899.5 tok/s C8, 1,241.2 tok/s C16, 1,666.1 tok/s C32 (52.1 tok/s/user), 20,330–20,805 tok/s cold prefill (32K–128K), and 214.5 GiB (36.21M tokens) of GPU KV cache (+40.4 GiB / +8.57M KV tokens over FP4 TP4).
📋 Per-window live served Flare TP4 KLD (all 28 OOD confirmation windows, full contiguous 2,047 positions each = 57,316 positions)
🚀 Pick a platform
The main revision contains this model card, assets/, CREDITS.md, LICENSE, NOTICE, LICENSES/, and publisher.json. Download the gb202 revision for 4-GPU systems or gb202-tp2 for 2-GPU systems.
🛠️ Flare fundamentals
Install Flare
Use the Flare executable included in the gb202 revision (runner/flare-linux-x86_64), natively or through the Dockerfile beside it. It is built from Hyperflare main (19c098c8) with the runtime additions listed in the gb202 setup.
Download and verify
Download the gb202 revision with the Hugging Face hf CLI:
Before loading, Flare verifies the package signature against publisher.json and prompts for publisher and license acceptance. The signature covers model.safetensors and every companion file under weights/ and deployments/.
Serve
Rank 0 exposes the OpenAI-compatible API at /v1 and health at /health under model name GLM-5.3-Flash.
- Concurrency and context: 32 concurrent requests, 1,048,576-token per-request limit, 32,768-token prefill chunks, and 7-token DFlash2 speculative decoding.
- Multimodal input: Text and images through OpenAI
image_url items (PNG, JPEG, or static WebP), up to 4 concurrent image-bearing requests and 8,192 visual tokens per image.
- Sampling defaults: Temperature 1.0 (request range
0.95–1.0), top-p 0.95 (request range 0.95–1.0), top-k disabled, min-p 0, repetition penalty 1.0, zero presence/frequency penalties, and request-controlled seed.
✅ Validation
All checks below passed on 2026-11-28 on four RTX PRO 6000 Blackwell GPUs with zero server or CUDA errors:
- Vision checks (
2/2): OCR number reading (4871) and geometric shape/color recognition (red circle left, blue square right).
- Multi-turn and tool-calling suite (
agentic_suite.py, 3 trials per case at default sampling): 24/24 trials passed (3/3 on all 8 cases: chat two turns, Responses API two turns, chat tool round trip, Responses API tool round trip, Responses API tool error result, Responses API custom free-text tool, chat parallel tool calls, and edge cases), with tool calls made in 3/3 trials on all 5 tool cases.
- GLM-5.3 edge checks (
4/4): ends_on_assistant, empty_user, reasoning_low, and system_prompt.
- Distribution fidelity (
28/28 full 2K OOD windows, 57,316 contiguous positions): 0.045665 nats mean KLD (95% BCa CI [0.039007, 0.053480], +0.001985 vs carrier-only ref), 92.90% Top-1, 0.997412 PPL ratio, 98.737% covered teacher mass, canary 0.0 PASS.
- Server and CUDA audit: 0 panics, aborts, segfaults, or CUDA runtime errors.
Known evaluation status: BFCL v4 and broad downstream QA/coding benchmarks have not yet been run on this prepared core.
🙏 Credits
- Base model: GLM-5.3-Flash BF16 by Z.ai (
zai-org/GLM-5.3-Flash-BF16, revision a6c167b6, MIT License). Quantized directly from BF16, with non-routed modules kept in BF16 as stored.
- Compute sponsorship: Generously sponsored and donated by Lambda Labs (8x NVIDIA B200). This quantization, teacher-logit archiving, post-quantization recovery, and exact IEEE-754 FP64 KLD verification would not have been possible without Lambda Labs donating the GPU compute infrastructure.
- Speculative drafter:
incoai/GLM-5.3-Flash-DFlash2 by incoai (Apache License 2.0), bundled in MXFP8 weight format with an NVFP4 draft head for 7-token speculative decoding.
- Quantization, allocation, codec, and recovery: Per-expert four-rate ShapleyMCG bit-rate allocation,
procedural-npk (Neural Processing of K) register-decode codec, and Dual-Trellis QEC v2 post-quantization recovery by Brandon M. Music (brandonmusic/GLM-5.3-Flash-TrellisMX-2.375bpw-QEC).
- Serving runtime: Hyperflare (Flare),
NVIDIA/hyperflare-inference (Apache-2.0), developed by the NVIDIA Hyperflare team and community contributors, including Luke Alonso, Martin Vit (voipmonitor), Jason Cook, and collaborators.
- Recipes, CSF scale compression, and release layout: Local Inference Lab (
local-inference-lab/hyperflare-recipes, Apache-2.0; CSF scale encoder and decoder; llm-inference-bench; and the multi-branch Flare Hugging Face layout).
- GPU kernels and SM120 PCIe TP4 optimizations:
b12x and FlashInfer by Luke Alonso (github.com/lukealonso/b12x, local-inference-lab/flashinfer, Apache-2.0), with Martin Vit (voipmonitor) for split-lagged mHC overlapped with PCIe AllReduce, prequantized compact W4A8 MoE, fused RoPE, BF16 TC-GEMV, and SM120 PCIe TP4 RO=1 collectives; and Brandon M. Music for the in-tree SM120 TrellisMX P8 runtime, rate-bucketed MXFP8/FP8 routed-expert decode and prefill kernels, fused PCIe AllReduce + non-lagged mHC + Gram RMSNorm, single-launch Tensor-Core sigmoid top-k router, tiled MXFP8 BMM, pipelined zero-copy MXFP8 KDA prefill, and register-recycled SM120 MLA prefill staging.
- Quantization and distillation research lineage: TrellisMX builds on QTIP (Tseng, Sun, Hou, De Sa, NeurIPS 2024,
arXiv:2406.11235) and ExLlamaV3 / EXL3 by turboderp and contributors (MIT); procedural NPK codec decode to FP8/FP4 operands draws on Luke Alonso's KQuant/QSRT and the b12x W4A8 trellis path; recovery and sub-3-bit allocation draw on Q-Palette (arXiv:2509.20214), DeepSeek Engram (arXiv:2601.07372), Mixture of Lookup Experts (arXiv:2503.15798), MC-MoE (arXiv:2410.06270), GEMQ (arXiv:2605.23078), Q-Strata (arXiv:2608.30564), and Hill (arXiv:2607.12266).
- Evaluation data and fidelity benchmark: Untouched full-vocabulary FP64 KLD panels and public teacher-logit archive (
brandonmusic/GLM-5.3-Flash-BF16-Nemotron-100M-Teacher-Logits, revision 47a15aa09762eb5ba15d742c195ec030f065005e) built from NVIDIA Nemotron datasets (Nemotron SFT Agentic, Math, Science CC-BY-SA-4.0, Competitive Programming, IF-Chat, Multilingual, Long-Context Transduction OpenMDW-1.1, Safety, Nemotron Pretraining Legal, Nemotron Pretraining Dataset Sample under the NVIDIA Open Data License Agreement), Nebius SWE-agent trajectories, and the sealed roles-v5 reference panel; community fidelity registry by malaiwah (malaiwah/quant-fidelity-registry).
- Package preparation and publication: Brandon M. Music.
📄 License
This prepared package is distributed under the Apache License 2.0 (LICENSE). The upstream base weights from zai-org/GLM-5.3-Flash-BF16 are released by Z.ai under the MIT License, and the upstream speculative drafter incoai/GLM-5.3-Flash-DFlash2 is released by incoai under the Apache License 2.0. Full notices and license texts are provided in NOTICE [blocked] and LICENSES/.