Inkling-2-Mini AngelSpec DSpark drafter

A speculative-decoding drafter for thinkingmachines/Inkling-2-Mini, trained with Tencent's AngelSpec. It ships in the DeepSeek DSpark checkpoint layout (Qwen3DSparkModel), so stock vLLM serves it with no patches.

Speculative decoding keeps Inkling's own outputs: every drafted token is verified by Inkling. On a single H100, the drafter makes Inkling about 2.6Γ— faster at single-user greedy decoding (456 vs 172 tok/s), 1.6–1.9Γ— on long documents (1.5K–12K tokens), and 1.4Γ— at 32 concurrent requests, with no measurable loss in task accuracy. It is faster than Inkling's built-in drafter head at every prompt length tested.

Versions. main = v2 (this card: + long-document stage 3). The previous release stays pinnable as revision v1 ("revision": "v1"), which is ~3% faster on short prompts and slower on long ones (table below).

Usage

vllm serve thinkingmachines/Inkling-2-Mini \
  --speculative-config '{"method": "dspark", "model": "Siddartha10/Inkling-2-Mini-AngelSpec-DSpark", "num_speculative_tokens": 7}'
from vllm import LLM, SamplingParams
llm = LLM(model="thinkingmachines/Inkling-2-Mini",
          speculative_config={"method": "dspark", "model": "Siddartha10/Inkling-2-Mini-AngelSpec-DSpark",
                              "num_speculative_tokens": 7})
print(llm.generate(["Explain speculative decoding in one paragraph."], SamplingParams(max_tokens=256))[0].outputs[0].text)

Verified by loading this repo by its Hub id in a fresh container: the acceptance statistics match the pre-upload checkpoint exactly. Tested with vLLM nightly 0.34.1rc1.dev224+g16910e78d, Inkling-2-Mini revision c9d0283, on 1Γ— H100 80GB.

Results (all measured in stock vLLM, 1Γ— H100, same harness, controls run on both sides)

Speed at single-user decode (c1). 24 fixed prompts; decode tok/s = (nβˆ’1)/(t βˆ’ TTFT); paired bootstrap over prompts. No-drafter controls: 172.4 tok/s (short), 169.8 (1.5K), 165.7 (8K), 164.8 (12K).

Setting No drafter v2 (this) v1 Inkling's built-in head intuit/Inkling-2-Mini-dspark
Greedy, thinking effort "low" 172 456 (2.64Γ— [2.32, 3.05]) 468 (2.72Γ—) 379–387 456–460
Greedy, default thinking effort β€” 497 (Ο„ 3.65) 485 (Ο„ 3.67) 405 (Ο„ 3.42) 477 (Ο„ 3.98)
Temperature 1.0 β€” 406 (Ο„ 3.24) 425 (Ο„ 3.24) 323 (Ο„ 3.09) 379 (Ο„ 3.43)
1.5K-token book excerpts 170 320 (1.88Γ—), Ο„ 2.75 321, Ο„ 2.71 270, Ο„ 2.46 β€”
8K-token book excerpts 166 279 (1.68Γ—), Ο„ 2.45 234, Ο„ 2.05 253, Ο„ 2.29 257, Ο„ 2.35
12K-token book excerpts 165 262 (1.59Γ— [1.49, 1.64]), Ο„ 2.33 227, Ο„ 2.04 239, Ο„ 2.29 β€”

Book excerpts are PG-19 test books with "Write a detailed summary of the passage above." Short-prompt differences between v1 and v2 (Β±4%) are within the run-to-run variance between containers; the long-document gains are not.

Coding (c1 tok/s; EvalPlus prompts and 3–8K-token Python files from a held-out split):

No drafter v2 v1 Built-in head
HumanEval+ 173 531 538 461
MBPP+ (held-out) 173 461 461 393
Long Python files (3–8K tokens) 170 344 (Ο„ 3.18) 282 (Ο„ 2.78) 342 (Ο„ 3.58)

Acceptance length Ο„ (1 + accepted drafts per step, 7 drafts, 444 held-out prompts, greedy, effort "low"):

MT-Bench HumanEval GSM8K MATH-500 All
v2 2.83 3.87 4.92 4.05 3.76
v1 2.86 3.92 4.93 4.11 3.81
Built-in head 2.59 3.87 3.82 3.71 3.51
intuit 3.03 4.20 4.91 4.51 4.07

Concurrency (aggregate tok/s, median of 3 warmed repetitions): c8 1,259 vs 752 with no drafter (1.67Γ—); c32 2,807 vs 2,071 (1.36Γ—). c32 varies between repetitions, so treat it as approximate.

Quality is preserved. Task accuracy with vs without the drafter, greedy, paired per item:

