Without an external KV cache, vLLM computes every session that has left GPU memory again from scratch: on a hybrid long-context coding model, 103.9 seconds before the first token of a 160,000-token session. LMCache with its cache on a datacenter NVMe SSD brings that session back 3.5× faster. The ADP KV cache connector brings it back 12.7× faster, in 8.2 seconds, and with 16 developers returning at once it stays 6.5× faster than GPU-only, where LMCache gives 2.5×. It does that from a cache 3.8× smaller. LMCache is a real step up from GPU-only. ADP goes far further.
Three ways to bring a session back
A coding agent resends its whole conversation every turn: 64,000 to 199,000 tokens in the opencode sessions we replayed. Between turns the developer reads, edits and runs tests, other sessions push the conversation out of GPU memory, and the next turn cannot start until its context is back.
There are three ways to get it back. GPU-only vLLM computes the whole prompt again. LMCache, the open-source KV cache layer, keeps the cache on a local NVMe SSD and reads it back. The ADP KV cache connector keeps it on the ADP accelerator card.
We ran all three on Qwen3.8-27B, a hybrid attention and Mamba model, on one A100-40GB, with the same image and the same vLLM flags. The only difference between the three rows is the KV cache connector.
| Setup | Where a returning session comes from |
|---|---|
| GPU-only vLLM | nowhere: no KV offload, the prompt is computed again on the GPU |
| LMCache 0.5.7, multiprocess mode | a datacenter NVMe SSD, read with O_DIRECT so every restore comes from the drive and not from the OS page cache; a 64 GB RAM staging buffer that keeps no cache |
| ADP KV cache connector | one ADP accelerator card, one drive behind the card |
This test ran with a single drive behind the ADP card. The card spreads the cache across all the drives behind it, and its bandwidth grows linearly with the number of drives, up to 48 drives and 56 GB/s.
A 160,000-token session: 12.7× faster than GPU-only
We stored a 160,000-token prompt, cleared the GPU prefix cache and sent the next turn: the moment a developer comes back to a long session after the GPU has moved on.
GPU-only vLLM had nothing to reuse, 0 cached tokens, and computed the prompt again: 103.9 seconds, median of three runs, a little longer than the first turn of the same prompt took (95.6 s). Every return to a long session costs the GPU a full prefill.
LMCache brought the session back in 30.0 seconds, 3.5× faster than GPU-only, and spent 25.6 of them reading 42 GB from the SSD. The ADP connector answered in 8.2 seconds: 12.7× faster than GPU-only and 3.7× faster than LMCache. All answers were correct.
LMCache stores 3.8× more bytes
LMCache saves a snapshot of the Mamba state in every 800-token chunk: about 264 KB per token, against 70 KB for the connector. One 160,000-token session takes 42 GB with LMCache and 11.2 GB with ADP.
Every restore reads 3.8 times as much, and that is where LMCache's 25.6 seconds go. The same drive also holds fewer sessions: one terabyte keeps 89 sessions of 160,000 tokens with ADP and 23 with LMCache. GPU-only keeps nothing off the GPU, which is why it has to compute every returning session again.
Sixteen developers return at once: 6.5× faster than GPU-only
Teams do not come back one at a time. After a meeting or a long build, many developers resume their sessions in the same minute. We cleared the GPU prefix cache and sent N real opencode conversations at the same moment: 8,600 tokens each plus a new 192-token question, median of three bursts. LMCache had no evictions, so the gap between the two caches is the restore alone.
At every N, LMCache is 1.8 to 2.8 times faster than GPU-only, and ADP 5.8 to 7.1 times. GPU-only slows down in step with the load, because every session is a full prefill on the same GPU.
With sixteen sessions at once, the median developer waits 35.06 seconds with GPU-only, 13.76 with LMCache and 5.41 with ADP. The last developer in the burst waits longest: 62.17, 22.96 and 9.59 seconds.
Counted over all sessions in a burst, GPU-only computes 2,300 to 2,700 tokens per second from 4 to 16 sessions. From 4 to 16 sessions, LMCache restores 5,700 to 6,100 tokens per second: its restore path hits a ceiling, and more sessions only queue behind it. The connector restores 12,200 to 13,400, more than twice as fast as LMCache and 4.5 to 5.8 times the rate of GPU-only.
The bytes explain the gap here too. In one burst of sixteen sessions, LMCache read 37.2 GB from its drive and ADP read 10.2 GB.
| Sessions | GPU-only | LMCache | ADP | LMCache × | ADP × |
|---|---|---|---|---|---|
| 1 | 3.18 / 3.18 | 1.76 / 1.76 | 0.48 / 0.48 | 1.8× | 6.6× |
| 2 | 6.14 / 6.37 | 2.78 / 3.29 | 1.06 / 1.35 | 2.2× | 5.8× |
| 4 | 12.47 / 12.88 | 4.70 / 6.15 | 1.80 / 2.62 | 2.7× | 6.9× |
| 8 | 22.27 / 27.22 | 7.93 / 11.65 | 3.12 / 5.09 | 2.8× | 7.1× |
| 16 | 35.06 / 62.17 | 13.76 / 22.96 | 5.41 / 9.59 | 2.5× | 6.5× |
The connector costs nothing in generation
Last, the full workload: replayed opencode developer traces, five minutes at each level of 1, 2, 4, 8 and 16 developers, prompts of 64,000 to 199,000 tokens. At 1 and 2 developers all three setups found 72–74% of the prompt tokens in the GPU prefix cache alone. From 4 developers up, the single A100 is busy with the cold prefill of new sessions (0–8% cache hits), and time to first token was the same for all three within noise. On this traffic the one GPU was bound by new sessions, which no cache can serve.
Generation is where an offload layer can get in the way. From four developers up, generation was faster with the connector than with LMCache, and at or above GPU-only within noise: a median of 10.6, 5.1 and 4.4 tokens/s per request at 4, 8 and 16 developers, against 6.4, 5.3 and 3.5 for GPU-only and 6.4, 3.7 and 3.2 for LMCache. At 16 developers the total output was 21.0 tokens/s with ADP, 19.3 with GPU-only and 16.2 with LMCache.
The samples are small, 8 to 22 requests per level, so read them as a direction: the connector costs nothing in generation, while LMCache slowed generation at 8 and 16 developers.
What each setup asks of the server
- GPU-only vLLM. No extra hardware, but every returning session is paid for again in GPU time: 103.9 seconds of prefill for one 160,000-token session.
- LMCache. Open source and a real improvement: 3.5× on a long session, 1.8–2.8× when many sessions return. It needs 3.8 times the storage of ADP for the same sessions, and a RAM staging buffer as large as the longest prompt: 64 GB here. With 8 GB it restored nothing.
- ADP KV cache connector. One accelerator card: 12.7× on a long session, 5.8–7.1× when many sessions return, 3.8 times less storage than LMCache, and no cost in generation.
LMCache helps. ADP helps far more: deploy the connector
Against the baseline that matters, GPU-only vLLM, LMCache on a datacenter NVMe SSD brought sessions back 1.8 to 3.5 times faster. The ADP KV cache connector brought them back 5.8 to 12.7 times faster, from a cache 3.8 times smaller. With 3.8 times the bytes to move, LMCache restored sessions more slowly than ADP in every test we ran.
For agentic workloads on hybrid models, deploy the connector.
Test setup
- Hardware and model
- One A100-40GB, vLLM, Qwen3.8-27B AWQ (attention + Mamba), 245,760-token window, GPU memory utilization 0.96, prefix caching, up to 16 concurrent requests. Same image and flags for all three setups.
- GPU-only vLLM
- The same image and flags with no KV offload connector: a session that left GPU memory is computed again.
- LMCache
- 0.5.7, multiprocess mode, datacenter NVMe SSD (Samsung PM9A3 class) with O_DIRECT, 64 GB RAM staging buffer that keeps no cache.
- ADP
- The ADP KV cache connector with one ADP accelerator card, one drive behind the card.
- One long session
- A 160,000-token prompt, GPU prefix cache cleared before the follow-up turn; GPU-only median of three runs.
- Sessions at once
- N = 1–16 opencode conversations of 8,600 tokens plus a 192-token question, median of three bursts.
- Agent traffic
- Replayed opencode developer traces, prompts of 64,000–199,000 tokens, five minutes per level of 1–16 developers, 8–22 requests per level.
Still computing returning sessions again?
Measure what a KV cache gives your agents, against GPU-only and against LMCache. We are happy to run the comparison on your model and your traces.