z-lab/MiniMax-M2.5-DFlash

Model

9

stars

15

commits

1

repos using this model

3

linked in READMEs

Jun 25, 2026

updated

block-diffusion
dflash
diffusion-language-model
draft-model
efficiency
endpoints_compatible
minimax
minimax_m2
qwen3
safetensors
speculative-decoding
text-generation
text-generation-inference
transformers

README

MiniMax-M2.5-DFlash

Paper | GitHub | Blog

DFlash is a speculative decoding method that uses a lightweight block diffusion model to draft multiple tokens in parallel. This is the drafter model, which must be paired with MiniMaxAI/MiniMax-M2.5.

DFlash Architecture

Quick Start

Installation

vLLM:

Check out vLLM issue #46105.

SGLang:

uv pip install "git+https://github.com/sgl-project/sglang.git#subdirectory=python"

Launch Server

vLLM:

Check out vLLM issue #46105.

SGLang:

python -m sglang.launch_server \
  --model-path MiniMaxAI/MiniMax-M2.5 \
  --tp-size 4 \
  --speculative-algorithm DFLASH \
  --speculative-draft-model-path z-lab/MiniMax-M2.5-DFlash \
  --attention-backend trtllm_mha \
  --speculative-draft-attention-backend fa4 \
  --mem-fraction-static 0.8 \
  --trust-remote-code \
  --host 0.0.0.0 \
  --port 30000

Usage

For SGLang, use port 30000.

from openai import OpenAI

client = OpenAI(base_url="http://localhost:30000/v1", api_key="EMPTY")

response = client.chat.completions.create(
    model="MiniMaxAI/MiniMax-M2.5",
    messages=[{"role": "user", "content": "Write a quicksort in Python."}],
    max_tokens=4096,
    temperature=0.0,
    extra_body={"chat_template_kwargs": {"enable_thinking": True}},
)
print(response.choices[0].message.content)

Benchmark Results

Setup: 4 NVIDIA B200 GPUs per server/run, SGLang, tensor parallel size 4, target attention backend trtllm_mha, draft attention backend fa4, thinking enabled, max output length 4096, greedy decoding. Concurrency 1 uses 128 prompts; concurrency 32 uses 1024 prompts.

Throughput

Generated tokens/sec

Block Size = 8

TaskConcurrencyDFlash
Math5001355.17
324619.18
GSM8K1347.84
324161.22
HumanEval1331.03
324329.96
MT-Bench1385.45
324658.84

Acceptance Length

Taskc1c32
Math5004.5034.516
GSM8K4.3424.338
HumanEval3.9233.979
MT-Bench4.3824.184

Acknowledgements

Special thanks to David Wang for his outstanding engineering support on this project. We are also grateful to Modal, InnoMatrix, and Yotta Labs for providing the compute resources used to train this draft model.

Citation

If you find DFlash useful, please cite our work. To share feedback on DFlash or request new model support, please fill out this form: DFlash Feedback.

@article{chen2026dflash,
  title   = {{DFlash: Block Diffusion for Flash Speculative Decoding}},
  author  = {Chen, Jian and Liang, Yesheng and Liu, Zhijian},
  journal = {arXiv preprint arXiv:2602.06036},
  year    = {2026}
}

Contributors

jianchen0311

15 commits

z-lab/MiniMax-M2.5-DFlash

Model

9

stars

15

commits

1

repos using this model

3

linked in READMEs

Jun 25, 2026

updated

block-diffusion
dflash
diffusion-language-model
draft-model
efficiency
endpoints_compatible
minimax
minimax_m2
qwen3
safetensors
speculative-decoding
text-generation
text-generation-inference
transformers

README

MiniMax-M2.5-DFlash

Paper | GitHub | Blog

DFlash is a speculative decoding method that uses a lightweight block diffusion model to draft multiple tokens in parallel. This is the drafter model, which must be paired with MiniMaxAI/MiniMax-M2.5.

DFlash Architecture

Quick Start

Installation

vLLM:

Check out vLLM issue #46105.

SGLang:

uv pip install "git+https://github.com/sgl-project/sglang.git#subdirectory=python"

Launch Server

vLLM:

Check out vLLM issue #46105.

SGLang:

python -m sglang.launch_server \
  --model-path MiniMaxAI/MiniMax-M2.5 \
  --tp-size 4 \
  --speculative-algorithm DFLASH \
  --speculative-draft-model-path z-lab/MiniMax-M2.5-DFlash \
  --attention-backend trtllm_mha \
  --speculative-draft-attention-backend fa4 \
  --mem-fraction-static 0.8 \
  --trust-remote-code \
  --host 0.0.0.0 \
  --port 30000

Usage

For SGLang, use port 30000.

from openai import OpenAI

client = OpenAI(base_url="http://localhost:30000/v1", api_key="EMPTY")

response = client.chat.completions.create(
    model="MiniMaxAI/MiniMax-M2.5",
    messages=[{"role": "user", "content": "Write a quicksort in Python."}],
    max_tokens=4096,
    temperature=0.0,
    extra_body={"chat_template_kwargs": {"enable_thinking": True}},
)
print(response.choices[0].message.content)

Benchmark Results

Setup: 4 NVIDIA B200 GPUs per server/run, SGLang, tensor parallel size 4, target attention backend trtllm_mha, draft attention backend fa4, thinking enabled, max output length 4096, greedy decoding. Concurrency 1 uses 128 prompts; concurrency 32 uses 1024 prompts.

Throughput

Generated tokens/sec

Block Size = 8

TaskConcurrencyDFlash
Math5001355.17
324619.18
GSM8K1347.84
324161.22
HumanEval1331.03
324329.96
MT-Bench1385.45
324658.84

Acceptance Length

Taskc1c32
Math5004.5034.516
GSM8K4.3424.338
HumanEval3.9233.979
MT-Bench4.3824.184

Acknowledgements

Special thanks to David Wang for his outstanding engineering support on this project. We are also grateful to Modal, InnoMatrix, and Yotta Labs for providing the compute resources used to train this draft model.

Citation

If you find DFlash useful, please cite our work. To share feedback on DFlash or request new model support, please fill out this form: DFlash Feedback.

@article{chen2026dflash,
  title   = {{DFlash: Block Diffusion for Flash Speculative Decoding}},
  author  = {Chen, Jian and Liang, Yesheng and Liu, Zhijian},
  journal = {arXiv preprint arXiv:2602.06036},
  year    = {2026}
}

Contributors

jianchen0311

15 commits