KV cache
A KV cache stores attention keys and values from earlier tokens so a model can reuse them during generation.
Reusing these tensors avoids recomputing attention keys and values for the entire preceding sequence at each generation step. Cache memory grows with sequence length and concurrent requests. It is an inference mechanism, not persistent conversation memory or a guarantee of discounted API billing.
Source: Hugging Face PagedAttention documentation