#7878th of 109 in Model serving
kvcached
Elastic KV cache for vLLM and SGLang using GPU virtual memory
- Stars
- 2.1k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Python
881 on 28 Apr 20262,055 on 24 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
kvcached is a Python library that plugs into vLLM or SGLang and decouples GPU virtual addressing from physical memory for the KV cache. Engines reserve virtual space up front and get physical memory only when the cache is used, so several models can share one GPU without fixed memory partitions. It also includes a CLI for memory limits, a frontend router with sleep mode, and prefix caching.
Who it is for: Engineers running several LLMs on shared GPUs with vLLM or SGLang
Strengths
- Lets multiple LLMs share one GPU without static memory reservation per engine
- Reported 2-28x TTFT reduction serving three Llama-3.1-8B models on one A100-80G
- Covers MHA, GQA, MLA, sliding-window and hybrid attention, plus prefix caching
- Installs as a plugin to existing engines; ROCm supported as of v0.1.6
Weaknesses
- Works only with vLLM (>= 0.17.0) and SGLang (>= 0.5.11), not other engines
- Requires PyTorch >= 2.10 and installs with --no-build-isolation
- Not tested against every engine version; per-model results tracked in a GitHub issue
- On ROCm the non-contiguous KV layout is required in practice; contiguous not recommended
What it needs
- GPU required
- Docker
- Needs PyTorch >= 2.10, vLLM or SGLang, Python 3.10-3.13
- Models: DeepSeek-V3, Qwen3-8B, GPT-OSS-20B, Qwen3.5-9B, Qwen3.8-27B
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Known problems
Reported, then fixed by a linked change
- SGLang: TP worker sockets remain in /tmp after SIGINT ↗ (opens in a new tab)0 reactions · closed 15 Oct 2026Fixed by fix(sglang): remove TP worker sockets left behind by SIGINT ↗ (opens in a new tab)
- SGLang FP8 KV cache uses logical dtype for physical storage ↗ (opens in a new tab)0 reactions · closed 30 Sept 2026Fixed by fix(sglang): use storage dtype for FP8 KV pools ↗ (opens in a new tab)
- Prefix caching makes gemma-4 generations diverge from vanilla vLLM (output stays coherent, not garbled) ↗ (opens in a new tab)0 reactions · closed 18 Aug 2026Fixed by fix(vllm): correct heterogeneous prefix-cache hashes ↗ (opens in a new tab)
- KVCacheManager does not roll back partial allocation when alloc_page fails ↗ (opens in a new tab)0 reactions · closed 11 Aug 2026Fixed by fix: roll back partial allocation when alloc_page() fails in KVCacheManager.alloc() ↗ (opens in a new tab)
- resize() crashes instead of degrading gracefully when reserved blocks are held ↗ (opens in a new tab)0 reactions · closed 23 Jul 2026Fixed by fix(kv_cache_manager): free reserved blocks before the resize assertion, not after ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in Model serving
See all 109| Rank | Project | Score |
|---|---|---|
| #76 | sonarvLLM-based inference engine for Hugging Face models with OpenAI-compatible API | 63 out of 100 |
| #77 | distributed-llamaSplit LLM inference across home devices over Ethernet using tensor parallelism | 62 out of 100 |
| #79 | Text Generation Web UILocal LLM chat UI and API with five switchable loader backends | 60 out of 100 |
| #80 | bonsai-demoLauncher scripts for running Bonsai 2 ternary-quantized LLMs locally via llama.cpp or MLX | 60 out of 100 |
| #81 | production-stackHelm-deployed vLLM cluster with request router and Grafana monitoring | 59 out of 100 |