Continuous Batching
Also known as: In-Flight Batching
Category: Generative AI / LLM
A serving optimization that dynamically adds and removes individual requests from a batch as they complete, maximizing GPU utilization for LLM inference.
Full Explanation
Continuous batching (also called in-flight batching or iteration-level batching) is a serving optimization that dramatically improves LLM inference throughput. In static batching, all requests in a batch must complete before any new requests can be processed, leading to GPU idle time as shorter sequences finish before longer ones. Continuous batching solves this by operating at the iteration level: after each decoding step, completed sequences are removed from the batch and new requests are immediately inserted. This keeps the GPU fully utilized regardless of varying sequence lengths. Continuous batching can improve throughput by 2-10x compared to static batching depending on the workload characteristics. It is implemented in serving frameworks like vLLM, TensorRT-LLM, and text-generation-inference. The technique is essential for efficient production LLM serving and has become a standard feature in modern inference engines.
Related Terms
More in Generative AI / LLM
Explore More
- AI Tools Library — Discover AI tools related to Continuous Batching
- AI Education — Courses to learn about Generative AI / LLM
- AI News — Latest news and updates