← All entries
Paper2026#1606

BasinKV: Bounded-VRAM Sparse KV-Cache Serving for llama.cpp, SGLang, and vLLM

Summary

BasinKV (Zellige; github.com/zellige-ai/basinkv, Apache-2.0, released Dec 1 2026) is an open-source implementation and extension of the OasisKV lookahead-prefetch architecture (Xiao, Cho, et al., arXiv 2608.08097 - summarized here, not separately cataloged). It serves long contexts with bounded VRAM by capping each full-attention head at a fixed GPU working set (W = 2,048 tokens by default: sink blocks, retrieved sparse blocks, and a local ring, in static-shaped pages so stock FlashAttention/FlashInfer kernels and full-model CUDA graphs run unmodified), keeping the full KV history in pinned host RAM or on NVMe, scoring evicted blocks on the GPU, and prefetching needed blocks over PCIe while earlier layers compute. No retraining and no weight changes. Two precision tiers: the quality default is INT8 host KV with a Quest INT8 block index whose partial-RoPE radius weight alpha = 0.25 down-weights the non-rotary box radius (on Qwen3.8-27B, D = 256 with 64 RoPE + 192 NoPE dims, that radius averages 2.70x the midpoint magnitude; alpha = 0.25 raises per-step Top-8 recall from 29.9% unweighted and 82.5% at alpha = 0.5 to 95.5%, and restores 128K RULER from 0/5 to 5/5); the high-compression tier pairs WHT-INT4 host KV (1.97x smaller than INT8, 3.88x vs BF16, under 0.5% decode-speed cost) with a SphereIndex of WHT-rotated INT4 centroids (7.53x smaller GPU index than BF16 min/max). A successor co-fetch propagates each block's score one hop forward so cues straddling a block boundary fetch both halves, and content-addressed prefix caches persist in RAM/NVMe including hybrid recurrent state. Project-reported benchmarks (first-party, single-user llama.cpp decode unless noted): Qwen3.6-35B-A3B Q4_K_M at 256K on a 24 GB L4 runs at 67.12 tok/s with 84.8 MiB of GPU KV+index where stock llama.cpp OOMs from 64K, with live passkeys passing at 64K and 203K; on A100-80GB the same model goes 95.01 to 141.12 tok/s (1.49x) with 96.2% retrieval at 240K; Qwen3-8B at 128K goes 54.28 to 124.29 tok/s (2.29x); Gemma 4 E4B at 128K on L4 goes 31.69 to 61.46 tok/s (1.94x). Gains shrink where the baseline already fits comfortably: gpt-oss 20B 1.02-1.20x, and Inkling 2 Mini (looped + SWA) only 1.08x at 64K - most of its attention is already windowed. In SGLang, Qwen3.8-27B at batch 16 x 64K (1.02M tokens) runs 581.4 tok/s with native MTP on one A100 where stock OOMs with MTP. Limits stated in the repo: MLA models (DeepSeek-V3/R1, GLM-5, Kimi K2) are rejected at init on all engines; the vLLM integration's zero-fork mode is prefix caching only (sparse decode needs upstream hooks) and rejects recurrent hybrids today; quality evidence is passkey/RULER retrieval and short-output parity, not long-form generation quality. Flags: the repo is one day old at cataloging (14 commits) and every benchmark is the project's own. Cross-references: the serving-side member of the KV-cache thread, alongside training-free block-sparse attention (Factorized Context Attention, ID 1896); the Quest alpha detail - down-weighting NoPE dims in block scoring - is the transferable nugget for partial-RoPE hybrids.

Venue
GitHub release, Dec 1 2026 (github.com/zellige-ai/basinkv)
Source
github
Access
free
Language
en
Added
Dec 2, 2026
Verified
Dec 2, 2026
Found via
#swarogan

Research notes

  • Shared 2026-12-02 via @swarogan post (read via the fxtwitter API mirror after the x.com 403); the post's four headline numbers match the repo's own benchmark table. Details verified against the repo README (mechanism, benchmark tables, supported-models matrix, Apache-2.0 license section). Inserted live 2026-12-02; site rebuild waits for the twice-weekly batch.

Similar entries