PagedAttention's Efficiency: Near-Zero KV Cache Waste

PagedAttention, inspired by OS virtual memory, fragments the KV cache into fixed-size pages, drastically reducing memory fragmentation to under 4% waste, compared to 60-80% in traditional systems, enabling higher throughput and larger batch sizes.

Sources

Open the full topic