r/StrixHalo • u/dardeaw • 5h ago
35B MoE on a single Strix Halo APU: 250K context at 3000+ tok/s prefill, 8 streams scale to 169 tok/s total

I build MBufo(https://github.com/dardeaw/MBufo) for AMD Strix Halo (gfx1151, 128GB unified memory). It started as a fork of gufo at begin, but the unreasonable parts have been rewritten — the mixed-batch path that falls back to serial under Q4/Q8/K8V4 KV, the per-model fallback matrix, the scheduler that can't tell prefill from decode. What's left of upstream is the lineage, not the architecture. The design bet: one server, one port, every model family, every quantization, real concurrency — not a benchmark demo. Qwen4-35B-A3B is just the newest proof. Numbers first.
Setup: Unsloth UD-Q4_K_M, F16 KV, thinking off, context 262144, all through HTTP, greedy, cold KV. v0.45.5 (Q4_0 MoE prefill corruption fixed, Q6_K WMMA routed MoE, dense WMMA wired in).
Prefill barely moves from 2K to 250K
| Context | tok/s |
|---|---|
| 2K | 3074 |
| 8K | ~3000 |
| 32K | 2937 |
| 128K | 2732 |
| 250K | ~2600 |
125x the prompt, ~15% drop.
Decode (DFlash2 speculative decoding)
| Scenario | tok/s |
|---|---|
| Prose (temp 0.4) | 81.0 |
| Fibonacci (temp 0.4) | 105.0 |
| JSON constraints (temp 0) | 110.0 |
| Greedy code /128 | 103.8 |
| Repetitive /256 | 218.5 (0.989 acceptance) |
vs llama.cpp 4066b9d40 (qwen4exp + draft-mtp), same weights, speculative off: prefill 3090 vs 1088 (+184%), decode 62.0 vs 40.6 (+53%).
Concurrency, matched prose chat, F16 KV
Same /v1/chat/completions prose scenario on every stream, 128 tokens each:
| Streams | AR | MTP (accept) | DFlash2 (accept) |
|---|---|---|---|
| 1 | 63.1 | 85.5 (73%) | 79.4 (63%) |
| 2 | 90.7 | 116.1 (79%) | 90.6 (plain decode) |
| 3 | 112.6 | 138.4 (83%) | 112.7 (plain decode) |
| 4 | 129.5 | 152.6 (81%) | 130.0 (plain decode) |
| 6 | 151.0 | 153.1 (84%) | 152.2 (plain decode) |
| 8 | 165.0 | 167.7 (81%) | 165.8 (plain decode) |
MTP holds ~80%+ acceptance all the way to C8 and tracks AR within a few tok/s at every level — speculative decoding that actually survives concurrency. DFlash2 matches on total but falls back to plain decode past C1 on this workload (its verify path is per-session). Pick your drafter by concurrency, not by single-stream numbers.
Prefill chunks and decode rows share one forward pass with anti-starvation scheduling — a 250K prefill never blocks short requests (TTFT 0.7s guaranteed).
Caveats, stated upfront
- Speculative decode tracks text predictability (prose ~80, repetitive 218). AR stable ~1%.
- Functional correctness only so far (tool ladder 15/15 over 0-32K after the Q4_0 fix). No logit/KL parity yet.
- AMD-only by design. One APU, done right, beats four cards done generically.
Also running on the NPU side (XDNA2): D3 family + Whisper-V3-Turbo served in Q4NX, embeddings/reranker/ASR/TTS verified in Q8. Happy to go deep on any of this.
Appendix: what else this engine runs (same binary, same port)
GPU models — Qwen3.8 Flash-Next 125B, Qwen4-35B-A3B, Qwen3.8 27B, Gemma 4 (26B-A4B / E4B / E2B / 12B), Qwen3.5/3.6-35B-A3B, Ornith-1.5, Tiel-Coder, GPT-OSS 20B/120B, Muse Glimmer 30B, Llama-3.1-8B, DeepSeek V4 Flash, Inkling-2-Mini, Laguna 2.1, Qwen3-Embedding / bge-m3 / EmbeddingGemma 2, bge-reranker / Qwen3-Reranker, Qwen3-ASR/TTS, Qwen-Image-2.1, MiniMax H3. Zero-downtime hot swapping, no restart.
Weight formats per engine (GGUF in, refused by tensor name if unsupported — never silently mis-decoded): K-quants through Q6_K, IQ4_NL/XS, IQ2_XXS/IQ3_S, MXFP4, ROCmFP4/FAST, F16/BF16/F32. Routed experts add Q4_0/Q4_1/Q5_0/Q5_1/Q8_0, Q2_K–Q6_K. Every model above reads at least 3 weight formats; Flash-Next and GPT-OSS add native MXFP4 GEMM.
KV is independent of weights, on every model: F16, blocked-Q8 (~half memory, exact-continuity Split-K), or 4-bit compact blocks (value/key axes independently 8/4-bit, down to 1.81 GB for a full 262K session vs 6.44 GB F16). Pick per launch, per model — e.g. Qwen4 above runs F16 for the latency tables and Q8 in production.
NPU models (XDNA2, same box) — served: D3 family + Whisper-V3-Turbo (Q4NX); verified: EmbeddingGemma 2, bge-m3, rerankers, Qwen3-ASR/TTS, FLUX.2-klein, Z-Image-Turbo (Q8, E2E cos 0.95–0.999; Q4 banned where it fails precision). GPU runs the big MoEs, NPU runs everything small.
If you find this useful, a star on MBufo is the cheapest way to keep it going. Happy to answer questions.

