In a static batch, a short answer can finish while a long answer keeps the batch occupied. A continuous scheduler can reuse the freed capacity for another request. The serving engine must coordinate prefill and decode with available cache memory. Those phases describe work within a request; continuous batching describes how work from multiple requests is scheduled.
Example: an overnight summarization job may favor processing many documents per minute, while a live voice interaction needs a tight response deadline. A schedule that works well for one can be unsuitable for the other.
Our suggested comparison is to load-test realistic input and output lengths, then look at both aggregate inference throughput and the slow tail of request latency. Continuous batching admits new work during generation. Other forms of dynamic batching may only group waiting requests before execution; a provider’s asynchronous batch API may accept a file of jobs and return results later. Check which scheduling behavior a service actually implements. Alongside throughput, record queue time, time to first token, gaps during generation and full request completion, and count failed or rejected requests: a high aggregate rate can coexist with an unacceptable wait for some users.
Follow a freed slot
Hand-worked example, not a benchmark: a server has two request slots. Requests A, B and C are all waiting before round 1 and need two, four and two generation rounds respectively. A and B start first. Ignore prefill, memory limits and scheduling overhead, and assume every round takes the same time. A dash is an unused slot.
| Round | Static batch | Continuous batch |
|---|---|---|
| 1 | A, B | A, B |
| 2 | A, B | A, B |
| 3 | —, B | C, B |
| 4 | —, B | C, B |
| 5 | C, — | Done |
| 6 | C, — | Done |
A finishes after round 2 in both schedules. In the static batch its slot sits empty until B finishes, so C waits four rounds before starting; in the continuous batch C takes A’s slot and waits two. The static schedule finishes all three requests after six rounds; the continuous schedule finishes them after four. B still needs its four rounds: admitting C does not shorten B’s own work.
These invented counts show slot reuse only. They do not predict a speedup, token rate or time to first token. Real rounds change length as the batch changes, a new request needs its prefill before it can generate, and a free slot does not guarantee enough cache memory for another request. Hugging Face’s documentation describes the same loop: every generation step, the scheduler checks for finished requests and schedules new ones to join the batch.
Sources
- Hugging Face: Continuous batching — Documents admission of new requests at generation steps; checked November 3, 2026.
- NVIDIA Triton: Dynamic batcher — Describes forming batches from queued requests before sending them for inference; checked October 7, 2026.
Go deeper
- Yu et al.: Orca, a Distributed Serving System for Transformer-Based Generative Models paper
Follow iteration-level scheduling and selective batching in the original system paper, with an accompanying conference presentation.