Dec 04, 2026
By Rajath Narasimha, Arun Venkatesan, Sandeep Agrawal, Donghan Ryu and Anahita Bhiwandiwalla
Discuss (0)
When a new open model is released, inference teams need to get it into production quickly and efficiently. That means selecting a compatible checkpoint, precision, and inference engine, then tuning the key-value (KV) cache, batch sizes, NVIDIA CUDA graphs, kernels, and speculative decoding to meet latency and throughput targets on each GPU. Tuning each model can take weeks, and framework upgrades may require teams to repeat performance validation. The automated tuning is limited to runtime optimization while holding model weights, checkpoint, precision, GPU type and count, and context length constant.
NVIDIA NIM provides tuned serving configurations for open models, developed using an agentic, measurement-gated workflow and validated against default engine configurations and existing NIM profiles. On production-style traffic, NVIDIA NIM microservices optimized with agentic tuning delivered up to 2x the output-token throughput per GPU of the same model running on its default open-source engine.
This post covers the benchmark methodology, optimization workflow, tuning techniques, and results on NVIDIA Blackwell and NVIDIA Hopper GPUs.
Benchmarking methodology for NIM optimization
A typical deployment starts with a new open model running on an inference framework with default settings. Those settings may leave room to improve throughput for a given latency target.
KV cache data type, batched token budgets, CUDA graph capture sizes, kernel backends, and speculative decoding may need tuning to match a model’s architecture, GPU hardware, and traffic workloads.
The benchmarks compare default and tuned NIM runtime configurations on the same model and hardware across the various open models and workloads. The following controls, metrics, and criteria define the evaluation:
- Objective: Maximize average output-token throughput per GPU.
- Latency constraints: Mean inter-token latency (ITL) of 20 ms or lower and mean time to first token (TTFT) of 10 s or lower at the NIM operating point.
- Controlled comparison: The checkpoint, precision, tensor parallelism (TP), and context length are fixed, ensuring only the runtime configuration differs.
- Traffic workloads: NVIDIA Dynamo AIPerf benchmarks agentic workloads (about 64K input and 400 output tokens) and multiturn chat workloads (about 8K input and 1K output tokens), with streaming enabled across a range of concurrency levels.
- Reliability gate: Operating points with more than 1% request errors are discarded.
- Same-load comparison: The selected NIM operating point is the concurrency level that delivers the highest throughput while meeting both latency limits in every repeated run. NVIDIA measured the baseline at the same concurrency.
- Validation: Winning configurations are rerun through the NIM entry point and shipped only if they beat both the baseline and the existing NIM profile.
These profiles give inference teams a tuned starting configuration for supported models and GPUs.

