Why it matters

Paged Attention shapes vLLM. Understanding shapes serving.

Advertisement

The architecture

KV cache in fixed-size blocks.

Block table maps logical to physical.

Copy-on-write for shared prefixes.

Paged Attention memoryFixed-size blockse.g. 16 tokensBlock tablelogical -> physicalCopy-on-writeshared prefix saveKwon et al. 2023 vLLM; foundation for prefix + swap + fragmentation-free
Paged Attention deep.
Advertisement

How it works end to end

Kwon et al. 2023.

Block size 16-32 typical.

Prefix sharing.

Swap to CPU / disk possible.