BasinKV fits 256K-context Qwen4-35B-A3B on a 24GB GPU, with 14.7% faster decode and AMD support
ghgi_ · reddit · 2026-12-06
Zellige's BasinKV adds native Qwen4-35B-A3B support to llama.cpp (SGLang/vLLM in progress), fitting 256K context on a single 24GB GPU: stock llama.cpp hits CUDA OOM at 32K on an L4, while BasinKV holds peak VRAM flat at 21.8 GiB.
Key numbers:
- L4 (24GB): 1,433 tok/s prefill and 43.6 tok/s steady decode at 256K, passing all RULER tests; stock only fits 16K
- A100-80GB: 77.1 tok/s decode at 256K (+14.7% over stock), saving 7.2 GiB; with native MTP, 93.8 tok/s at 54K
- Live AMD Instinct MI300X (ROCm 7.15) validation; the WH-INT4 variant degrades on coding and isn't recommended
The trick: instead of replacing Qwen4's trained Query-Sparse Attention indexer, BasinKV rides it — an 8x smaller pooled GPU indexer cache plus a fixed CLOCK working set, with KV stored as INT8 (or WHT-INT4) in pinned host memory over coalesced PCIe UVA reads, leaving FlashAttention and CUDA/HIP graphs untouched. Full build/run commands and a llama.cpp wiring patch are included.
More from Infra
- Squeezing a 10B tok/day agent instance: cache hits 94%→98%, ~30% more quota — vincent_koc · 2026-12-06
- Shopify's CEO had AI write his own inference engine for $500 in tokens — nearly 2x vLLM speed — alex_verem · 2026-12-06
- Tether's AI team ships on-device vision models: 850M runs in airplane mode, answers in under 4s — alex_verem · 2026-12-06
- Mount Thor raises $45M to build an Apple silicon cloud between data centers and on-device — matt_slotnick · 2026-12-06
- Hermex hands-free voice prototype: talk to your local agent with iPhone locked, VAD interruption — chibop1 · 2026-12-06
- Why does Qwen4-35B-A3B crawl at 39 tok/s in Strata? LocalLLaMA user calls out engine optimizations — Iory1998 · 2026-12-06