Open & local AI

Optimizing Inkling 2 Mini inference on a single RTX PRO 6000

Engineers used automated hill-climbing to boost Inkling 2 Mini decode speed by 40% on an RTX PRO 6000, reaching near-hardware limits via vLLM and speculative decoding.

A graphics card connected to a visual representation of a neural network
Illustration generated for this article

Hugging Face engineers recently demonstrated how to maximize the performance of the new Inkling 2 Mini model on a single NVIDIA RTX PRO 6000 GPU. By employing an automated coding agent to systematically test configuration variables, they increased single-user decode speed from 136 to 190.6 tokens per second. This optimization process highlights practical strategies for serving large mixture-of-experts models on prosumer hardware without manual trial-and-error.

What happened

Inkling 2 Mini, a ~26 billion parameter model with 3 billion active parameters per token, was released with strong benchmarks in coding and reasoning tasks. Its architecture features 24 physical layers where the middle 12 run three times, resulting in 48 layer visits per token. While official serving recipes targeted newer NVIDIA B200 and GB300 GPUs, the team wanted to determine the best possible performance on the RTX PRO 6000, a card with 96 GB of memory often used in cost-effective inference endpoints.

Instead of manually adjusting flags, the team provided a coding agent with an inference-optimization skill set and access to Hugging Face Jobs. The agent ran 46 valid benchmark experiments over an afternoon, testing various combinations of serving engines and speculative decoding settings. The final configuration achieved a 40% increase in single-user decode speed and a 26% increase in aggregate throughput for eight concurrent users compared to the baseline setup.

The winning setup used vLLM nightly builds combined with DSpark speculative decoding. The results were verified through rigorous checks, including long-context needle retrieval up to 250,000 tokens and byte-identical output comparisons between greedy and speculative modes. The optimized configuration was then deployed as a pinned Inference Endpoint, confirming that the local benchmark results translated effectively to a live production environment.

How it works

The optimization relied on a structured experimental protocol rather than random guessing. The agent measured hardware capabilities, such as memory bandwidth and compute throughput, to estimate theoretical performance ceilings. It then changed one variable at a time, bracketing each candidate configuration between two control runs to ensure any improvement was statistically significant and not due to noise. This method prevented false positives from engine variance or transient system states.

A key technical insight involved the interaction between speculative decoding and the model's mixture-of-experts (MoE) architecture. In standard decoding, each token activates only a small fraction of experts per layer. However, speculative decoding verifies multiple positions simultaneously, activating the union of their routed experts. This changes the memory access pattern, reading roughly 40% of each layer's experts instead of 6%. By calculating the bandwidth ceiling under this new access pattern, the team determined that 190.6 tokens per second represented approximately 95% of the hardware's limit, leaving little room for further gains via flag tuning alone.

The process also required overcoming several engineering hurdles, such as managing orphaned server processes that held GPU memory and identifying hidden out-of-memory errors in log files. The agent used CPU jobs to grep engine source code for undocumented environment variables, ensuring that every flag used was correctly understood and applied. This systematic approach allowed the team to bypass unsupported features and focus on configurations that provided genuine, reproducible speedups.

Key details

  • Single-user decode speed improved from 136 to 190.6 tok/s, a 40% increase over the baseline SGLang configuration.
  • Eight-user aggregate throughput rose from approximately 570 to 716 tok/s, demonstrating better concurrency handling.
  • The optimal setup used vLLM nightly with DSpark speculative decoding, configured with 7 draft tokens and probabilistic sampling.
  • Memory utilization was capped at 85% to prevent out-of-memory errors caused by the KV cache and drafter allocation conflicts.
  • Long-context performance remained robust, with successful needle retrieval at both 50% and 95% of the 250,000-token context window.
  • Greedy outputs were byte-identical with and without speculation, ensuring no loss in generation quality during the speedup.

Why it matters

For developers building AI applications, this case study illustrates the diminishing returns of manual optimization versus systematic, automated experimentation. As models grow more complex with architectures like looped MoE, the interaction between serving engines, quantization methods, and hardware becomes difficult to predict intuitively. Using an agent to explore the configuration space allows teams to find non-obvious wins, such as the specific combination of vLLM and DSpark that outperformed standard SGLang setups on this hardware.

Furthermore, the results provide a realistic benchmark for what can be achieved on accessible hardware like the RTX PRO 6000. Knowing that 190 tokens per second is near the physical bandwidth ceiling helps engineers set accurate expectations for latency and throughput. It also suggests that future improvements will likely require changes to the drafting mechanism or model architecture itself, rather than just tweaking server flags. This knowledge aids in making informed decisions about hardware procurement and model selection for specific use cases.

What you can do

  • Adopt a bracketed testing protocol when tuning inference servers, running control measurements before and after each change to validate improvements.
  • Use vLLM nightly builds with DSpark speculative decoding for MoE models, setting draft tokens to match the checkpoint's block size constraints.
  • Monitor GPU memory utilization closely, capping it below 100% to reserve space for the drafter and avoid silent initialization failures.
  • Verify long-context performance and output equivalence explicitly, ensuring that speed optimizations do not degrade retrieval accuracy or generation quality.
  • Leverage automated agents or scripts to search engine source code for undocumented flags, reducing reliance on incomplete documentation.
  • Pin container image digests and model revisions in production deployments to ensure consistent performance and reproducibility across environments.
  • #inference optimization
  • #llm serving
  • #vllm
  • #speculative decoding
  • #hugging face

Tools from the Bytechap store

$89

DocBento

Self-hosted document management that reads every scan and answers with page citations.

Live demo

Keep reading

All stories