AI · Flashcard
What is the KV cache during LLM generation?
Why this is the answer
The KV cache holds the attention keys and values for already-seen tokens so each step reuses them; it speeds generation but is distinct from caching whole responses.
Read more in the docs