Continuous Batching
What is Continuous Batching?
In one sentence: Continuous batching lets a server add new requests to a running batch as soon as others finish, instead of waiting for the whole batch.
In static batching, everyone in a batch must wait for the longest answer. With continuous batching, a finished request leaves and a new one jumps in right away, keeping the GPU busy.
What does Continuous Batching look like?
A server can start your request mid-way through while other users' answers are still being written.
Why does Continuous Batching matter?
It greatly increases throughput and lowers waiting times for AI services.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/continuous-batching/">Continuous Batching, explained simply</a> (The AI Math Dictionary)