Skip to content

Topic

KV cache behaviour

The working state written during prefill, appended to during decode, and sharing device memory with the weights.

Current stories

buildOne report1 publisher

SparseEngine's 10x speedup over vLLM compares unequal batch sizes

SparseEngine's paper reports about 10x vLLM decode throughput at each system's largest tested batch size, but 1.5x to 2.6x at matched batch sizes. Plan on the matched range. The paper measured it with Quest and OmniKV.

Publishers:dev.to

Reality

Evidence58
Adoption
Not scored
Hype gap+35
Incentives
Not scored
Confidence60
buildOne report1 publisher

llama-server's default prompt cache mixes two LoRA scales into one answer

llama-server's default prompt cache restored KV built under the wrong LoRA scale on 10 of 10 test prompts in release b11514. According to the dev.to write-up that found it, servers that swap adapters per request behind a shared system prompt trigger it all day.

Publishers:dev.to

Reality

Evidence68
Adoption
Not scored
Hype gap+10
Incentives20
Confidence62
buildOne report1 publisher

Local LLM speed follows memory bandwidth only while the whole model fits in VRAM

Llama 8B on an RTX 4060 Ti 16GB fell from 42.5 to 3.8 tokens a second with a fifth of the model in system RAM, according to a dev.to benchmark. For a local coding agent, that makes VRAM for weights plus context the first spec to check, ahead of bandwidth.

Publishers:dev.to

Reality

Evidence45
Adoption
Not scored
Hype gap+5
Incentives
Not scored
Confidence40
buildOne report1 publisher

Deployment held up under concurrent load after targets fell to 131,072 tokens and 16 sequences

Qwen Flash-Next NVFP4 ran in vLLM at 131,072 tokens of context and 16 sequences only after loader patches and cuts to its original targets. Its one load test covers only the bfloat16 KV-cache baseline, so operators on the later B12x stack have to run their own.

Publishers:dev.to

Reality

Evidence45
Adoption8
Hype gap0
Incentives
Not scored
Confidence40
buildOne report1 publisher

A 4-bit 7B model that fits in 4 GB still runs out of memory near 30,000 tokens

Quantized to about 4 GB, a 7B model still runs out of GPU memory near 30,000 tokens as its KV cache grows, according to a dev.to walkthrough. Sizing a card by its weight file alone leaves that growing cache off the memory budget.

Publishers:dev.to

Reality

Evidence35
Adoption
Not scored
Hype gap+15
Incentives25
Confidence40
buildConfirmed3 publishers

DeepSeek's new encoder-decoder splits inference into an 8B prefill and a 16B decode

V4.1-Flash retires the V4 Pro line and carries two active-parameter counts, 763B total with 8B on input tokens and 16B on output, so one sizing number no longer covers both phases of a request. Baseten had it running on day zero.

Perspective Coverage

3 publishers
Builder
Builder 40%
Operator
Operator 28%
Investor
Investor 32%

Reality

Evidence60
Adoption35
Hype gap+25
Incentives40
Confidence58
buildOne report1 publisher

Traffic past 15 requests a minute can route a prompt away from its cached prefix

OpenAI's guide prices reused input tokens at a discount of up to 90 percent. It also says cached key-value states sit on individual machines, so an unchanged prefix can still miss the cache when routing overflows.

Reality

Evidence58
Adoption
Not scored
Hype gap+10
Incentives75
Confidence65
buildOne report1 publisher

A 70B model gets 2.74 bits per parameter on a 24 GB card before anything else loads

The weights formula is the easy part of sizing local inference. Quantization metadata, the KV cache and the runtime's own buffers decide whether a 70B model fits, and a dev.to walkthrough shows where the advertised bit width stops helping.

Publishers:dev.to

Reality

Evidence45
Adoption
Not scored
Hype gap+5
Incentives20
Confidence55
buildOne report1 publisher

A 100K-token agent session prefills 3M tokens over thirty turns without prefix reuse

DigitalOcean's serving guide puts the cost of a long request on two mechanics, the prefill pass and the KV cache, and says the real choice is which mix of caching, prefix reuse and retrieval fits the budget.

Publishers:dev.to

Reality

Evidence40
Adoption
Not scored
Hype gap+10
Incentives80
Confidence45
buildOne report1 publisher

Paging the KV cache into 16-token blocks caps the waste at 960 KB per sequence

One 8,192-token session on a 27B model holds 512 MB of key-value cache, or 64 KB for every token generated. How many of those sessions fit in free VRAM sets serving concurrency, and paging decides the waste.

Publishers:dev.to

Reality

Evidence58
Adoption
Not scored
Hype gap+24
Incentives45
Confidence48
buildOne report1 publisher

Qwen3.5-9B's 262K context window would consume the whole 8GB budget in KV cache

A dev.to guide to running local models on 8GB prices the KV cache between 15KB and 160KB per token depending on architecture. At 32K tokens held, that spread is the difference between 0.5GB and 5GB of a fixed budget.

Publishers:dev.to

Reality

Evidence22
Adoption
Not scored
Hype gap+45
Incentives62
Confidence58
buildOne report1 publisher

MLA's 512-Scalar KV Latent Cuts Cache 98%, Enabling 512 Concurrent 128k Streams

Decode is memory-bandwidth bound. Eight concurrent 128k Llama 3 70B streams need 97.8 ms of HBM transfer for every token generated, and DeepSeek's 512-scalar latent is aimed squarely at those bytes.

Publishers:dev.to

Reality

Evidence45
Adoption
Not scored
Hype gap+40
Incentives50
Confidence50
buildOne report1 publisher

A twelvefold longer prompt costs this RTX 3090 only 12 percent of its decode throughput

nano-vLLM's decode cost fits in one expression, W/B plus KV(Tavg), and a batch-1 context sweep on Qwen3-0.6B shows why those two terms move in opposite directions as you add requests or lengthen prompts.

Publishers:dev.to

Reality

Evidence47
Adoption
Not scored
Hype gap+12
Incentives25
Confidence45
buildOne report1 publisher

Decode drags the entire model out of VRAM once per word

Prefill and decode sit on the same card and answer to different limits, which is why a GPU with more arithmetic and the same memory read rate leaves your time per output token exactly where it was.

Publishers:dev.to

Reality

Evidence44
Adoption
Not scored
Hype gap+16
Incentives28
Confidence56