Inference, Serving & Production·Question 72 of 76Quick-fire

What is continuous (in-flight) batching, and how does it change throughput?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Naive batching waits to group requests and runs them in lockstep, so a long generation holds up short ones and the GPU sits idle. Continuous batching schedules at the token level, adding new requests and retiring finished ones every step, which keeps the GPU busy and can multiply throughput for a shared endpoint. The tradeoff is a little added latency for an individual request under load, and it interacts with KV-cache memory since concurrent sequences all hold cache. You mostly get it from the serving framework rather than building it, but it explains why hosted throughput and latency depend heavily on load and why self-hosting economics hinge on batching well.

Full worked answer

Naive batching waits to group requests and runs them in lockstep, so a long generation holds up short ones and the GPU sits idle. Continuous batching schedules at the token level, adding new requests and retiring finished ones every step, which keeps the GPU busy and can multiply throughput for a shared endpoint. The tradeoff is a little added latency for an individual request under load, and it interacts with KV-cache memory since concurrent sequences all hold cache. You mostly get it from the serving framework rather than building it, but it explains why hosted throughput and latency depend heavily on load and why self-hosting economics hinge on batching well.

Learn more: Production topic

What a good answer covers

  • Naive batching waits to group requests and runs them in lockstep, so a long generation holds up short…
  • Continuous batching schedules at the token level, adding new requests and retiring finished ones every…
  • The tradeoff is a little added latency for an individual request under load, and it interacts with…
  • You mostly get it from the serving framework rather than building it, but it explains why hosted…

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep