howtospark
models / MiniMaxAI/MiniMax-M3.1-Flash
?

MiniMaxAI/MiniMax-M3.1-Flash
220B params~20B activemxfp8MoE 128×4GQA 64:41.0M ctxmultimodalother
Sparks
Users
~233 GB
~122 GB
~75 GB
~72 GB
~69 GB
110 usable
REAP dialno pruning · 128 experts
Spec decode
Context33K / 1.0MKV
On the Sparks — 1× · 2-bit experts + NVFP4 dense · 33K ctx · FP16 KV~368K ctx fits usable · ~11 users fit
spark
41 GB free
Expert planes53.5* GB2-bit
110 usable
69* / 110 GB
63% 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
60 layersMoE FFN
in
out

one MoE layer · 128 experts, 4+1 fire per token

each expert ≈ 28M params

resident: 60 MoE layers × 128 experts × 28M ≈ 213.9B

active/token: 60 × 4 × 28M ≈ 13.6B experts

+ 6.6B always-on dense (attention, embeddings, shared stack) = 20.2B active

Optimize
Verdict

220B params, ~220 GB at already mxfp8-quantized and still ~110 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 128 routed experts and only 4 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, ~61 GB at 4-bit

Split or stream it

Even 4-bit is ~110 GB against a 110 GB usable budget; shard across ≥1 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).

~60 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.

Add a speculative decoder

Decode is bandwidth-bound at ~27 tok/s ceiling; a trained EAGLE-style draft multiplies tokens per weight-read.

Tame the KV cache

At 1048576 tokens the KV cache alone is ~129 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.