Hi all, sharing a working recipe for Xiaomi’s MiMo-V2.6-Flash-RL on DGX Spark, along with the four fixes it took. A couple of them fail silently, so they could bite anyone running this checkpoint on GB10 even if the server looks healthy. Going to bed now letting the Agent Speak !
### What it is
- **Model:** MiMo-V2.6-Flash-RL, about 310B total / 12B active MoE, fp8 attention with MXFP4 experts, 1M native context, image + video + audio input
- **Layout:** one instance = 2x DGX Spark, vLLM tensor parallel 2 over RoCE, with the bundled DFlash drafter (7 draft tokens). We run two identical pairs side by side on four Sparks.
### Status
- Serving text, images (up to 16 per request), video and audio
- 300K max context, fp8 KV cache, KV pool of 1.87M tokens, which holds six full 300K requests at once
- Needle in a haystack returned exactly at 100K and 250K tokens (depths 0.1 / 0.5 / 0.9 at 250K)
- Every number below was measured on our hardware. Nothing is projected.
### Numbers
fp8 KV, one pair, thinking off, a unique prompt per request so there are no prefix-cache hits.
| streams | aggregate tok/s | per-stream tok/s | mean TTFT |
|—|—|—|—|
| 1 | 45.6 | 53.3 | 0.37 s |
| 6 | 155.8 | 31.2 | 0.50 s |
Per-stream throughput at one stream, by workload: code 70.5, math 68.9, JSON 57.5, reasoning 40.3, prose 25.9, narrative 21.9. Structured and formatted output runs about 85 tok/s because DFlash accepts nearly the whole draft there. Free-flowing prose is where it slows down, at about 1.2 accepted tokens per 7-token draft.
Cold prefill: 1,947 tok/s at 2K tokens, 937 tok/s at 127K, 656 tok/s at 248K.
BF16 KV runs at the same speed within noise, but its pool drops to 560K tokens, so fp8 is the default.
### The four fixes
All four ship as drop-in files mounted read-only over the image’s copies. Diffs and full files are in `patches/`.
1. **Fused fp8 QKV loading.** The checkpoint stores each layer’s fused `qkv_proj` pre-sharded for TP4: four chunks, each with its own 128x128 fp8 block scales. The loader assumed one chunk per KV head, which is right for the 9 full-attention layers and wrong for the 39 sliding-window layers. At TP2 it crashed, and a naive fix loaded fine but scrambled Q/K/V into word salad. The patched loader regroups the chunks per rank and requantizes. Same approach as vllm#57508 and SGLang’s MiMo-V2 loader.
2. **DFlash on the omni class.** vLLM resolves this checkpoint to `MiMoV2OmniForCausalLM` (vision and audio towers), which was missing the `SupportsEagle3` marker DFlash needs for auxiliary hidden states. Adding the marker is the whole fix, since the hooks already delegate to the inner language model.
3. **fp8 KV that actually applies.** This is the silent one. `–kv-cache-dtype fp8` stayed bf16 on all 48 target layers because the attention layers never received `cache_config`. Only the drafter went fp8. The DiffKV attention backend (192/128 K/V head dims) also rejected quantized KV. Both are patched. If you set fp8 KV on this model and your pool size did not change, this is why.
4. **DFlash drafter value scale** (vllm#57784). The drafter was trained with V scaled by 0.612 and the image ignores it. We measured no change in acceptance or speed on the full bench, so it is opt-in and off by default.
Plus some configuration fixes:
- `VLLM_USE_DEEP_GEMM=0` and `–moe-backend marlin`. The DeepGEMM build pinned in the image silently corrupts fp8 GEMMs on SM12x (DeepGEMM#417), and by default vLLM would also route the MXFP4 experts through it.
- The release’s `dflash/config.json` has a trailing comma, which is invalid JSON. Setup writes a corrected copy.
- Audio requests need `soundfile` and PyAV, which the image lacks. Setup installs both.
- The chat template defaults to thinking on, and reasoning can leak into `content` for clients that do not expect it. The launcher sets thinking off at the server, and a request can still turn it on. We rebenched both pairs with this default: no speed cost.