Learn AI Math

PagedAttention

What is PagedAttention?

In one sentence: PagedAttention is a way to store the KV cache in small fixed-size blocks, like pages in a book, to avoid wasting memory.

Without it, servers reserve one big chunk of memory per request, much of which goes unused. PagedAttention hands out small pages only as needed and can share pages between requests. It was introduced by vLLM.

What does PagedAttention look like?

Two users sending the same long system prompt can share the same KV cache pages.

Why does PagedAttention matter?

PagedAttention lets servers handle many more users at once.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.