pagedattention-kv-cache-paging

IN premiseentries/2026/06/21/wiki-LLaMA-chunk-4.md

Created 2026-06-21T09:50:09+00:00

PagedAttention (used in vLLM) applies virtual memory-style paging to the KV cache, reducing GPU memory waste during inference.

Summary

vLLM manages the memory used for tracking attention history by breaking it into small, independently allocated blocks rather than reserving one fixed chunk per request. This means GPU memory is used more tightly, letting the same hardware handle more concurrent users or longer generations without wasting space on unused allocations.

Dependents

These beliefs depend on this one: