← Back to LLM Fundamentals

Inference at Scale

The KV Cache Problem Is an OS Problem. Paging Is the Fix

The KV cache grows with every token and every user, and naive serving wastes memory by reserving a full block for each request. PagedAttention splits the cache into fixed-size blocks, like an operating system splits RAM into pages.

Start by reading the article for this lesson.

Read the articleOpens in a new tab

Check what you learned

Answer all 3 questions. You need at least 2 right to pass.

1. What do naive serving systems waste?

2. What idea does PagedAttention borrow from operating systems?

3. How much did vLLM improve throughput in the paper's evaluations?