Chapter 05
Batching & continuous batching
Sharing a GPU between users.
One user. One token per step, 4.8 ms per step, and the GPU mostly waiting.
01 / 09
The batching arithmetic, once
With sequences decoding together, one step costs , so throughput is
linear in until , then flat. Static batching pays for that with idle slots and queueing; continuous batching (Orca, 2022) re-forms the batch at every step, which is why every serving engine does it now.