Memory Efficiency: Paged KV Cache vs. Contiguous Allocation

Unlike traditional contiguous KV cache, Paged KV Cache's non-contiguous memory management, inspired by operating system paging, drastically reduces fragmentation and allows for sharing of KV cache blocks across different requests, leading to superior memory utilization.

Sources

Open the full topic