KV Cache
KV Cache
What problem it solves
Stops the model recomputing the whole passage on every token it generates — this is what makes generation speed usable.
What it is
Caching the attention intermediates already computed, so only new tokens need incremental work.
The cost is that it occupies VRAM continuously — which directly caps how long a context you can afford.
Why it matters
It is the most common cause of OOM when deploying locally. Raise the context size and you hit this first.
Related guides
What you can do now
Practitioner deep-dive: serving deep dive guide (AI Models site) ↗
Sources
Use this term in a task
Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.