Hugging Face says an agent sped up Inkling 2 Mini 40% on one GPU

In short

What the agent was asked to do

Inkling 2 Mini came out the week before the post. Hugging Face describes it as a mixture-of-experts model with about 26 billion parameters, of which about 3 billion are active for each token, a 1-million-token context window and multimodal input. The post calls it a new state of the art for local and smaller open models; that is Hugging Face's description, which we did not check.

It has 24 physical layers, and the middle 12 run three times, so every token passes through 48 layers. The published serving recipes target NVIDIA's B200 and GB300 data-centre GPUs, not the RTX PRO 6000, the post says.

Rather than tune by hand, the team gave a coding agent an "inference-optimisation skill": a written protocol plus a small benchmark script. The rules were strict:

Each run used the same six prompts at temperature 1.0, the model's default, with 512 output tokens. Because Jobs run on separate machines, the agent tested SGLang and vLLM in parallel.

The results

190.6 tok/s single-user decode after tuning, up from 136 (+40%); 716 tok/s eight-user throughput, up from about 570 (+26%); 46 valid benchmark runs; ~95% share of the GPU's memory-bandwidth limit reached at the measured draft acceptance, per the post

Source: results table in the Hugging Face post. SGLang's draft-model recipe for this GPU caps running requests at 4; raised to 8 it reached 660 tok/s. The endpoint's first-token time includes about 160 ms of network round trip.

The post splits the gain in two. Moving to vLLM nightly gave +15% (136 to 157 tok/s). Turning on the draft model, called DSpark, with 7 drafts and probabilistic draft sampling added +21% on top (157 to 190.6, from four runs of 189.3, 190.4, 191.1 and 190.7).

The 190.6 is also above a community benchmark of 167.7 tok/s for SGLang with DSpark on the same GPU, the post says.

Why does the model stop getting faster at around 190 tokens per second?

Before tuning, the agent measured the card: 1,469 GB/s copy bandwidth, 416 TFLOPS in BF16 and 792 in FP8. Generating one token without speculation re-reads about 2.7 GB of attention and dense weights, about 2 GB of expert weights (8 of 128 experts per layer) and about 0.9 GB for the output layer. At that bandwidth, the post puts the single-user ceiling at about 256 tok/s; plain vLLM at 157 reaches 61% of it.

Speculation changes the sum. Checking 8 positions at once wakes the experts that any of them need, about 40% of each layer's experts instead of 6%. At the measured acceptance of about 2.3 tokens per step, the ceiling falls to about 201 tok/s, so 190.6 is already near the limit. Going further would need a draft model that guesses better at temperature 1.0, or a checking step that touches fewer experts, the post says.

What didn't work

The post lists the dead ends. In vLLM, shorter draft lengths were rejected at startup because the checkpoint fixes the block size; greedy draft sampling was 11% slower (168.6 against about 190.4 tok/s). In SGLang, one setting looked like a +4% win once and then failed against fresh controls; two others gave +1% to +2%, within noise.

The control runs mattered. Across identical runs with speculation, vLLM varied by 0.4% while SGLang swung by ±4.5%, the post says. Without repeat controls, noise would have been reported as a gain.

The team also skipped two vLLM sampling modes on purpose because they change the output distribution; it wanted a strictly lossless speed-up.

Checks before deployment

Source: verification table in the Hugging Face post.

Terms in plain English

Where things stand

The tuned configuration is running as a Hugging Face Inference Endpoint from a pinned image, and the post says every log, script and raw measurement is in a public repository so the loop can be reused on other models. All numbers are Hugging Face's own, on one GPU model, and the equivalence check covered six prompts at temperature 0, not the temperature-1.0 setting used for the speed runs.

Sources

Sources

Related stories

More from Teach the Bot

All stories from Teach the Bot