Benchmark results across NVIDIA Blackwell and NVIDIA Hopper
Figure 1 shows output-token throughput for four open models with and without NVIDIA NIM performance optimizations, normalized to 1x without optimization. All four NIM results meet the 20 ms ITL limit using NVIDIA LLM NIM tuning from the 2.1.6 release.
- Gemma 4 26B A4B IT: 2x on one NVIDIA H200 GPU (TP1, BF16) at concurrency 8, with 14.5 ms ITL and 1.2 s TTFT, with the base vLLM recipe producing 258 tok/s/GPU.
- Llama-3.1-8B-Instruct: 1.96x on NVIDIA GB300 NVL72 (TP1, NVFP4) at concurrency 32, with 15.4 ms ITL and 334 ms TTFT, with the base vLLM recipe producing 1027 tok/s/GPU.
- NVIDIA Nemotron 3.5 Lightning 30B: 1.88x on one NVIDIA B200 GPU (TP1, BF16) at concurrency 64, with 11.8 ms ITL and 1.5 s TTFT, with the base vLLM recipe producing 3035 tok/s/GPU.
- GPT-OSS-120B: 1.82x on one NVIDIA B200 GPU (TP1, MXFP4 KV) with EAGLE3 speculative decoding at concurrency 16, with 7.1 ms ITL and 278 ms TTFT, with the base vLLM recipe producing 1291 tok/s/GPU.
How NIM tuning gains vary by model and GPU
Across 37 models benchmarked on NVIDIA B200 and H200 GPUs and NVIDIA GB300 NVL72 systems at the highest concurrency meeting mean ITL ≤ 20 ms and mean TTFT ≤ 10 s, NIM tuning delivered a geometric mean of 1.39x over the default open-source engine across 58 model–GPU combinations:
- Largest gains: Gemma 4 26B (2.01x on H200) and Llama 3.1 8B Instruct (1.96x on GB300)
- Smallest gains: Nemotron 3 Nano on B200, Nemotron 3.5 Content Safety on H200, and Mistral Small 4 on H200 stayed within about 3% of the default engine, where defaults already performed near their efficient frontier
- Hardware dependent: Mistral Small 4 gained 1.63x on B200 but none on H200, while Nemotron 3 Super gained more on H200 (1.71x) than B200 (1.47x)
- Tuning without speculative decoding: Gemma 4 26B reached 2.01x on H200 and Llama 3.1 8B Instruct reached 1.96x on GB300 and 1.84x on B200, with no speculative decoding in their profiles
Lessons learned from optimizing open models for inference
The benchmarks point to four main takeaways about tuning inference performance across models and GPUs.
- Speculative decoding contributed to throughput gains: Multi-token prediction (MTP), EAGLE3, and DSpark draft models let the engine emit multiple accepted tokens per decode step, so the same ITL budget supports higher concurrency and more tokens per GPU.
- Tuning alone still matters: For models such as Llama 3.1 8B Instruct, gains may come from the FP8 KV cache, which roughly halves KV cache storage relative to BF16, making room for larger batches, plus compiler fusions and larger CUDA graph captures that cut per-step launch overhead.
- Hardware and model architecture shape the bottleneck: B200’s higher memory bandwidth and capacity may give dense models more batching headroom under the ITL limit, while on H200, more constrained mixture-of-experts (MoE) models’ decode steps may benefit more from speculative decoding.
- Every model responds differently: Gains depend on each model’s architecture, size, attention, expert layout, and family, and small models such as Nemotron 3 Nano may already run near their efficient frontier at default settings.
How is NIM performance optimized?
NIM microservices are now performance-optimized out of the box using an automated agentic workflow loop that transforms inference tuning into a measurement-gated search problem. Each optimization campaign holds the NIM container, model checkpoint, GPU topology, context length, and traffic trace constant and evaluates serving-configuration changes against a mean inter-token latency limit of 20 ms.
During each iteration, an AI agent evaluates prior benchmark data to generate hypotheses detailing specific mechanisms, anticipated outcomes, and refutation criteria. A deterministic ranking algorithm evaluates candidates based on confidence, observability, headroom, relevance, and projected impact, choosing a nonconflicting subset of up to five.
The workflow converts these hypotheses into discrete configuration patches spanning KV cache precision, batching parameters, CUDA graph sizes, and speculative decoding. It then benchmarks the resulting configurations on dedicated Hopper and Blackwell GPUs and collects throughput and latency measurements, logs, and NVIDIA Nsight traces.
Each candidate configuration must meet latency targets, improve the throughput–latency tradeoff, and pass accuracy validation. The results inform subsequent iterations. Successful configurations are reevaluated through the NIM entry point against default open-source engines and published recipes across the same concurrency levels. They become official NIM profiles only after outperforming existing defaults and passing an engineering review.
This pipeline automates configuration testing and validation across dozens of open models per release cycle and provides comprehensive trial metrics for each released profile.

