Continuous Batching
Definition
Merging of running model requests, in which finished requests are continuously replaced by new ones.
An inference server reschedules the batch during generation steps. Finished requests leave it and new requests are added. The entire batch therefore does not have to wait for the longest response. Higher throughput does not automatically mean shorter waiting times for every individual request.
Simply explained
A restaurant occupies vacant seats immediately, instead of waiting until all guests have left.
Why it matters in practice
Relevant for self-operated LLM services with many incoming requests at the same time.
Example from business
Example scenario: An internal chat service bundles responses of different lengths on the same GPU.
Limits and pitfalls
- Confuse throughput with single latency; ignore memory limits, queues and long requests; do not test unequal load.
Origin & history
Distributed with scalable LLM inference servers as an alternative to rigid generation stacks.
Use in mid-sized companies
- Test with realistic arrival rates and measure throughput, time to the first token as well as high latency percentiles together.
Frequently asked questions
Is this offline batch processing?
No. Does it require multiple GPUs? Not necessarily. Does each request remain independent? Semantically yes.
Sources
- Continuous batching · Hugging Face, Continuous batching
Source check: 10/09/2026. Definition and documented classification verified; examples describe possible applications.
Editorially reviewed on: