How a coding agent hit the hardware bandwidth ceiling optimizing Inkling 2 Mini inference on one RTX PRO 6000
Niels Rogge describes an agent-driven hill-climbing protocol that improved single-user decode from 136 to 190.6 tok/s on a looped MoE model, then shows through bandwidth arithmetic why further flag tuning has almost nowhere left to go on this GPU class.
Niels Rogge, an engineer at Hugging Face, spent an afternoon giving a coding agent access to Hugging Face Jobs and a fixed experimental protocol called the inference-optimisation skill, then let it run 46 benchmark experiments to find the fastest way to serve Inkling 2 Mini on a single NVIDIA RTX PRO 6000 96 GB GPU. The result was a 40% speedup in single-user decode, from 136 to 190.6 tokens per second, and a 26% gain in 8-user aggregate throughput, from roughly 570 to 716 tokens per second. More interesting than the numbers is what the analysis revealed about why the speedup stops where it does.
The protocol itself is straightforward and worth borrowing. The agent measures hardware characteristics and estimates theoretical ceilings before touching any flag. It changes one variable at a time and brackets every candidate between two control runs: control, candidate, control. A change is kept only if it beats both controls without regressing other metrics. Every run, including regressions and dead ends, is logged. Before declaring a winner, the configuration must pass long-context needle retrieval, concurrency soak tests, and greedy-output equivalence checks against the non-speculative baseline.
The winning configuration is vLLM nightly with DSpark speculative decoding using 7 speculative tokens and probabilistic draft sampling, plus two memory flags (max-model-len 262144 and gpu-memory-utilization 0.85) that let the DSpark drafter actually start on 96 GB. The speedup decomposes cleanly: switching from SGLang to vLLM without speculation accounts for +15% (136 to 157 tok/s), and enabling DSpark with the correct draft parameters adds +21% on top (157 to 190.6 tok/s).
The bandwidth analysis is where the article earns its keep. Before tuning, the agent probed the GPU and found 1,469 GB/s copy bandwidth. Because Inkling 2 Mini is a looped MoE with 24 physical layers where the middle 12 run three times, every token makes 48 layer visits. Plain decode re-reads roughly 2.7 GB of attention and dense weights, 2 GB of routed experts (8 of 128 per layer), and 0.9 GB for the LM head. At 1,469 GB/s, the single-user bandwidth ceiling without speculation is about 256 tok/s. vLLM at 157 tok/s hits 61% of that ceiling, limited mostly by kernel launch latency across 48 visits.