Lattice
Skip to content

Paged attention

Managing the KV cache in fixed-size blocks rather than one contiguous allocation, so memory is not fragmented and sequences can share a batch.

By Entry last reviewedmethod

What it implies

This is the change that made GPU serving practical at scale, and the reason vLLM became the default. Before it, a batch was sized for the worst-case sequence in it. After it, you size for the average and grow dynamically. If you are choosing a runtime and do not know any other criterion, this is the one to know.

Tools in this index

Related terms

Rules of thumb

  • A definition is only useful next to the decision it changes. Read the linked layer to see where this term bites.
  • If a vendor's definition differs from this one, ask what it measures. Marketing definitions rarely name a number.
  • Every optimisation spends latency, memory or quality somewhere. Find out which before you turn it on.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.