Skip to content
English

Switch theme

// ⚡ 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

2017 Transformer &…2019 Multi-Query A…2022 Speculative D…2022 Continuous (I…2023 PagedAttentio…2023 Attention Sin…

01Original paper

! No single verifiable original paper

02Where it sits

Learn the left column first; the right column builds on this one.

Related:Grouped-Query Attention (GQA)

03Learning resources

Official docs, explainers, courses and reference code. All links checked.

04Where the course teaches it

On learning paths:Understanding an LLM End to End

For AI / data

Data updated: AI algorithms & curriculum(UTC+8)