BasinKV open-sourced: 256K context on a 24GB GPU with flat decode speed
ghgi_ · reddit · 2026-12-02
Zellige AI open-sourced BasinKV, a cross-engine KV cache offloading system: the GPU keeps only a small fixed working set (2,048 tokens by default) while full history lives in host RAM or NVMe, with a tiny GPU index prefetching needed blocks in the background—stock attention kernels and CUDA graphs untouched. Works with llama.cpp, SGLang, and vLLM V1, building on OasisKV lookahead-prefetch (arXiv:2608.08097), extended to Qwen3.x hybrids.
Results (A100 80GB, Q4KM, llama.cpp)
- Qwen3.6-35B-A3B @ 256K: 141 tok/s vs 95 stock (1.49x), 8.9 GiB less VRAM
- Qwen3-8B @ 128K: 124 vs 54 tok/s (2.29x)
- Qwen3.8-27B @ 128K: 50 vs 41 tok/s (1.22x)
- Full 256K context on a single 24GB L4 (84.8 MiB GPU KV+index): decode stays flat, 69.9 → 67.1 tok/s at 256K; stock F16 KV OOMs from 64K
- Quality holds: 18/18 multi-turn long-context coding, 240K retrieval 96.2% vs 94.5%
Caveats: stock is still 20% faster when full context fits in HBM; deeper pure-attention models prefer a 4,096 window; whole-context counting tasks (RULER cwe) suffer at small windows.
Serving: 16 concurrent 64K sessions (>1M active tokens) at 581 tok/s aggregate on one A100 BF16; 470 tok/s on H100 FP8 with 2.03x shorter batch wall time vs stock. Zero-fork vLLM V1 plugin for persistent RAM/NVMe prefix caches.
Code: github.com/zellige-ai/basinkv
More from Infra
- Axe Build offers AI firms co-engineered clusters with committed delivery dates — omarsar0 · 2026-12-02
- Grok Bot switches to event triggers, cutting token use by 94% in internal HR workflow — XFreeze · 2026-12-02
- Cerebras' mixed day: Nvidia deal, but Amazon in-house chip takes over inference decode — dinabass · 2026-12-02
- AutoScientist automates inference server tuning, making open models 33-73% faster — sarahookr · 2026-12-02
- That viral tok/s screenshot may be three different tests: 249 vs 83 tok/s explained — AIFlow_ML · 2026-12-02
- Bezos: Trainium4 on track for 10x compute and 5x memory bandwidth over Trainium3 — pabbeel · 2026-12-02