Key Innovation: Virtual Paging for KV Cache

PagedAttention's core innovation lies in applying the virtual memory concept of paging to the Key-Value (KV) cache of LLMs. It stores KV cache tensors in non-contiguous memory blocks, allowing dynamic allocation, deallocation, and sharing of these blocks across different requests, maximizing GPU utilization.

Sources

Open the full topic