AI inference in production: the serving stack
Latency vs throughput, the Pareto frontier, and where Triton, TensorRT-LLM, Dynamo and NIM each fit.
- Compare and contrast training and inference architecture requirements and considerations.
- Explain the purpose and use case of various NVIDIA solutions.
- Describe the software components related to the life cycle of AI development and deployment.
NVIDIA's inference page frames serving as a tension between two goals that pull against each other: interactivity (each user gets fast responses) and throughput (the GPU serves as many users as possible). The business number that combines them is cost per token (or cost per inference).
01The Pareto frontier
Batch many requests together and the GPU runs efficiently (high throughput), but each request waits for the batch, so latency rises. Run requests one by one and each is fast, but the GPU is half idle. Plotting every configuration gives a curve called the Pareto frontier: you cannot improve one axis without giving up some of the other. Optimisation work, such as TensorRT, better batching and new precisions like FP4, pushes the whole frontier outward, so you get more of both. That is the point NVIDIA is making when it talks about lowering cost per token.
02Three layers of the inference stack
| Layer | Job | NVIDIA pieces |
|---|---|---|
| Production operation | Run the service: distributed serving, orchestration, autoscaling, memory management | Dynamo, Triton, NIM, Kubernetes, DGX Cloud serverless inference |
| Application acceleration | Make each request faster: kernel fusion, overlapping compute with communication, quantisation | TensorRT, TensorRT-LLM, Model Optimizer |
| Infrastructure access | Expose GPU, networking and memory capabilities efficiently | CUDA, NVLink/NVLink Switch, NCCL, GPUDirect |
03The serving tools, one sentence each
- TensorRT-LLM: open-source library for fast LLM inference, with a Python runtime and PyTorch-style model authoring.
- Triton Inference Server: general-purpose open-source model server for many frameworks, with dynamic batching, concurrent model execution and model ensembles.
- Dynamo: open-source, low-latency framework for distributed serving across large GPU fleets; it can schedule requests across many GPUs and works with engines such as vLLM and SGLang.
- NIM: prebuilt microservice containers (model + engine + API) to self-host inference anywhere: cloud, data center, workstation.
- DGX Cloud Serverless Inference: a managed option that autoscales across clouds, for teams that do not want to run the stack.
04Techniques that make inference cheaper
| Technique | What it does |
|---|---|
| Dynamic / continuous batching | Groups requests arriving close together so the GPU works on many at once, without making early requests wait too long |
| Quantisation | Uses fewer bits per number (FP8, INT8, FP4/NVFP4) so the model needs less memory and bandwidth |
| Kernel and layer fusion | Combines several operations into one GPU kernel to cut memory traffic |
| KV cache management | Reuses and pages attention state efficiently so more conversations fit on a GPU |
| Speculative decoding | A small draft model guesses tokens that the large model verifies in parallel |
| Disaggregated serving | Runs the prompt-processing (prefill) and token-generation (decode) phases on different GPUs, each tuned for its phase |
05Hardware at the top end
For the largest models, inference also spans many GPUs. The page highlights rack-scale systems such as GB300 NVL72, where 72 GPUs are joined by NVLink Switch into one large accelerator, and low-precision formats such as NVFP4. Treat the performance multipliers on vendor pages as marketing claims; what the exam wants is the idea that bigger NVLink domains and lower precision raise both throughput and interactivity.
✦Key terms: flip the cards
- Explain the latency vs throughput trade-off and cost per token.
- Place Triton, TensorRT(-LLM), Dynamo and NIM correctly.
- Know common inference optimisations: batching, quantisation, fusion.
- Maximum throughput is not always the goal; interactive apps need latency targets.
- Triton and Dynamo are servers/frameworks; TensorRT is the optimiser/engine underneath.
?Quick quiz
1. Increasing batch size usually does what to a single request's latency?
Why: Larger batches raise throughput but each request waits longer.
2. Which tool provides distributed, low-latency serving across large GPU fleets?
Why: Dynamo is the open-source distributed inference framework.
3. What does quantisation trade to gain speed?
Why: Fewer bits per value cut memory and bandwidth needs, with a small precision cost.
4. The business metric that combines throughput and cost for LLM serving is:
Why: NVIDIA frames inference goals as lowering cost per token.
Score: 0 / 4
This lesson explains the reading in plain language and adds the exam context around it. Read the original too: it is short, and seeing the vendor wording helps on exam day.