NIM tuning: an agent searches the serving settings
TL;DR. NVIDIA ships NIM serving profiles found by a measurement-gated agent that tunes only runtime settings (KV cache data type, batch token budgets, CUDA graph sizes, kernels, speculative decoding) with weights, checkpoint, GPUs and context length fixed. Across 37 open models and 58 model-GPU pairs on B200, H200 and GB300 NVL72, geometric mean output throughput per GPU is 1.39x the default open-source engine at 20 ms or lower mean inter-token latency, up to 2.01x. A companion post defines Tensor Flop Utilization (TFU), a telemetry proxy for model FLOPs utilization, and reports 17.2% average for LLM training across 54.8M GPU-hours.
flowchart LR
F["Fixed setup<br/><small>weights, GPUs, traffic</small>"] --> H["Agent hypotheses<br/><small>mechanism and refutation test</small>"]
H --> R["Ranker<br/><small>picks up to five</small>"]
R --> B["Benchmark<br/><small>real GPUs, Nsight traces</small>"]
B -->|learn| H
B -->|passes gates| P["Shipped profile<br/><small>beats default and old</small>"]
B -->|misses latency| X["Rejected<br/><small>slow or inaccurate</small>"]
classDef input fill:#d0ebff,stroke:#1971c2,color:#1b1b1b,stroke-width:2px
classDef core fill:#e5dbff,stroke:#6741d9,color:#1b1b1b,stroke-width:2px
classDef loop fill:#fff3bf,stroke:#f08c00,color:#1b1b1b,stroke-width:2px
classDef exit fill:#d3f9d8,stroke:#2f9e44,color:#1b1b1b,stroke-width:2px
classDef err fill:#ffe3e3,stroke:#e03131,color:#1b1b1b,stroke-width:2px
class F input
class H core
class R,B loop
class P exit
class X err
linkStyle 3 stroke:#f08c00,stroke-width:2px
linkStyle 4 stroke:#2f9e44,stroke-width:2px
linkStyle 5 stroke:#e03131,stroke-width:2px
Nothing about the model changes. Same weights, same checkpoint, same GPUs. Only the runtime settings move, and throughput can double.
What is it about? A serving engine has many knobs. NVIDIA now lets an agent turn them, and ships tuned profiles for 37 open models.
What problem does it solve? Tuning one model by hand can take weeks. A framework upgrade can force a repeat.
What's the core novelty? Each proposed change must state why it should help and what result would refute it. Real benchmarks under latency limits then decide. The knobs are KV cache number format (the precision of stored attention memory), batch budgets, CUDA graph sizes (pre-recorded GPU launch sequences), kernel choice and speculative decoding.
Key takeaways
- Geometric mean gain of 1.39x across 58 model and GPU pairs, with mean time per token held at 20 ms or less.
- Best cases: Gemma 4 26B at 2.01x on H200 and Llama 3.1 8B at 1.96x on GB300, both without speculative decoding.
- GPT-OSS-120B reached 1.82x on B200 with 4-bit MXFP4 KV and an EAGLE3 drafter.
- Gains depend on hardware. Mistral Small 4 gained 1.63x on B200 and nothing on H200.
Gaps in the study Changing KV precision is not free. The post says candidates pass accuracy validation but does not report how much accuracy moved. These are vendor benchmarks against default settings, not against expert hand tuning.
Industrial implication Default engine settings now look like money left on the table. The same blog set gives the fleet view. Tensor Flop Utilization (how busy the matrix-math units are, read from telemetry) matched hand-computed efficiency within 1 point on a 6,144-GPU run. General LLM training averaged 17.2% and the best runs reached 30% to 40%. The metric also counts padding and recomputed work, so true useful work can be lower.
Relation to prior wiki pages
- Extends SealKV (12-04, low-bit KV decoded in registers): KV precision is again a first-class serving lever.
- Same shape as AutoCache (12-04, agent-searched cache compressors gated on accuracy), now in a vendor's shipping product.
- Fills a measurement gap: Ironwood Part 2 reported 45% effective model FLOPs utilization for one tuned TPU job; TFU gives a fleet baseline (17.2% average, 30-40% best tuned).
Links: NIM tuning · Tensor Flop Utilization
Concepts: gpu-kernels · kv-cache · compute-economics
Raw source: raw/labs/2026-12-05-113550-labs.md and raw/labs/2026-12-04-230205-labs.md