ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsMaterial4 min readDisconfirmAI Editorial

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.

2026-11-25

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.

Sign in / Sign up
ReadingResearchRadarInvestment framework

Speculative decoding changes the math. Verifying 8 positions together activates the union of their routed experts, reading roughly 40% of each layer's experts instead of 6%. At the measured acceptance rate of about 2.3 tokens per step at temperature 1.0, the bandwidth ceiling drops to about 201 tok/s. At 190.6 tok/s, vLLM plus DSpark is already at roughly 95% of that adjusted hardware ceiling. The conclusion is blunt: further flag tuning has almost nowhere left to go. Moving past 190 tok/s would require a drafter with higher acceptance at temperature 1.0 or a verification path that touches fewer experts per layer.

The failure log is equally useful. Shorter draft lengths (3 through 6) are rejected at startup because both engines enforce the checkpoint's fixed block size. Greedy draft sampling drops vLLM decode speed by 11% at temperature 1.0. Adaptive verification triggers an assertion error for the Inkling 2 drafter. A SGLang optimization flag that appeared to give +4% on its first run failed to reproduce against fresh controls, because SGLang's run-to-run variance was ±4.5% while vLLM stayed within 0.4%. The agent deliberately skipped rejection sampling methods that alter the output distribution, wanting a strictly lossless speedup.

A few practical gotchas caught them along the way. Triton JIT compilation during the first timed prefill made 4K prefill look like 202 tok/s instead of 20K. An orphaned server process holding GPU memory broke the next launch and survived kill -0 checks. vLLM's DSpark setup died twice with a generic initialization failure while the real cause (KV cache needing 52.6 GiB with only 48.1 GiB free, then the default gpu-memory-utilization of 1.0 OOMing the drafter's 5 GiB allocation) sat 200 lines up in the log. The fix for each was small but not obvious without running the experiment.

The deployed endpoint, running the pinned image digest with authenticated access and scale-to-zero, measured 194.9 tok/s single-user over the internet, matching the Job runs once roughly 160 ms of network round trip is accounted for. Greedy outputs were byte-identical with and without speculation across six prompts at temperature 0, and needle retrieval passed 3 out of 3 at both 50% and 95% of the 262K-token context window.

Sources

  • huggingface.co↗
Continue researching →