Tools

AI-generated text

NVIDIA automates runtime tuning for open AI models

NVIDIA says its automated tuning workflow can improve inference throughput for open models without changing their weights or hardware configuration.

NVIDIA automates runtime tuning for open AI models

NVIDIA is using an automated tuning process to create runtime configurations for open artificial intelligence models. The company says that, in some cases, optimization through NVIDIA NIM microservices doubled output-token throughput per GPU compared with the same model running on its default open-source engine.

When deploying a new model, teams must adapt settings including the cache, batch size, kernels and speculative decoding to the hardware and latency targets. That work can take weeks per model, and framework upgrades may require performance to be checked again. NVIDIA’s approach changes only runtime settings: model weights, checkpoint, precision, GPU type and count, and context length remain fixed.

Benchmark conditions and results

The company aimed to maximize average output-token throughput per GPU while keeping mean inter-token latency at or below 20 milliseconds and mean time to first token at or below 10 seconds. NVIDIA Dynamo AIPerf tested streaming workloads resembling agentic tasks, with about 64,000 input and 400 output tokens, as well as multiturn conversations with about 8,000 input and 1,000 output tokens.

Operating points with request error rates above 1% were discarded. The selected concurrency level met the latency limits in every repeated run, and the baseline was measured under the same load. Winning settings were rerun through NIM and released only if they outperformed both the baseline and the existing NIM profile.

The company highlighted four results using tuning from the NVIDIA LLM NIM 2.1.6 release:

  • Gemma 4 26B A4B IT: on one NVIDIA H200 GPU with BF16 precision and concurrency of 8, throughput doubled; inter-token latency was 14.5 ms and time to first token was 1.2 seconds. The base vLLM configuration produced 258 tokens per second per GPU.
  • Llama-3.1-8B-Instruct: on NVIDIA GB300 NVL72 with NVFP4 precision and concurrency of 32, throughput rose 1.96 times; inter-token latency was 15.4 ms and time to first token was 334 ms. The baseline was 1,027 tokens/s/GPU.
  • NVIDIA Nemotron 3.5 Lightning 30B: on one NVIDIA B200 GPU with BF16 precision and concurrency of 64, throughput rose 1.88 times; inter-token latency was 11.8 ms and time to first token was 1.5 seconds. The baseline was 3,035 tokens/s/GPU.
  • GPT-OSS-120B: on one NVIDIA B200 GPU with an MXFP4 KV cache, EAGLE3 speculative decoding and concurrency of 16, throughput rose 1.82 times; inter-token latency was 7.1 ms and time to first token was 278 ms. The baseline was 1,291 tokens/s/GPU.

All four measurements used tensor parallelism of one, or TP1. In the wider evaluation, the geometric mean speedup across 58 model–GPU combinations involving 37 models was 1.39 times. Nemotron 3 Nano on B200, Nemotron 3.5 Content Safety on H200 and Mistral Small 4 on H200 remained within about 3% of default-engine performance.

Hardware made a substantial difference: Mistral Small 4 improved 1.63 times on B200 but showed no gain on H200, while Nemotron 3 Super achieved 1.71 times on H200 and 1.47 times on B200. Significant gains also occurred without speculative decoding: Gemma 4 26B achieved 2.01 times on H200, while Llama 3.1 8B Instruct reached 1.96 times on GB300 and 1.84 times on B200.

How automated tuning works

An AI agent uses benchmark data to propose hypotheses about potential improvements and the conditions that would disprove them. A deterministic ranking algorithm selects up to five nonconflicting proposals using criteria including projected impact and observability. These become configuration changes tested on dedicated NVIDIA Hopper and NVIDIA Blackwell GPUs; the system also collects latency and throughput data, logs and NVIDIA Nsight traces.

Candidates must meet latency targets, improve the throughput–latency tradeoff and pass accuracy validation. Successful settings become official NIM profiles only after further comparison with baseline engines and existing recipes, followed by engineering review.

Techniques include an FP8 KV cache, offloading the cache to host memory for long contexts, changes to batching and scheduling, larger CUDA graphs, compiler fusion and kernel selection. An FP8 cache can roughly halve storage needs compared with BF16, leaving room for larger batches. Some profiles also use multi-token prediction, EAGLE3 or other speculative decoding; MXFP8 activations are used for expert layers in gpt-oss models.

According to the company, bottlenecks vary by model and GPU. The B200’s greater memory bandwidth and capacity may provide more batching headroom for dense models, while some mixture-of-experts models on H200 may benefit more from speculative decoding.

Models and adoption

The optimization campaigns covered the NVIDIA Nemotron, Meta Llama, OpenAI GPT-OSS, Mistral and Google Gemma model families. NVIDIA also works with the vLLM and SGLang communities on serving recipes for Hopper and Blackwell GPUs.

South Korea’s Elice Cloud is adopting the optimized NIM microservices to accelerate education and public-service applications, including AI tutors for students and teachers. NVIDIA also provides documentation on profile selection, deployment and benchmarking for supported models and hardware; its Certified NIM LLM and VLM collection offers 37 models.