Optimizing a broad portfolio of open models
Optimization campaigns covered open models, including NVIDIA Nemotron, Meta Llama, OpenAI GPT-OSS, Mistral, and Google Gemma families, on NVIDIA B200 and H200 GPUs and NVIDIA GB300 NVL72 systems.
Across the portfolio, shipped profiles used combinations of the following common set of techniques.
- KV cache precision and capacity: FP8 KV cache and KV cache offloading to host memory for long-context models.
- MoE activation precision: MXFP8 activations for MoE layers in gpt-oss models.
- Batching and scheduling: Tuned token budgets per batch, prefill batch sizes, caps on in-flight requests, and asynchronous scheduling.
- CUDA graphs and compilation: Larger CUDA graph capture sizes and compiler fusion to reduce launch overhead.
- Kernel selection: Attention and MoE kernels matched to each GPU and checkpoint.
- Speculative decoding: MTP, EAGLE3, and built-in draft heads, enabled for profiles that meet policy and accuracy requirements.
Optimizing open model runtimes across the ecosystem
NVIDIA collaborates with the vLLM and SGLang communities on serving recipes for the newest open models on NVIDIA Hopper and Blackwell GPUs. Elice Cloud, a sovereign AI cloud in Korea, is adopting performance-optimized NIM microservices to accelerate AI-powered education and public services, such as AI tutors for students and teachers.
Get started with NVIDIA NIM microservices
NVIDIA NIM profiles combine runtime tuning and validation to improve inference throughput on supported models and GPUs. Refer to the support matrix for models, deployment profiles, and verified hardware SKUs for large language models (LLMs) and vision language models (VLMs).
- Deploy: The NVIDIA NIM quickstart covers setup and an initial inference request. Select from 37 models in the Certified NIM: LLM & VLM collection.
- Select a profile: The model profiles guide explains hardware compatibility and profile selection.
- Benchmark: The NIM benchmarking guide covers throughput and latency testing with AIPerf. The tool is available in the NVIDIA Dynamo AIPerf GitHub repository.
- Review the documentation: The NIM documentation covers API references, configuration options, and deployment guidance.
- Get support: The NVIDIA NIM Developer Forum hosts questions and discussions.
ExploreNVIDIA NIM microservices, subscribe toNVIDIA Generative AI News, and follow NVIDIA onLinkedIn,X,Discord, andYouTube.
Discuss (0)Tags
Agentic AI / Generative AI | AI Platforms/Deployment | Data Center / Cloud | General | Blackwell | H200 | Nemotron | NIM | Intermediate Technical | Deep dive | Training AI ModelsAbout the Authors
About Rajath Narasimha
Rajath Narasimha is a senior product marketing manager at NVIDIA, driving the GTM strategy for foundation models and generative AI safety. Previously, he held product management and marketing roles for over a decade, building and launching HPC/AI, data center, and cloud products at leading semiconductor companies. He holds a master's degree in Electrical and Computer Engineering from San Francisco State University. View all posts by Rajath Narasimha
About Arun Venkatesan
Arun Venkatesan is a group product manager on the AI Inference team at NVIDIA. He previously led NVIDIA’s Speech AI product team. Before joining NVIDIA, Arun held engineering leadership roles and built conversational AI applications, as well as enterprise and consumer software products. He earned an MBA from the Yale School of Management and a Master’s degree in Electrical and Computer Engineering from the University of Maryland, College Park. View all posts by Arun Venkatesan
About Sandeep Agrawal
Sandeep Agrawal is a principal engineer on the NVIDIA NIM team, where he works to make LLM inference faster, cheaper, and easier to build with. Previously, he spent a decade at Oracle, where he architected MySQL HeatWave GenAI and MySQL AI, bringing LLM inference inside the database. A former NVIDIA Graduate Fellow with a Ph.D. in GPU systems from Duke University, he has published at MICRO, SIGMOD, VLDB, and ASPLOS and holds at least 14 patents. View all posts by Sandeep Agrawal
About Donghan Ryu
Donghan Ryu leads engineering for the enterprise inference software stack for NVIDIA NIM, spanning inference serving, platform development, and performance optimization for large language and vision-language models. He drives technical strategy, software innovation, and engineering execution to turn advances in AI inference into reliable, high-performance production software. Since joining NVIDIA in 2008, he has combined deep technical expertise with engineering leadership across graphics and GPU system software, from desktop and data center systems to mobile and embedded devices. Previously, he oversaw graphics software development for Nintendo Switch and Switch 2, from product definition through launch. Across these roles, he brings together customer needs, hardware-aware software design, and ecosystem collaboration to deliver production-ready platforms. View all posts by Donghan Ryu
About Anahita Bhiwandiwalla
Anahita Bhiwandiwalla is a deep learning algorithms manager at NVIDIA, working on algorithmic optimizations that make AI inference faster. Before joining NVIDIA, Anahita worked at Intel for over a decade, most recently as an AI research science manager focusing on optimizations and bias mitigation strategies for multimodal and generative AI applications. She holds a master’s degree in computer science from Columbia University, specializing in machine learning and natural language processing. Anahita has also worked in defense research and development on speaker recognition and GIS systems. Throughout her career, she has worked at the intersection of AI research and engineering and has published her work at conferences such as NeurIPS, ICLR, and CVPR, for which she also serves as a reviewer. View all posts by Anahita Bhiwandiwalla
Comments
Comments are closed.
AI Trends