// ⚡ Inference Acceleration & Serving
KV Cache
Stores past keys and values so each decoding step doesn't recompute them.
Foundational core
IN PLAIN WORDS
Each new token attends to all previous ones; caching their K/V means only the new token is computed each step. Memory grows linearly with context — the problem GQA, MLA and PagedAttention address.
Used in: Every attention-based LLM inference engine; linear-attention models (e.g. Laplace 3B) replace it with a fixed-size state
TIMELINE · prerequisites → this → what builds on it
01Original paper
02Where it sits
Learn the left column first; the right column builds on this one.
Learn first
Related:Grouped-Query Attention (GQA)
Left: prerequisites · right: builds on this · dashed: related. Full map →
03Learning resources
Official docs, explainers, courses and reference code. All links checked.
Official docs
Explainers
Reference code
04Where the course teaches it
On learning paths:Understanding an LLM End to End
For AI / data
- Verification: pending, checked 2026-10-22.
- JSON: /api/learn/algorithms.json (id:
kv-cache)