RunInfraby RightNow
  • CatalogNew
  • Pricing
  • Research
  • Contact
DashboardSign inGet started
Home/Glossary/KV cache

Memory

KV cache

What it is

The KV cache stores attention keys and values computed for earlier tokens in each active sequence. Decode steps read this state instead of recomputing the full prefix for every new token.

Why it moves cost and latency

Caching removes repeated attention work, but its memory footprint grows with sequence length and active requests. Cache pressure can cap concurrency, force eviction, or move the system into slower memory paths.

What it looks like in practice

Serving systems reserve cache capacity, allocate it as prompts and outputs grow, and release it on completion. Layout, precision, and sharing policies determine how much useful context fits on each accelerator.

Where we measured it

  • Measured prefix-cache throughput->

Related terms

  • Continuous batching->
  • Paged attention->
  • Prefix caching->
  • Inter-token latency->
  • Concurrency->
  • Speculative decoding->
  • KV cache quantization->
  • Grouped-query attention->
  • Multi-query attention->
  • HBM->

Questions this definition answers

What does KV cache mean in inference serving?

The KV cache stores attention keys and values computed for earlier tokens in each active sequence. Decode steps read this state instead of recomputing the full prefix for every new token. Serving systems reserve cache capacity, allocate it as prompts and outputs grow, and release it on completion. Layout, precision, and sharing policies determine how much useful context fits on each accelerator.

Why can KV cache move cost or latency?

Caching removes repeated attention work, but its memory footprint grows with sequence length and active requests. Cache pressure can cap concurrency, force eviction, or move the system into slower memory paths.

If you need custom optimization for a specific model, describe what you need

Describe the model and hardware you want optimized...
ModelsAuto engineAuto GPU
End-to-end encryption
Isolated GPU infrastructure
No training on your data
SOC 2 Type II
RunInfraby RightNow

© 2026 RunInfra. All rights reserved.

System status
Pipeline BuilderModelsCost CalculatorPricingStartupsBenchmarksDocsResearchNewsContact
Backed by
YCombinator
AICPA Type II
SOC 2
NVIDIA Inception ProgramNVIDIA Inception Program
Ask AI about RunInfra
Part of RightNow
SecurityDPAAUPCookiesTermsPrivacy