Raising the batch size increases tokens per second for the whole server. What usually happens to each user's latency?
- Exam domain
- Inference Concepts15% of the exam
- Difficulty
- Medium
- In this mock
- 8 questions on this domainPractise this domain
Why the exam asks this
Inference Concepts (15% of the exam)
Objective in the exam guide: Latency versus throughput tradeoffs.
Latency versus throughput is its own objective.
Why B is the answer
It can rise, so set batch size against the latency target
Larger batches raise total throughput but each request shares the GPU with more others, so per-request latency can rise. Tune against your latency SLA.
Remember: Bigger batches raise throughput, can raise latency.
How it works
Latency and throughput trade off through batch size, concurrency and hardware.
In detail
- Throughput and latency trade off.
- Tune batch size to the SLA.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. It becomes zeroWrong
Latency cannot be zero.
B. It can rise, so set batch size against the latency targetRight
Bigger batches raise throughput, can raise latency.
C. It always falls, because more batching makes every single request faster at every load levelWrongMost tempting
Latency often rises at larger batches.
Why it tempts: Batching helps throughput, so it seems to help everyone.
D. It is unaffectedWrong
Batching changes latency.
Use case
An illustrative scenario, not a real incident.
Illustrative: a batch of 64 doubles throughput but pushes p95 latency past the 2-second target.
See it in different ways
flowchart TD
Q{"Workload type?"}
Q -->|"Interactive chat"| A0["Favor low latency"]
Q -->|"Offline batch jobs"| A1["Favor throughput"]How to read this chart
- At "Workload type?": if "Interactive chat", go to "Favor low latency"; if "Offline batch jobs", go to "Favor throughput".
mindmap
root(("Serving goals"))
n1["Latency"]
n2["Small batches"]
n3["Interactive"]
n4["Throughput"]
n5["Large batches"]
n6["Batch jobs"]How to read this chart
- The centre is "Serving goals".
- "Latency" covers "Small batches", "Interactive".
- "Throughput" covers "Large batches", "Batch jobs".
Related questions
Learn more
- Our lesson: Inference concepts
- Practise Inference Concepts questions in the mock exam
- Source: TensorRT-LLM documentation
- TensorRT-LLM documentation
- NVIDIA Dynamo documentation
- Efficient Memory Management for LLM Serving with PagedAttention (arXiv)
- Fast Inference from Transformers via Speculative Decoding (arXiv)