BasinKV
BasinKV is an open-source add-on for llama.cpp, SGLang and vLLM V1 that keeps a fixed slice of the KV cache on the GPU and moves the rest to host RAM or NVMe, so long-context models fit on smaller GPUs without retraining.
Why it matters
For people self-hosting LLMs who hit GPU memory limits at long context. It caps per-head GPU KV memory and fetches older blocks from RAM or disk as needed, so a 24 GB card can serve contexts that would otherwise run out of memory.
Highlights
- Keeps a fixed GPU working set per attention head (2,048 tokens by default) and stores the full KV history in pinned host RAM or on NVMe, prefetching needed blocks over PCIe.
- Integrates with llama.cpp (pinned patch), SGLang (installer script) and unmodified vLLM V1 as a KV connector plugin with RAM/NVMe prefix caching.
- Zellige reports Qwen3.6-35B-A3B at 256K context running at about 67 tokens/s on a 24 GB NVIDIA L4, where stock llama.cpp ran out of memory from 64K.unverified
- Offers int8 host KV as the quality default and a 4-bit mode for when host RAM, NVMe or GPU index memory is the limit.
- Implements the OasisKV lookahead-prefetch approach described in an arXiv paper by Can Xiao, Sukmin Cho and colleagues; CLI flags still use the oasiskv name.
Taken from the project's own README, docs or launch page. Claims about speed or accuracy are the maker's unless stated otherwise.
Worth knowing: Very new (v0.1.x, created Dec 1, 2026). Models with multi-head latent attention (DeepSeek-V3/R1, GLM-5, Kimi K2) are rejected. All benchmark numbers are the maker's own. GitHub's license field shows NOASSERTION, but the LICENSE file is Apache-2.0.
Quick facts
| Pricing | Free |
|---|---|
| Free or paid | Free (open source) |
| License | Apache-2.0 |
| Language | Python plus C++/CUDA |
| Platform | Linux + NVIDIA CUDA (main target, all three engines); macOS Apple Silicon for llama.cpp only; Windows CUDA experimental; AMD ROCm compile-tested only |
| GitHub stars | ★ 183 (as of 2026-12-04) |
| Maker | Zellige |
Links
- Official site: https://zellige.ai/
- Repository: https://github.com/zellige-ai/basinkv
- Release notes: https://github.com/zellige-ai/basinkv/releases
Related ranking
See how established tools compare in Best AI Coding Tools for Developers. New releases aren't scored until we review them against the rubric.
What we couldn't verify
- highlights[2] (benchmark is Zellige's own measurement)
Checked 2026-12-04 from the tool's own pages. Prices and star counts change, so confirm on the official site. Listing here is not a ranking or an endorsement.
One email a week on AI that saves business owners time
Every Friday: one tool pick with the business use case, what changed in tools you already use, and the week's AI news in plain English. No spam.
Free. Unsubscribe any time. See our privacy policy.