Index

Efficient Memory Management for Large Language Model Serving with PagedAttention

Store each conversation's attention cache in small fixed-size blocks behind a table, the way an operating system pages memory, and two to four times as many tokens come off the same GPU.

Read the original ↗

A language model generating text keeps a growing cache for every conversation it is serving, and in 2023 the serving systems stored each cache the way a beginner stores an array: one contiguous block, reserved at the maximum size up front. This paper measured how much of that memory held anything, found the answer was at best about four tenths, and fixed it with the oldest trick in the operating-systems textbook.

Included with a plan

This discussion is included with a plan. The first three lessons of every track are free, with their boards and videos. A plan unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Related on chalk

The same idea as a board, lab, video or lesson.

Further reading

Read the original for the full argument and its evidence.