Servingcore
Throughput vs latency
Bigger batches serve more users per GPU but each user waits longer per token.
What it is and why it exists
Throughput (tokens/s per GPU) rises with batch size until compute saturates; per-request latency rises too. Every deployment picks a point on that curve from the SLA (e.g. p95 inter-token latency < 50 ms) and the cost target.
Quick prototype
—
In production, at scale
Load-test with realistic prompt/output length distributions, plot throughput vs p95 latency per batch size, choose the operating point, and autoscale before saturation.
Vendors and tools
| vLLM benchmark scripts / GenAI-Perf / LLMPerf | Load testing LLM servers |
|---|
How it fails
- Measuring throughput with uniform tiny prompts
What the interviewer asks next
Your interactive app and a nightly batch job share GPUs. Problem?
Batch jobs push batch sizes up and interactive latency degrades. Separate deployments, priorities, or schedule the batch for off-peak.