ai

Batching cuts cost and adds latency. Pick one.

The throughput graph and the latency graph point in opposite directions.

Larger batches keep accelerators busy and lower cost per token. They also make the first user in the batch wait for everyone else.

Serving systems hide this with continuous batching, which is better but not free. Tail latency still grows under load.

The right answer depends on the product. A coding assistant and a overnight summariser should not share a queue policy.

#agents#open weights#accelerators