Inkling 2 Mini inference on RTX PRO 6000: 40% speedup via vLLM + DSpark speculative decoding
TL;DR
Inkling 2 Mini can be served on a single NVIDIA RTX PRO 6000 GPU at 190 tok/s single‑user decode (≈40 % faster than the baseline) and 716 tok/s aggregate throughput for 8 concurrent users by using vLLM nightly with DSpark speculative decoding and a few memory‑utilization flags. This pushes inference speed to ~95 % of the hardware bandwidth ceiling, making the model a practical open‑source option for coding, tool use, and reasoning on modest hardware.
Model overview and why it matters
Inkling 2 Mini is a 26 B‑parameter open‑source model (3 B active per token) that supports multimodal inputs and a 1 M‑token context window. It outperforms larger closed‑source models such as Gemma 4 31B and Qwen 3.8‑27B on 32 of 48 benchmarks in the Artificial Analysis Intelligence Index v5, positioning it as a strong, locally‑runnable alternative for developers who need high‑quality coding, tool‑use, and reasoning capabilities without enterprise‑grade GPUs.
Architecture that enables high performance
- Looped Mixture‑of‑Experts (MoE): 24 physical layers, with the middle 12 layers repeated three times, yielding 48 effective layers per token.
- Checkpoint format: Mixed NVFP4 and MXFP8, bundled with a DSpark drafter for speculative decoding.
- Framework support: Both vLLM and SGLang support the model on nightly builds, though official serving recipes target NVIDIA B200/GB300 GPUs (sm100). The RTX PRO 6000 uses the sm120 architecture, requiring custom flag tuning.
Experimental methodology
The team used the inference‑optimisation skill to automate a disciplined tuning loop:
- Baseline measurement of hardware limits and initial decode speed.
- Single‑variable changes with control‑candidate‑control runs, keeping only improvements that beat both controls.
- Logging of every attempt in
PLAN.md. - Verification of long‑context retrieval, concurrency, and byte‑identical greedy outputs before declaring a winner.
The benchmark script (bench.py) measures:
- Single‑user decode speed.
- Aggregate decode at concurrency N.
- Cold prefill speed for 4 K and 32 K token prompts.
- Time‑to‑first‑token (TTFT).
All runs used six fixed prompts (code, explanation, story, table, bash script, history summary) at temperature 1.0, 512 output tokens, and 12 repetitions when speculation was enabled.
Key results
| Config (1× RTX PRO 6000) | 1‑user decode (tok/s) | 8‑user aggregate (tok/s) | Prefill 4K / 32K (tok/s) | TTFT |
|---|---|---|---|---|
| vLLM + DSpark (7 drafts) | 190.6 | 716 | 20.7 K / 20.6 K | 40 ms |
| vLLM, no speculation | 157.0 | 638 | 20.7 K / 20.7 K | 33 ms |
| SGLang + DSpark (8 drafts) | 166.6 | — | 18.0–19.5 K / 18.9–19.1 K | 38–51 ms |
| Baseline SGLang, no speculation | 134–139 | 543–598 | 18.7–19.1 K / 16.9–19.1 K | 41–114 ms |
| Deployed endpoint (internet) | 194.9* | 673* | 11.7 K / 19.2 K* | 198 ms* |
*Network latency (~160 ms) is included in the endpoint numbers.
Speedup breakdown
- Switching from SGLang to vLLM nightly: +15 % (134 → 157 tok/s).
- Enabling DSpark with 7 drafts and probabilistic draft sampling: +21 % (157 → 190.6 tok/s).
- Adding two memory‑utilization flags (
--gpu-memory-utilization 0.85and--max-model-len 262144) allowed the drafter to start on the full 96 GB VRAM.
All speculative runs produced byte‑identical greedy outputs compared with non‑speculative runs, confirming lossless speed gains.
Why the ceiling is ~190 tok/s
- Measured hardware bandwidth: 1,469 GB/s copy, 416 TFLOPS BF16, 792 TFLOPS FP8.
- Each token visits 48 layers, reading
2.7 GB of attention/dense weights, ~2 GB of routed experts, and ~0.9 GB of LM head → theoretical **256 tok/s** bandwidth ceiling. - Without speculation, vLLM at 157 tok/s uses 61 % of that ceiling, limited mainly by kernel‑launch latency.
- Speculative decoding reduces the number of expert reads per token (≈40 % vs 6 % for a single draft) and lowers the effective bandwidth ceiling to ~201 tok/s.
- At 190.6 tok/s the system reaches ≈95 % of the speculative bandwidth limit; further gains would require a drafter with higher acceptance rates or a verification path that touches fewer experts.
Flags and configurations that did not improve performance
vLLM
- Draft lengths shorter than 7 were rejected (checkpoint block size requires
num_speculative_tokens = 7). draft_sample_method: "greedy"reduced speed by 11 %.enable_adaptive_verificationcaused an assertion error.draft_lm_head_quantization: "fp8"is unsupported for Inkling 2 Mini.
SGLang
- Shorter draft lengths (3–6) were rejected; the bundled drafter needs 8 drafts.
SGLANG_ENABLE_NV_MEGA_RUNTIME_OPTIMIZATION=1gave a +4 % bump once but could not be reproduced consistently.SGLANG_OPT_USE_FUSED_DRAFT_SAMPLE=1andSGLANG_OPT_MOE_QUANT_ONCE=1each yielded +1–2 %, within normal run‑to‑run noise.SGLANG_DSPARK_USE_GREEDY_DRAFT=1caused a ‑9 % slowdown.
Practical benchmarking lessons
- Triton JIT can distort prefill timings; run an unmeasured warm‑up before timing.
- Orphaned server processes may hold GPU memory; ensure proper process termination (
subprocess.Popen(start_new_session=True)). - Hidden OOM errors: vLLM’s default KV‑cache size for a 1 M‑token context exceeds available VRAM; set
--max-model-lenand lower--gpu-memory-utilizationto avoid OOM. - Engine variance: vLLM showed <0.4 % variance across runs, while SGLang varied ±4.5 %, affecting the reliability of small performance claims.
Verification and production deployment
The winning configuration passed a suite of acceptance gates:
- Needle retrieval at 126 K and 250 K tokens (3/3 success each).
- Concurrent soak test with four ~58 K‑token requests (all succeeded).
- Greedy‑equivalence test (6/6 byte‑identical outputs).
- Single‑user decode on the pinned image (≈190 tok/s).
Deployment used a pinned vLLM nightly image and the exact command‑line flags listed above. The endpoint runs on a single RTX PRO 6000 instance (nvidia-rtx-pro-6000 flavor) with scale‑to‑zero after 60 minutes of idle time.
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\"}'"
All scripts, logs, and the experimental ledger are publicly available in the GitHub repository NielsRogge/inkling-2-mini-hillclimb.
Implications for the open‑source LLM ecosystem
- Hardware efficiency: Achieving near‑hardware‑bandwidth inference on a single consumer‑grade GPU demonstrates that sophisticated MoE models can be practical without multi‑GPU clusters.
- Speculative decoding maturity: DSpark’s probabilistic draft sampling provides a lossless ~20 % speed boost, encouraging broader adoption for other open‑source MoE models.
- Automation of tuning: The
inference‑optimisationskill showcases a reproducible, agent‑driven workflow that can be reused for future model‑hardware pairings, lowering the barrier for community members to extract maximal performance. - Deployment simplicity: Pinning a nightly vLLM image and a minimal flag set yields a production‑ready endpoint that rivals community benchmarks, expanding the viable deployment options for developers with modest GPU budgets.
References
- Inkling 2 Mini model page: https://huggingface.co/blog/inkling2mini
- Artificial Analysis Intelligence Index v5: https://artificialanalysis.ai/models/open-source
- Full experiment repository: https://github.com/NielsRogge/inkling-2-mini-hillclimb
inference‑optimisationskill: https://github.com/sybil-solutions/inference-optimisation-skill- LocalMaxxing benchmark for comparison: https://www.localmaxxing.com/en/inference-benchmarks/cmwqfbexc089gmi01hd6hiqhn