Large Language Models · Level 2 of 5
KV Cache
Stored attention keys and values reused during autoregressive decoding.
Caching avoids recomputing previous tokens' projections but consumes memory.
Example
A server retains past token representations while generating the next token.
Listen to the definition and example
Audio transcript
KV Cache. Stored attention keys and values reused during autoregressive decoding. Caching avoids recomputing previous tokens' projections but consumes memory. For example: A server retains past token representations while generating the next token.
Explore this concept
Why it matters
This helps you interpret model behavior and control how text is processed or generated.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.