Inkling-2-Mini-DFlash2

incoai/Inkling-2-Mini-DFlash2

作者
incoai
任务
文本生成
下载量
12,940
点赞数
72
趋势分
23
许可证
apache-2.0
收录时间
2026/11/27

license: apache-2.0 library_name: transformers pipeline_tag: text-generation base_model:

  • thinkingmachines/Inkling-2-Mini inference: false tags:
  • dflash2
  • speculative-decoding
  • block-diffusion
  • draft-model
  • sglang

Inkling-2-Mini-DFlash2

Blog | GitHub

This repository contains the DFlash 2 draft model for thinkingmachines/Inkling-2-Mini. It is not a standalone language model: it runs inside a speculative decoding server and drafts tokens for the target model to verify.

DFlash 2 is a block-diffusion drafter for speculative decoding. It predicts a whole block of tokens in a single pass and keeps the top candidates at every position. A lightweight selector then traces one coherent path through them. Two-tap dynamic convolutions in the backbone keep the draft from decaying toward the end of the block. Target verification preserves the target model's sampling distribution.

Quick Start

Use the official lmsysorg/sglang:inkling-2-mini image with the included Inkling DFlash 2 compatibility patch:

hf download incoai/Inkling-2-Mini-DFlash2 sglang_inkling_dflash2.py --local-dir ./inkling-dflash2
python ./inkling-dflash2/sglang_inkling_dflash2.py

python -m sglang.launch_server \
  --model-path thinkingmachines/Inkling-2-Mini \
  --speculative-algorithm DFLASH \
  --speculative-draft-model-path incoai/Inkling-2-Mini-DFlash2 \
  --speculative-num-draft-tokens 8 \
  --attention-backend fa4 \
  --speculative-draft-attention-backend fa4

Evaluation

  • Runtime: SGLang on one NVIDIA H200, with FlashAttention 4 for target and draft attention
  • Speculation block size: 8 (7 draft tokens per verification step)
  • Sampling: Inkling-2-Mini's official defaults (temperature 1.0, top-p 1.0, top-k disabled), with default reasoning effort
  • Maximum new tokens: 4096
  • Prompts: benchmark formatting from z-lab/dflash

We compare autoregressive decoding, Inkling's built-in MTP (DSpark), and DFlash 2. All speculative methods propose seven draft tokens per verification step.

Acceptance Length

Acceptance length is the per-request mean of completion tokens divided by verification steps. Higher is better.

TaskMTP (DSpark)DFlash 2
GSM8K3.524.96
MATH-5003.474.97
HumanEval3.664.80
MBPP3.494.88
MT-Bench2.953.90

Throughput

Throughput is total output tokens divided by end-to-end wall time. Each cell shows output tok/s (speedup vs. autoregressive).

Concurrency 1

TaskAutoregressiveMTP (DSpark)DFlash 2
GSM8K180.1375.0 (2.08×)482.1 (2.68×)
MATH-500190.5375.7 (1.97×)525.8 (2.76×)
HumanEval190.2374.7 (1.97×)475.9 (2.50×)
MBPP181.7393.8 (2.17×)503.4 (2.77×)
MT-Bench190.7297.6 (1.56×)387.3 (2.03×)

Concurrency 8

TaskAutoregressiveMTP (DSpark)DFlash 2
GSM8K851.11,100.8 (1.29×)1,452.2 (1.71×)
MATH-500919.41,157.5 (1.26×)1,522.3 (1.66×)
HumanEval879.31,136.8 (1.29×)1,425.4 (1.62×)
MBPP845.11,160.3 (1.37×)1,524.6 (1.80×)
MT-Bench847.3893.7 (1.05×)1,158.3 (1.37×)

Concurrency 32

TaskAutoregressiveMTP (DSpark)DFlash 2
GSM8K1,462.12,049.9 (1.40×)2,582.1 (1.77×)
MATH-5001,577.12,173.1 (1.38×)2,855.4 (1.81×)
HumanEval1,522.02,120.9 (1.39×)2,686.1 (1.76×)
MBPP1,516.02,230.1 (1.47×)2,908.4 (1.92×)
MT-Bench1,494.81,713.7 (1.15×)2,206.8 (1.48×)

Citation

If you find DFlash 2 useful, please cite:

@misc{inco2026dflash2,
  title  = {{DFlash 2: Keep Drafting Parallel}},
  author = {{Inco AI}},
  year   = {2026},
  month  = {August},
  url    = {https://inco.ai/blog/dflash2/}
}

Please also cite the original DFlash paper:

@inproceedings{chen2026dflash,
  title     = {{DFlash: Block Diffusion for Flash Speculative Decoding}},
  author    = {Chen, Jian and Liang, Yesheng and Liu, Zhijian},
  booktitle = {International Conference on Machine Learning (ICML)},
  year      = {2026}
}

内容来源:Hugging Face 模型卡

在 Hugging Face 查看