No drafter With v2 Ξ” (95% CI) McNemar p
GSM8K-Platinum (1,209) 99.26% 99.26% 0.0 pt [βˆ’0.33, +0.33] 1.0
MATH-500 (500) 80.2% 81.6% +1.4 pt [βˆ’0.4, +3.2] 0.19
HumanEval (164) 90.2% 93.9% +3.7 pt [0.0, +7.9] 0.15
All (1,873) 93.38% 94.07% +0.69 pt [+0.05, +1.28] 0.047
EvalPlus HumanEval+ / MBPP+ (540) 84.3% 83.5% βˆ’0.7 pt [βˆ’2.6, +0.9] 0.54

The small gains are best read as "no loss", not as an improvement: speculative decoding on Inkling in vLLM is not bit-identical to plain decoding, for any drafter, the built-in head included (verify-time batch shapes change Inkling's numerics, so long greedy outputs diverge after about 80 tokens on average), and a few fragile problems flip either way. On HumanEval+ alone both v2 (βˆ’3.1 pt, p = 0.13) and the built-in head (βˆ’4.9 pt, p = 0.06) score lower than plain decoding; the differences sit on fragile problems (17 of 163 flip between two plain or drafted runs), and pooled over all coding checks the drafter is even.

Known limitations

  • Short prompts: v2 trades ~3% of short-prompt speed for long-document speed; pin revision: "v1" if your traffic is only short chat.
  • Long code files: Ο„ 3.18 vs 3.58 for the built-in head (speed is on par thanks to the cheaper pruned head).
  • Load: speedups shrink at high concurrency, as with all speculative decoding (1.36Γ— at c32).
  • vLLM features: DSpark confidence-based adaptive verification is unavailable for Inkling in vLLM 0.34.1rc1, for any drafter (it needs full CUDA graphs that Inkling's attention backend lacks). dspark_draft_topk crashes in vLLM.
  • Hardware: measured on H100 only. Blackwell (native FP4) is untested.

How it was trained

  • Data: 239,419 prompts, every response generated by Inkling-2-Mini itself under greedy decoding. The corpus is public: Siddartha10/inkling-2-mini-selfdistill.
    • General (199K, stage 1): open-perfectblend, UltraChat, GSM8K-train, LiveCodeBench and MBPP prompts at both "low" and default thinking effort.
    • Long documents (10K, stage 2): PG-19 train and arXiv excerpts of 1–3K tokens.
    • Longer documents (4.5K, stage 3): 4–11K-token PG-19 train books, arXiv articles and Python source files.
    • None of the evaluation prompts, test books or held-out code files are in the training data.
  • Features: Inkling's partial-block streams entering loop visits 5, 23 and 41, plus the final-norm output. These are exactly what vLLM hands a DSpark drafter (target_layer_ids = [4, 22, 40, 47], which vLLM shifts by +1), captured offline with transformers (exact query-chunked attention for long inputs) in AngelSpec's dump format.
  • Model: AngelSpec DSpark: 3-layer DFlash backbone (width 2304), vanilla Markov head (rank 256), confidence head. Block 7, anchor-first. 0.88B parameters in the file: 0.33B trained, plus frozen copies of Inkling's embedding (0.46B) and pruned LM head (0.09B).
  • Stage 1: AngelSpec offline FSDP, 8Γ— H100, LK loss, 4 epochs, global batch 8, lr 6e-4 cosine (4.8 h).
  • Stage 2: warm start; 10K long rows + seeded 25K replay; 2 epochs, lr 2e-4 β†’ 2e-5, max sequence 5,120 (50 min).
  • Stage 3: warm start from stage 2; stage-2 data + the 4.5K longer rows (39.5K rows, 76M tokens); 1 epoch, lr 2e-4 β†’ 2e-5, max sequence 12,288, 4Γ— H100 (32 min). 8K book Ο„ 2.05 β†’ 2.45, 12K 2.04 β†’ 2.33, short Ο„ 3.81 β†’ 3.76.
  • Export: renamed to vLLM's DSpark layout; draft vocabulary pruned to the 38,410 tokens covering 99.5% of Inkling's own outputs (d2t map, +7% speed). Inkling still verifies every proposal over its full vocabulary.

Citation / credits

Built on AngelSpec (Apache-2.0), DSpark and DFlash, and served by vLLM. Target model: Inkling-2-Mini (Apache-2.0) by Thinking Machines.

Downloads last month
181
Safetensors
Model size
0.9B params
Tensor type
I64
Β·
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Siddartha10/Inkling-2-Mini-AngelSpec-DSpark

Finetuned
(114)
this model

Dataset used to train Siddartha10/Inkling-2-Mini-AngelSpec-DSpark

Papers for Siddartha10/Inkling-2-Mini-AngelSpec-DSpark