Index Ai Academy
Glossary · Phase 5 · Transformers

KV cache

Saving the keys and values of earlier tokens so the model doesn't recompute them for every new token.

Learn it properly

Inference and the KV cache · Why generation is fast after the first token. About 35 minutes.

Open the lesson Create a free account

Other terms from the same lesson