Continuous Batching
Quick definition
A serving method that adds and removes generation requests from a shared batch between decoding steps.
A serving method that adds and removes generation requests from a shared batch between decoding steps.
Unlike fixed batches, continuous batching lets completed sequences leave and new requests join while other outputs continue.
Example: A chatbot server serves new users without waiting for every earlier response to finish.
Common use cases: High-throughput LLM APIs, efficient GPU use, and interactive serving.
Examples
- A chatbot server serves new users without waiting for every earlier response to finish.
Use cases
- High-throughput LLM APIs, efficient GPU use, and interactive serving.
Frequently asked questions
What is Continuous Batching?
A serving method that adds and removes generation requests from a shared batch between decoding steps.
What should I know about Continuous Batching?
Unlike fixed batches, continuous batching lets completed sequences leave and new requests join while other outputs continue.