What is it?
KV cache is temporary memory used during generation to reuse attention information from earlier tokens.
In a Transformer, attention uses key and value states. Keeping those states avoids recomputing the same earlier context for every new token. The cache uses memory and grows as the sequence grows.