Traditional KV Cache: Fixed, Contiguous Memory Blocks

Prior to Paged KV Cache, LLM serving systems pre-allocated large, contiguous GPU memory blocks for each sequence, sized for the maximum possible length, leading to significant internal and external fragmentation for variable-length requests.

Sources

Open the full topic