dInfer: An Efficient Inference Framework for Diffusion Language Models

Yuxin Ma, Lun Du, Lanning Wei, Kun Chen, Qian Xu +18 more
10/9/2025
cs.CLcs.AI

Official code: inclusionAI/dInfer (474 stars, Apache-2.0, last commit 2026-02-11).

Abstract

Diffusion-based large language models (dLLMs) have emerged as a promising alternative to autoregressive (AR) LLMs, leveraging denoising-based generation to enable inherent parallelism. Even more and more open-sourced dLLM models emerge, yet their widespread adoption remains constrained by the lack of a standardized and efficient inference framework. We present dInfer, an efficient and extensible framework for dLLM inference. dInfer decomposes the inference pipeline into four modular components--model, diffusion iteration manager, decoding strategy, and KV-cache manager--and integrates novel algorithms for each component alongside system-level optimizations. Through this combination of algorithmic innovations and system enhancements, dInfer achieves substantial efficiency gains without compromising output quality on LLaDA-MoE. At batch size 1, it surpasses 1,100 tokens per second on HumanEval and averages over 800 tokens per second across six benchmarks on $8\times$ H800 GPUs. Compared to prior systems, dInfer delivers a $10\times$ speedup over Fast-dLLM while maintaining similar model performance. Even compared to the AR model (with a comparable number of activation parameters and performance) QWen2.5-3B, which is highly optimized with the latest vLLM inference engine, dInfer still delivers a $2$-$3\times$ speedup. The implementation of dInfer is open-sourced at https://github.com/inclusionAI/dInfer.

View on arXivView PDF

Code Implementations(1)

inclusionAI/dInferOfficial100%
Apache-2.0

dInfer: An Efficient Inference Framework for Diffusion Language Models

47445Shell, PythonSep 29, 20258 months agoApache-2.0

Similar Papers

Cite this paper

@article{ma2025dinfer,
  title  = {dInfer: An Efficient Inference Framework for Diffusion Language Models},
  author = {Yuxin Ma and Lun Du and Lanning Wei and Kun Chen and Qian Xu and Kangyu Wang and Guofeng Feng and Guoshan Lu and Lin Liu and Xiaojing Qi and Xinyuan Zhang and Zhen Tao and Haibo Feng and Ziyun Jiang and Ying Xu and Zenan Huang and Yihong Zhuang and Haokai Xu and Jiaqi Hu and Zhenzhong Lan and Junbo Zhao and Jianguo Li and Da Zheng},
  year   = {2025},
  eprint = {2510.08666},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.08666v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.08666.svg)](https://codeofpaper.com/paper/2510.08666)

Discussion