Open AI Models

Hugging Face uses AI agent to optimize Inkling 2 Mini inference on NVIDIA RTX PRO 6000

Key Takeaway

An automated coding agent optimized Inkling 2 Mini inference on a single RTX PRO 6000, achieving up to 190.6 tokens per second using vLLM and DSpark speculative decoding.

Summary

Hugging Face has demonstrated a successful automated optimization of the Inkling 2 Mini model using a specialized coding agent. The model, a 26B parameter Mixture-of-Experts (MoE) architecture with a 1M-token context window, was tested on a single NVIDIA RTX PRO 6000 96 GB GPU. The goal was to find the most efficient inference configuration for this specific hardware, which differs from the B200/GB300 targets typically used in official serving recipes.

By utilizing Hugging Face Jobs and an 'inference-optimization skill,' the agent performed 46 benchmark runs to tune vLLM nightly and SGLang. The process resulted in a significant performance boost, increasing single-user decode speeds by 40% and aggregate throughput by 26% compared to initial baselines. The winning configuration utilizes vLLM with DSpark speculative decoding and specific memory management flags to handle the model's unique looped architecture.

Technical breakdown of Inkling 2 Mini optimization

  • Model Architecture: Inkling 2 Mini utilizes a looped Mixture-of-Experts (MoE) design with 24 physical layers, where the middle 12 layers are executed three times, resulting in 48 total layer passes per token.
  • Speculative Decoding: The optimization achieved peak performance by enabling DSpark speculative decoding with 7 drafts and probabilistic draft sampling, which outperformed standard greedy sampling by 11% at temperature 1.0.
  • Inference Frameworks: The agent compared SGLang and vLLM nightly, ultimately finding that vLLM nightly provided superior throughput on the sm120 architecture of the RTX PRO 6000.
  • Optimization Methodology: The agent followed a strict experimental protocol involving hardware ceiling estimation, single-variable changes, and mandatory control-run comparisons to ensure no regressions in greedy-equivalence or long-context retrieval.

Why it matters

This demonstration shows how automated agents can bridge the gap between cutting-edge model architectures and non-datacenter hardware like the RTX PRO 6000. It provides a blueprint for developers to optimize local AI deployment without manual kernel or flag tuning, reducing the barrier to running high-performance MoE models on workstation-class GPUs.

Original reference: huggingface.co →