Siddartha10/Inkling-2-Mini-AngelSpec-DSpark
a fast drafter for inference acceleration
2 min readupdated
This auxiliary module (drafter) was trained using the Tencent AngelSpec methodology and is designed to accelerate text generation for the base model thinkingmachines/Inkling-2-Mini (0.88 billion parameters in total, including frozen weights). The method is based on speculative decoding: a lightweight model quickly drafts the next tokens, and the main model verifies them in a single pass. On a single H100 card, this provides a 2.7x speedup during greedy decoding without any degradation in response quality. The solution works out of the box with stock vLLM without custom code patches.
Key features
- High speed: generation speedup of up to 468 tokens per second versus 172 tokens per second for the base model in single mode.
- Accuracy preservation: response quality metrics on benchmarks (GSM8K, MATH-500, HumanEval) remain at the same level (93.81% instead of 93.38%).
- Stock support: supplied in the DeepSeek DSpark layout (
Qwen3DSparkModel) and supported by vLLM without additional modifications. - Long context optimization: the model was fine-tuned on long documents (up to 3K tokens) for efficient summarization.
What you can do
- Accelerate the API server: connect the drafter in the vLLM configuration to serve users with a high response speed.
- Summarize books and articles: process long texts (up to 1.5K tokens) at a speed 1.89x higher than the base model.
- Integrate into pipelines: use it for coding and mathematical reasoning tasks based on Inkling-2-Mini without loss of accuracy.
Example
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)
Read more
DetailsBenchmarks: the average length of accepted speculative tokens (τ) is 3.81 (up to 4.93 on GSM8K).
Hardware requirements: measured and tested on 1× H100 80GB.
Limitations: on very long prompts (from 8K tokens), efficiency drops, and the
dspark_draft_topk parameter in current version vLLM 0.34.1rc1 causes failures.Training: 234K prompts in two stages using LK loss (Linear Knowledge loss) based on the AngelSpec framework.










Comments