A GPU serving an LLM sits at 20% utilization while requests queue. Which change most improves throughput?
- 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: Improving throughput and latency through batching, token streaming, TensorRT-LLM, quantization settings, and caching.
Throughput techniques are named one by one.
Why C is the answer
Enable continuous (in-flight) batching
Continuous batching adds and removes requests from the running batch each step, keeping the GPU busy and raising throughput.
Remember: Continuous batching keeps GPUs busy.
How it works
Batching, token streaming, TensorRT-LLM, quantization and caching improve throughput and perceived latency.
In detail
- Batching raises utilization.
- Continuous batching handles uneven lengths.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Increase the maximum output lengthWrong
Longer outputs add work.
B. Process one request at a time to keep latency predictable and the queue order perfectly fairWrongMost tempting
One at a time wastes the GPU.
Why it tempts: Fairness and predictability sound like good serving goals.
C. Enable continuous (in-flight) batchingRight
Continuous batching keeps GPUs busy.
D. Lower the GPU clock to save powerWrong
Lower clocks reduce throughput.
Use case
An illustrative scenario, not a real incident.
Illustrative: in-flight batching in TensorRT-LLM raises requests per second fourfold on the same GPU.
See it in different ways
stateDiagram-v2 state "Idle gaps" as s0 state "Batched" as s1 state "High utilization" as s2 state "Latency target checked" as s3 [*] --> s0 s0 --> s1: enable continuous batching s1 --> s2 s2 --> s3 s3 --> [*]
How to read this chart
- It starts at "Idle gaps".
- From "Idle gaps", "enable continuous batching" moves it to "Batched".
- From "Batched", it moves to "High utilization".
- From "High utilization", it moves to "Latency target checked".
- It ends at "Latency target checked".
flowchart LR S0["Enable batching"] --> S1["Stream tokens"] --> S2["Cache prefixes"] --> S3["Quantize"] --> S4["Load test"]
How to read this chart
- Read it in order: Enable batching, then Stream tokens, then Cache prefixes, then Quantize, then Load test.
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)