Throughput
The number of requests or tokens a system processes per unit of time. The main how-much-can-we-serve metric, unlike latency, which answers the question of how fast one user was answered.
Why It Matters
For a service with thousands of users, what matters is not the speed of a single response but how many responses the system produces per second. High throughput on the same infrastructure means more clients per server and therefore a lower cost per request.
How It Is Measured
- tokens per second in total across all requests;
- requests per second;
- tokens per second per GPU — for comparing the efficiency of the hardware.
What It Depends On
- the size of the model and quantization;
- batching — grouping requests together;
- the KV cache and how efficiently it is reused;
- the memory bandwidth of the GPU.
The Link to Latency
Rising throughput usually makes the latency of an individual request worse, and vice versa. This is a classic trade-off: in chats responsiveness matters more, while in bulk processing the total throughput does.