howtospark
models / zai-org/GLM-5.3-Flash
Z.ai logo

zai-org/GLM-5.3-Flash
321B params~25B activefp8MoE 288×8MTP ×11.0M ctxmultimodalmit
Sparks
~330 GB
~169 GB
~101 GB
~101 GB
~93 GB
110 usable
REAP dialno pruning · 288 experts
Spec decode
Context33K / 1.0MKV
On the Sparks — 1× · 2-bit experts + NVFP4 dense · 33K ctx · FP16 KV~1.5M ctx fits usable
spark
17 GB free
Expert planes76.1* GB2-bit
110 usable
93* / 110 GB
85% of usable
Expert planesDense weightsKV cacheActivations + graphsOS reserve

* segment sizes marked with an asterisk are estimates pending a measured run

Estimated per-node footprint, weights + KV sharded across the Spark (tensor parallel). Overhead ~8 GB/node; KV at FP16.

layer map
45 layerslinear attention×34deepseek sparse attention×11
in
out

one MoE layer · 288 experts, 8+1 fire per token · showing 256

each expert ≈ 25M params

resident: 42 MoE layers × 288 experts × 25M 304.4B

active/token: 42 × 8 × 25M 8.5B experts

+ 16.9B always-on dense (attention, embeddings, shared stack) = 25.4B active

Optimize
Verdict

321B params, ~321 GB at already fp8-quantized and still ~161 GB at 4-bit — one Spark can't hold it; you need surgery or more Sparks.

Make it fit

Get the weights (and headroom for KV) inside the 128 GB pool — the hard gate.

Prune experts (then quantize)

With 288 routed experts and only 8 firing per token, REAP-style pruning cuts total params without touching active compute (params include vision/audio towers).

pruning to half the experts ≈ halves the routed-expert weights, ~88 GB at 4-bit

Split or stream it

Even 4-bit is ~161 GB against a 110 GB usable budget; shard across ≥2 Sparks or stream cold weights from NVMe.

Go below 4 bits

Codebook/outlier methods reach 2–3 bpw when 4-bit still overflows. — for MoE, the proven shape is a 2-bit sign-symmetric codebook on the routed experts with the dense stack kept at FP8 (vLLM-Moet).

~93 GB with 2-bit experts + FP8 dense (est.)

Make it fast

Once it fits: fewer bytes per token and fewer decode steps against 273 GB/s.

Use its MTP heads

Ships 1 multi-token-prediction layer(s) — self-speculative decode with no separate draft model; check vLLM/SGLang support for this arch.

Tame the KV cache

At 1048576 tokens the KV cache alone is ~12 GB at FP16; quantize or evict.

Make it yours

Change what the model does — adapt, edit, or steer it — independent of size.

Fine-tune it

LoRA/QLoRA adapts behavior on one Spark without touching the base weights.