AI inference glossary
Serving

Batching

Also known as continuous batching, dynamic batching

In plain English

Batching is like putting several passengers on one bus: the GPU handles multiple requests together so each trip does more useful work.

Technical definition

Batching groups work from multiple requests so an accelerator can process their tokens together.

Engineering details

Large matrix operations use GPUs more efficiently than many tiny operations. Modern serving engines continuously add and remove sequences as requests arrive and finish, without waiting for a fixed batch to complete. The resulting batch shape changes throughout prefill and decode.

Why it matters

Batching creates the core throughput-latency tradeoff. Larger effective batches amortize weight reads and launch overhead but generally increase the time between tokens for each user.

How to read it in InferenceX

Concurrency supplies work to the batcher. Parallelism, sequence lengths, request completion, and scheduler policy determine the effective batch observed by the GPU.