1uv pip install vllm
2uv pip install -U vllm --torch-backend=auto --extra-index-url https://wheels.vllm.ai/nightly
Please refer to
PR39930 to see how to use DFlash with Kimi-K2.5 on vLLM.
1# Optional: enable schedule overlapping (experimental, may not be stable)
2# export SGLANG_ENABLE_SPEC_V2=1
3# export SGLANG_ENABLE_DFLASH_SPEC_V2=1
4# export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
5python -m sglang.launch_server \
6 --model-path moonshotai/Kimi-K2.5 \
7 --speculative-algorithm DFLASH \
8 --speculative-draft-model-path z-lab/Kimi-K2.5-DFlash \
9 --speculative-num-draft-tokens 8 \
10 --tp-size 8 \
11 --attention-backend trtllm_mla \
12 --speculative-draft-attention-backend fa4 \
13 --mem-fraction-static 0.9 \
14 --speculative-dflash-draft-window-size 4096 \
15 --trust-remote-code
1from openai import OpenAI
2client = OpenAI(base_url="http://localhost:30000/v1", api_key="EMPTY")
3response = client.chat.completions.create(
4 model="moonshotai/Kimi-K2.5",
5 messages=[{"role": "user", "content": "Write a quicksort in Python."}],
6 max_tokens=4096,
7)
8print(response.choices[0].message.content)
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.
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.
1@article{chen2026dflash,
2 title = {{DFlash: Block Diffusion for Flash Speculative Decoding}},
3 author = {Chen, Jian and Liang, Yesheng and Liu, Zhijian},
4 journal = {arXiv preprint arXiv:2602.06036},
5 year = {2026}
6}