KV cache

Memory a model keeps of the tokens it has already processed, so it does not recompute them for every new token.

KV cache, common card #120 in The Glitch AI glossary: Memory a model keeps of the tokens it has already processed, so it does not recompute them for every new token.
GLS 120 · common

Also called: Key-value cache.

For: Builders

Why it matters

It makes generation fast, and it is the main memory cost of long conversations.

In practice

Each new word in a reply reuses the cached work for everything written so far.

Watch for

Long contexts mean big caches; that is part of why long-context calls cost more.

Related terms

Prompt caching · Long context · Inference

Sources

Definition updated 2026-10-29.

The Ultimate AI Glossary (2027): every term