You quantize a model from FP16 to INT4 weights. What trade-off should you expect?
- 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: Optimization techniques: quantization and precision tradeoffs, KV and prefix caching, speculative decoding, tensor parallelism, disaggregated serving, and context-length effects on GPU memory.
Precision trade-offs appear in two inference objectives.
Why B is the answer
Less memory and often faster, with a possible accuracy drop to measure
Lower-precision weights cut memory and often raise speed, but can reduce accuracy. Evaluate on your own tasks before switching.
Remember: Quantization trades a little accuracy for memory and speed.
How it works
Quantization stores weights or activations in lower precision, trading accuracy for memory and speed.
In detail
- Quantization saves memory.
- Always re-evaluate accuracy.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Training becomes required before any useWrong
Post-training quantization needs no full training.
B. Less memory and often faster, with a possible accuracy drop to measureRight
Quantization trades a little accuracy for memory and speed.
C. Higher memory use and slower serving, with accuracy unchanged on every task you testWrongMost tempting
Memory falls, not rises.
Why it tempts: It describes the opposite effect.
D. No change in memory, speed or qualityWrong
Quantization changes memory and speed.
Use case
An illustrative scenario, not a real incident.
Illustrative: INT4 lets a 70B model fit on fewer GPUs with a 1-point drop on the team's eval.
See it in different ways
flowchart TD
Q{"Accuracy drop acceptable?"}
Q -->|"Yes"| A0["INT4 or FP8"]
Q -->|"No"| A1["Stay at FP16 or BF16"]How to read this chart
- At "Accuracy drop acceptable?": if "Yes", go to "INT4 or FP8"; if "No", go to "Stay at FP16 or BF16".
flowchart LR S0["Baseline eval"] --> S1["Quantize"] --> S2["Re-run eval"] --> S3["Compare latency and memory"] --> S4["Decide"]
How to read this chart
- Read it in order: Baseline eval, then Quantize, then Re-run eval, then Compare latency and memory, then Decide.
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)