Skip to content
inference.academy

glossary/serving/continuous-batching

Continuous batching

also iteration-level scheduling, in-flight batching

Scheduling at the granularity of a single decode step instead of a whole batch. When one request finishes, its slot is filled by the next waiting request at the very next step, so the batch never drains to its slowest member. Introduced by Orca. It is the reason a GPU can stay busy under a mix of short and long answers, and the reason a KV cache must be allocated and freed per request rather than per batch.


one step

How long a freed slot stays empty, versus the length of the longest answer under static batching.


See it happen


Related