What does KV cache mean in inference serving?
The KV cache stores attention keys and values computed for earlier tokens in each active sequence. Decode steps read this state instead of recomputing the full prefix for every new token. Serving systems reserve cache capacity, allocate it as prompts and outputs grow, and release it on completion. Layout, precision, and sharing policies determine how much useful context fits on each accelerator.