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)

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

Original post →

More from Infra

Infra channel →