vcruz305/GLM-5.3-Flash-EXL3-K2
GLM-5.3-Flash EXL3 K2
Community EXL3 K2 pack of zai-org/GLM-5.3-Flash-BF16: 2-bit MCG trellis on routed MoE experts only. Attn / shared / embed / head / vision stay source-native. 120 safetensors shards, 97,728,721,536 B (91.017 GiB).
### These weights need a specific vLLM build (K-pool fix shipped 2026-08-30; reinstall) Stock vLLM cannot load this pack. It has neither theexl3quantization method nor theGlm5Nextarchitecture, and no flag turns them on.pip install vllmwill appear to work and then fail after you have downloaded 91 GiB. Prebuilt wheels, no compiler, minutes to install: [vcruz305/GLM-5.3-Flash-EXL3-K2-spark-vllm](https://huggingface.co/vcruz305/GLM-5.3-Flash-EXL3-K2-spark-vllm)
This is a quantized weight pack. Pull it, then follow the GitHub recipe for vLLM flags. Weights are MIT (Z.AI).
Quick start
# 1. the runtime first, so a bad environment fails in seconds instead of hours
git clone https://github.com/vcruz305/GLM-5.3-Flash-EXL3-K2-DGX-Spark-recipe
cd GLM-5.3-Flash-EXL3-K2-DGX-Spark-recipe
python scripts/preflight.py
bash scripts/install_prebuilt.sh
# 2. then the 91 GiB
hf download vcruz305/GLM-5.3-Flash-EXL3-K2 \
--local-dir ~/models/GLM-5.3-Flash-EXL3-K2--local-dir resumes. There is no --resume-download flag. Last path component must be the Hub basename.
One-Spark vLLM (winner flags). Full notes, ctx ladder, and scripts: [GLM-5.3-Flash-EXL3-K2-DGX-Spark-recipe](https://github.com/vcruz305/GLM-5.3-Flash-EXL3-K2-DGX-Spark-recipe).
export EXL3_FUSED_MOE=1
vllm serve ~/models/GLM-5.3-Flash-EXL3-K2 \
--served-model-name GLM-5.3-Flash-EXL3 \
--quantization exl3 \
--tensor-parallel-size 1 \
--kv-cache-dtype fp8 \
--max-model-len 8192 \
--gpu-memory-utilization 0.87 \
--max-num-seqs 1 \
--max-num-batched-tokens 2048 \
--speculative-config '{"method":"mtp","num_speculative_tokens":2}' \
--tool-call-parser glm47 --enable-auto-tool-choice --reasoning-parser glm45 \
--skip-mm-profiling --limit-mm-per-prompt '{"image":4,"video":1}'Load log must show fused exl3_moe at bits=2. Bits=2 loading is handled natively by the EXL3 plugin in the runtime wheels, so there is nothing to patch. Do not pass --moe-backend marlin. Native MTP; do not mix a DFlash sidecar on the same server.
Eval/serve at 64k: MAX_MODEL_LEN=65536 GPU_MEM_UTIL=0.91 (same MTP k=2). Spec A/B was ranked at 8k so MLA page size stayed in one band.
Spark measurements (2026-08-29)
Hardware: one NVIDIA GB10 (SM121), ~121 GiB unified. Engine: vLLM --quantization exl3, EXL3_FUSED_MOE=1. Bench: streamed /v1, thinking off, 128 gen, seqs=1.
Spec ranking @ 8k
Context ladder (KV from engine log; decode = same 128-token bench when run)
131072 allocates (KV 786,432, 6.00x) and an 81,920-token prompt completes, but a 98,304-token prompt faults in the EXL3 fused-MoE path and kills the engine, so 65536 stays the recommended serving ctx. DFlash at 8k / util 0.87 cannot climb ctx until util 0.91 (draft KV collapse).
sixcat 0.5.1 think-on, vendor glm-5.x, 20/category, host-guarded HumanEval, 64k serve: knowledge 65 · math 100 · truth 85 · instruct 75 · code 90 · tools 90. overall 84.2 with trunc-in-think:instruct — not a clean overall.
What is in the shards
- Routed experts: EXL3 K2 (
suh,svh,trellis,(1,)int32mcg) ongate_proj/up_proj/down_proj - 37,152 expert weights + source-native non-expert tensors
model.safetensors.index.json, tokenizer, processor, generation config, chat templatequantization_config.json:quant_method=exl3,bits=2,codebook=mcg,scope=glm53_routed_experts_only
Also measured: 4× L40 TP4
Text /v1 smoke on 2026-08-28, 4× NVIDIA L40 (SM89), TP=4, 8k, fused exl3_moe, no BF16 expert reconstruct. /health 200; 17 * 6 → 102. Build context under runtime/l40-vllm/ in this repo (CUDA 8.9, dense MLA fallback on L40). That gate is L40 TP4 text @ 8k. One-Spark GB10 flags and ctx live in the GitHub recipe.
Links
- Recipe and scripts: https://github.com/vcruz305/GLM-5.3-Flash-EXL3-K2-DGX-Spark-recipe
- Prebuilt runtime wheels: https://huggingface.co/vcruz305/GLM-5.3-Flash-EXL3-K2-spark-vllm
- BF16 source: https://huggingface.co/zai-org/GLM-5.3-Flash-BF16
- GLM-5.3-Flash: https://huggingface.co/zai-org/GLM-5.3-Flash
License: MIT (Z.AI), same as the BF16 source. Community quant; not an official Z.ai release.
