# BasinKV: Bounded-VRAM Long-Context Serving in SGLang, llama.cpp, and vLLM

> Source: <https://zellige.ai/research/basinkv>
> Published: 2026-11-30 00:00:00+00:00

**Recommendation:** Adopt a bounded-VRAM sparse KV cache like BasinKV when serving long-context batches that stock KV cannot admit; it ran 16 concurrent 64K prompts on one A100-80GB and cut H100 FP8 batch wall time 2.03x.
More in the playbook "Inference and self-hosting": <https://wpnews.pro/playbooks/inference-serving>

We present BasinKV, a bounded-VRAM sparse KV-cache runtime for 256-dimensional partial-RoPE hybrids and dense LLMs across SGLang, llama.cpp, and vLLM V1, built on the OasisKV architecture [Xiao et al. 2026] while keeping unmodified FlashInfer and FlashAttention decode kernels inside CUDA graphs. On a single A100-80GB, BasinKV in SGLang serves 16 concurrent 64K prompts of BF16 Qwen3.8-27B (about one million active tokens) at 581.4 aggregate decode tokens/s with native multi-token prediction (MTP), 16/16 passkeys, and 18.13 GB of VRAM free, a load that stock serving with MTP cannot admit. On an H100 with FP8 weights at the same load, BasinKV reaches 470.4 aggregate decode tokens/s against 358.0 for stock FP8 KV (2.03x shorter batch wall time) and 33.9 for stock BF16 KV. In llama.cpp, Qwen3.6-35B-A3B decodes at 141.12 tokens/s at 256K depth on an A100 PCIe (1.49x stock, -8.91 GiB process memory) and runs live at 256K on a real 24 GB NVIDIA L4 at 67.12 tokens/s in 21,163 MiB idle / 21,885 MiB peak VRAM with exact 64K and 203K passkey retrieval, where stock F16 KV hits CUDA OOM starting at 64K.
