Ferramentas para devsRelevante

Hugging Face lets a coding agent tune Inkling 2 Mini serving, and gets 40% faster decode on one GPU

In a write-up published today, Hugging Face says an agent following a fixed benchmarking protocol took single-user decode on one RTX PRO 6000 from about 136 to 190.6 tokens per second, close to what the hardware allows.

Promptea Editorial4 min de leitura

Hugging Face today published an engineering write-up on serving Inkling 2 Mini, the open-weight model Thinking Machines Lab released on November 20, on a single NVIDIA RTX PRO 6000 with 96 GB of memory. The twist is who did the tuning: instead of adjusting server flags by hand, the author gave a coding agent a benchmarking skill, the hf CLI and access to Hugging Face Jobs, and let it run experiments for an afternoon. All the numbers below come from Hugging Face's post and have not been independently reproduced.

What the agent found

Starting from Hugging Face's existing configuration (SGLang, no speculative decoding, about 136 tok/s for a single user), the agent ran 46 valid benchmark runs across SGLang and vLLM. The winning setup was vLLM nightly with the DSpark drafter that ships with the checkpoint, using 7 speculative tokens and probabilistic draft sampling. Hugging Face reports:

  • Single-user decode rose from about 136 to 190.6 tok/s, roughly 40%.
  • Aggregate throughput with eight concurrent users rose from about 570 to 716 tok/s, roughly 26%.
  • Switching engines alone (SGLang to vLLM, no speculation) accounted for 136 to 157 tok/s; enabling DSpark added the rest.
  • The tuned configuration now runs as a Hugging Face Inference Endpoint, pinned to an exact image digest; the RTX PRO 6000 instance is listed at $2.75 per hour.

The post is just as useful for what failed. Shorter draft lengths were rejected at startup because both engines enforce the checkpoint's fixed block size. Greedy draft sampling made vLLM about 11% slower at temperature 1.0. One SGLang flag looked like a 4% gain on its first run and then failed to reproduce against fresh control runs.

Why it stops near 190 tok/s

Before tuning, the agent measured the GPU's memory bandwidth and read tensor sizes from the checkpoint to estimate a ceiling. Inkling 2 Mini is a looped mixture-of-experts model with about 26B total and 3B active parameters: its middle 12 layers run three times, so every token passes through 48 layers. By Hugging Face's arithmetic, plain decoding tops out around 256 tok/s on this card. Speculative decoding lowers that ceiling to about 201 tok/s, because verifying several drafted tokens at once activates many more experts per layer. At 190.6 tok/s the setup sits at roughly 95% of that ceiling, which the post presents as the reason further flag tuning has little left to give.

The trade-offs worth noticing

Two memory settings were needed to make DSpark start on 96 GB, and one of them has a cost. The model supports a 1M-token context window, but the deployed configuration caps it at 262,144 tokens, because the default KV cache did not fit alongside the drafter. Hugging Face says needle-retrieval checks passed 3 of 3 times at about 250K tokens and that outputs were byte-identical with and without speculation under greedy decoding. That is a reasonable lossless check, but it covers six prompts, one GPU and one model.

The benchmark itself is narrow: a fixed panel of six prompts at temperature 1.0 with 512 output tokens. Hugging Face also compares its result with a community SGLang benchmark of 167.7 tok/s on the same GPU, but that is a comparison between different setups, not a controlled test.

What this means for people running coding agents

The interesting part for agent users is the protocol, not the flags. The skill gave the agent rules: estimate theoretical limits first, change one variable at a time, run every candidate between two control runs, keep a change only if it beats both, and log dead ends as well as wins. That structure is what caught the irreproducible 4% gain, and it carries over to other optimisation work. If you ask an agent to make something faster, telling it how to measure and when to discard a result matters as much as telling it what to try.

For teams weighing local or single-GPU deployment of small open models, the post is a concrete reference point: a 3B-active model served at about 190 tok/s for one user on a workstation-class card, with the context window cut to a quarter to make it fit. The model card lists the Apache 2.0 license and the November 20 release date; the launch post covers the architecture in more detail.

Por que isso importa

  • It is a documented, reproducible-by-design example of a coding agent doing real performance engineering, including the experiments that did not work.
  • It shows the practical cost of fitting a 1M-context open model on one 96 GB GPU: the served context window drops to 262,144 tokens.
  • It gives a hardware-grounded ceiling for decode speed, which helps separate real gains from benchmark noise.

Pontos principais

  • Hugging Face reports single-user decode up from about 136 to 190.6 tok/s on one RTX PRO 6000 after agent-led tuning.
  • The gain came from switching to vLLM nightly and enabling the bundled DSpark drafter; most other flags made no measurable difference.
  • All figures are Hugging Face's own, from a six-prompt benchmark, and have not been independently reproduced.

Fontes

  1. Hugging FacePrimária
    Hill-climbing Inkling 2 Mini inference on one RTX PRO 6000
    huggingface.co
  2. Hugging FacePrimária
    Welcome Inkling 2 Mini, Cutting-edge Performance for your Local Setup
    huggingface.co
  3. Thinking Machines Lab (via Hugging Face)Primária
    thinkingmachines/Inkling-2-Mini model card
    huggingface.co

Como escolhemos e verificamos as fontes

Tags:
  • inference
  • coding-agents
  • open-weights
  • speculative-decoding
  • vllm
  • sglang
Empresas:
  • Hugging Face
  • Thinking Machines Lab
  • NVIDIA
Modelos:
  • Inkling 2 Mini