Optimizing Inkling 2 Mini Inference on a Single RTX PRO 6000
Optimizing Inkling 2 Mini Inference on a Single RTX PRO 6000 Published November 25, 2026 was released the previous week and establishes a new state of the art for local AI and s...
By Software Development Team
Optimizing Inkling 2 Mini Inference on a Single RTX PRO 6000
Published November 25, 2026
Inkling 2 Mini was released the previous week and establishes a new state of the art for local AI and smaller open-source models. It has approximately 26 billion total parameters, with 3 billion active per token, supports multimodal inputs, and provides a 1-million-token context window. The model leads its weight class on the Artificial Analysis Intelligence Index v5 and on 32 of 48 benchmarks against models such as Gemma 4 31B and Qwen3.8-27B.
Its architecture may help explain these results. Inkling 2 Mini is a looped Mixture-of-Experts (MoE) model with 24 physical layers. The middle 12 layers run three times, so each token passes through 48 layers. The checkpoint uses mixed NVFP4 and MXFP8 formats and includes a DSpark drafter for speculative decoding.
Both vLLM and SGLang support the model in nightly builds. However, their published serving recipes target NVIDIA B200 and GB300 GPUs (sm100) rather than sm120 cards such as the NVIDIA RTX PRO 6000, where kernel compatibility can differ.
The goal was to determine how quickly the model could run on a single NVIDIA RTX PRO 6000 with 96 GB of memory, the GPU used by an nvidia-rtx-pro-6000 Inference Endpoint. Instead of manually tuning flags, the experiment used the inference-optimisation skill, the hf CLI, and Hugging Face Jobs to run experiments over an afternoon.
Across 46 valid benchmark runs, single-user decode performance increased from 136 to 190.6 tok/s, a 40% improvement. Eight-user aggregate throughput increased from approximately 570 to 716 tok/s, a 26% improvement. The tests used vLLM nightly with DSpark speculative decoding.
The result exceeded the 167.7 tok/s community SGLang plus DSpark measurement for the same GPU on LocalMaxxing. Greedy outputs were byte-identical with and without speculation, and long-context needle retrieval passed 3/3 tests up to 250,000 tokens. The selected configuration was deployed as an Inference Endpoint from a pinned image digest. Logs, scripts, and raw measurements are available in NielsRogge/inkling-2-mini-hillclimb.
The setup
The inference-optimisation skill supplies a fixed experimental process and an engine-independent benchmark script, bench.py:
- Measure the hardware and estimate theoretical performance ceilings before tuning.
- Change one variable at a time, bracketing every candidate with two control runs in the order
control → candidate → control. Keep a change only when it beats both controls without regressing other metrics. - Record every run in
PLAN.md, including regressions and unsuccessful experiments. - Complete long-context, concurrency, and greedy-equivalence checks before selecting a configuration.
bench.py measures single-user decode, aggregate decode at a selected concurrency, cold prefill at several lengths, and time to first token (TTFT). It obtains token counts directly from the server's usage response.
All tests used the same six prompts: code, an explanation, a story, a comparison table, a bash script, and a history summary. Tests ran at temperature 1.0, the model's default, with thinking enabled and 512 output tokens. Whenever speculative decoding was enabled, each measurement used 12 repetitions.
The skill was designed for a local GPU and was adapted for Hugging Face infrastructure:
- HF Jobs for compute: The
rtx-pro-6000Job flavor uses the same GPU as thenvidia-rtx-pro-6000Inference Endpoint. Both cost $2.75 per hour, so Job measurements transfer directly to the endpoint. A roughly 150-line driver,jobs/driver.py, accepts server configurations, starts each server, performs an unmeasured warmup, runsbench.pywithout modification, shuts down the server, and prints one ledger line per run. Because Jobs run on separate machines, SGLang (lmsysorg/sglang:inkling-2-mini) and vLLM nightly (vllm/vllm-openai:nightly) were tested in parallel. - CPU Jobs for inspecting engine source: When a flag was undocumented, a low-cost
cpu-upgradeJob searched the installed Python package inside the container. This revealed SGLang'sSGLANG_OPT_*environment variables and vLLM'sspeculative-configfields. - Inference Endpoints for deployment: The final service was created with
hf endpoints deploy, using the exact image digest and flags that passed verification.
The baseline was the existing organization endpoint configuration: SGLang with --attention-backend fa4 and no speculative decoding.
Results
| Configuration, 1× RTX PRO 6000 | 1-user decode (tok/s) | 8-user aggregate (tok/s) | Prefill 4K / 32K (tok/s) | TTFT |
|---|---|---|---|---|
| SGLang, no speculation (baseline) | 134-139 | 543-598 | 18.7-19.1K / 16.9-19.1K | 41-114 ms |
| vLLM, no speculation | 157.0 | 638 | 20.7K / 20.7K | 33 ms |
| SGLang + DSpark, 8 drafts | 166.6 | -¹ | 18.0-19.5K / 18.9-19.1K | 38-51 ms |
| vLLM + DSpark, 7 drafts | 190.6 | 716 | 20.7K / 20.6K | 40 ms |
| Deployed endpoint, over the internet | 194.9 | 673 | 11.7K / 19.2K² | 198 ms² |
¹ SGLang's RTX PRO 6000 DSpark recipe limits --max-running-requests to 4. Raising it to 8 reached 660 tok/s, which remained below vLLM's result. ² Includes approximately 160 ms of client-to-endpoint network round trip.
The speed improvement came from three changes:
- Switching to vLLM nightly improved performance by 15% over SGLang without speculation, from 136 to 157 tok/s.
- Enabling DSpark with seven drafts and probabilistic draft sampling added another 21%, increasing performance from 157 to 190.6 tok/s. Four runs measured 189.3, 190.4, 191.1, and 190.7 tok/s.
- Two memory-related flags allowed the vLLM DSpark configuration to start within the RTX PRO 6000's 96 GB of memory.
The resulting command was:
vllm serve thinkingmachines/Inkling-2-Mini \
--tool-call-parser inkling \
--enable-auto-tool-choice \
--reasoning-parser inkling \
--max-model-len 262144 \
--gpu-memory-utilization 0.85 \
--speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic"}'
Both num_speculative_tokens: 7 and draft_sample_method: "probabilistic" were validated directly. Shorter draft counts, such as 5, were rejected at startup because both engines enforce the checkpoint's fixed block size. Changing draft sampling to greedy reduced vLLM decode speed by 11% at temperature 1.0.
Why performance stops around 190 tok/s
Before tuning, the RTX PRO 6000 was measured inside a Job at 1,469 GB/s copy bandwidth, 416 TFLOPS BF16, and 792 TFLOPS FP8. Tensor sizes were read from the safetensors header.
Because every token makes 48 layer visits, plain decode rereads approximately 2.7 GB of attention and dense weights, around 2 GB of routed experts, and about 0.9 GB for the language-model head. At 1,469 GB/s, this produces a single-user bandwidth ceiling of approximately 256 tok/s.
Without speculation, vLLM reached 157 tok/s, or 61% of that ceiling. The remaining limitation was primarily kernel-launch latency across the 48 layer visits.
Speculative decoding changes the memory behavior of the MoE model. Verifying eight positions together activates the union of their routed experts, reading approximately 40% of each layer's experts instead of 6%. At the measured acceptance rate of approximately 2.3 tokens per step at temperature 1.0, the bandwidth ceiling falls to approximately 201 tok/s. Per-position acceptance declines from 0.6 for the first draft to 0.33 and 0.19 for subsequent positions.
At 190.6 tok/s, vLLM plus DSpark is already using approximately 95% of the available hardware bandwidth. Further flag tuning therefore has limited potential. Exceeding 190 tok/s would require a drafter with higher acceptance at temperature 1.0 or a verification path that accesses fewer experts per layer.
What did not work
Most candidate flags were unsupported, produced inconsistent results, or reduced performance.
vLLM
| Setting | Result |
|---|---|
| Shorter draft length, 3-6 | Rejected at startup. The configuration requires num_speculative_tokens = 7, equal to the checkpoint block size minus 1. |
draft_sample_method: "greedy" | Reduced performance by 11% at temperature 1.0, to 168.6 tok/s compared with approximately 190.4 tok/s. |
rejection_sample_method: "block" | Produced 190.1 tok/s versus 190.3-190.5 tok/s for the control runs, with no meaningful effect. |
enable_adaptive_verification | Produced an assertion error at startup for the Inkling 2 drafter. |
draft_lm_head_quantization: "fp8" | Supported only for DeepSeek DSpark drafters. |
The rejection_sample_method settings "fly" and "synthetic" were not tested because they alter the output distribution, while the experiment required a strictly lossless speedup.
SGLang
| Setting | Result |
|---|---|
| Shorter draft length, 3-6 | Rejected at startup. The configuration requires --speculative-num-draft-tokens 8, or gamma + 1 for the bundled drafter. |
SGLANG_ENABLE_NV_MEGA_RUNTIME_OPTIMIZATION=1 | Produced a 4% improvement once, but the result did not reproduce against fresh controls. |
SGLANG_OPT_USE_FUSED_DRAFT_SAMPLE=1 | Produced a 2% improvement, within run-to-run variation. |
SGLANG_OPT_MOE_QUANT_ONCE=1 | Produced a 1% improvement, within run-to-run variation. |
SGLANG_DSPARK_USE_GREEDY_DRAFT=1 | Reduced performance by 9% at temperature 1.0, to 156.8 tok/s compared with approximately 172 tok/s. |
Benchmarking issues
Several measurement problems appeared during the experiment.
- Triton JIT during timed prefill: vLLM's first 4K prefill measured 202 tok/s instead of 20K because Triton compiled kernels during the timed request. An unmeasured warmup across prompt lengths and concurrency corrected the 4K prefill result. The first run in each Job still under-reported 32K prefill because of differences in the final chunk shape, and those measurements were marked in the ledger.
- Orphaned servers retaining GPU memory: The initial driver stopped servers using a PID saved from
setsid … &. That PID was not guaranteed to match the process-group ID. A previous server remained alive on port 8000, prevented the next launch, and became a zombie that still responded tokill -0. Replacing this approach withsubprocess.Popen(start_new_session=True)and waiting for both GPU memory and port 8000 to become free resolved the problem. - Hidden out-of-memory errors in vLLM logs: vLLM plus DSpark failed twice with
Engine core initialization failednear the end of the log, while the actual causes appeared approximately 200 lines earlier. First, the default 1-million-token KV cache required 52.6 GiB, while only 48.1 GiB was free alongside the drafter. Setting--max-model-len 262144fixed this issue. Later, vLLM v0.34.0 increased the default--gpu-memory-utilizationfrom0.92to1.0. The KV cache then claimed the remaining VRAM and caused an out-of-memory failure when the drafter requested 5 GiB. Setting--gpu-memory-utilization 0.85fixed the second issue. The driver was updated to print every error line from the server log rather than only its tail. - Engine variation: Identical speculative-decoding runs varied by no more than 0.4% with vLLM, while SGLang varied by ±4.5%. This initially made
SGLANG_ENABLE_NV_MEGA_RUNTIME_OPTIMIZATION=1appear to provide a 4% improvement. Repeat control runs showed that the apparent gain was not reliable.
Verification and deployment
Before deployment, the exact vLLM nightly digest was pinned:
vllm/vllm-openai@sha256:eaa63fd6…
The build was 0.34.0rc1.dev1235+gf2f9edcac. Acceptance tests were then run inside a Job.
| Verification gate | Result |
|---|---|
| Needle retrieval at approximately 50% context, 126,537 tokens | 3/3, TTFT 12.5 s |
| Needle retrieval at approximately 95% context, 249,970 tokens | 3/3, TTFT 28.7 s |
| Concurrent soak, 4 × approximately 58K-token requests | 4/4 succeeded, with 3/3 retrieval for each request |
| Greedy equivalence, DSpark versus no speculation, 6 prompts at temperature 0 | 6/6 byte-identical |
| Single-user decode on the pinned image | 189.9 / 190.2 tok/s |
After these tests passed, the endpoint was deployed with hf endpoints deploy, pinning both the image digest and model revision. The endpoint used authenticated access and scaled to zero after 60 idle minutes.
hf endpoints deploy inkling2mini-tuned-dspark --namespace <your-org> \
--repo thinkingmachines/Inkling-2-Mini --revision 7a67ae2314b44ef05c87fd1d4d311c58aaeb18f6 \
--framework custom --custom-image "vllm/vllm-openai@sha256:eaa63fd6ee3aac77f3158e80ed79ec425db3a53f7cd666bf1954e96abfaf19a7" \
--health-route /health --port 8000 \
--vendor aws --region us-east-2 --accelerator gpu --instance-type nvidia-rtx-pro-6000 --instance-size x1 \
--min-replica 0 --max-replica 1 --scale-to-zero-timeout 60 --type authenticated \
--container-command "vllm serve" \
--container-args "/repository --served-model-name thinkingmachines/Inkling-2-Mini --host 0.0.0.0 --port 8000 --tool-call-parser inkling --enable-auto-tool-choice --reasoning-parser inkling --max-model-len 262144 --gpu-memory-utilization 0.85 --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"draft_sample_method\":\"probabilistic\"}'"
Running bench.py against the live endpoint produced 194.9 tok/s for single-user decode. After accounting for network latency, this matched the Job results.
The experiment's PLAN.md, THEORY.md, jobs/driver.py, submit.sh, deploy.sh, and raw ledger-*.jsonl files are stored in NielsRogge/inkling-2-mini-hillclimb. The same process can be reused with another model by placing candidate and control server commands in a configs/plan-*.json file and submitting it to the HF Jobs GPU flavor corresponding to the target endpoint.