dLLM:简单的扩散语言建模
简单的扩散语言建模
## 概述 **dLLM** 是一个统一了**扩散语言模型**训练与评估的库,为整个开发流程带来透明度和可复现性: - dLLM 提供可扩展的训练流程(基于 [`transformers`](https://github.com/huggingface/transformers/blob/main/src/transformers) 的 [Trainer](https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py)),并支持 [LoRA](https://github.com/huggingface/peft)、[DeepSpeed](https://github.com/deepspeedai/DeepSpeed)、[FSDP](https://pytorch.org/blog/introducing-pytorch-fully-sharded-data-parallel-api/) 等。 - dLLM 提供统一的评估流水线(基于 [`lm-evaluation-harness`](https://github.com/EleutherAI/lm-evaluation-harness)),抽象了推理细节,使定制变得简单。 - 基于这些组件,dLLM 为开放权重模型(例如 [LLaDA](https://arxiv.org/abs/2502.09992) 和 [Dream](https://arxiv.org/abs/2508.15487))提供了极简的**训练 / 推理 / 评估**配方,以及训练算法的实现(例如 [MDLM](https://arxiv.org/abs/2406.07524)(掩码扩散)、[BD3LM](https://arxiv.org/abs/2503.09573)(块扩散)、[Edit Flows](https://arxiv.org/abs/2506.09018) 等)。 ## 新闻 **[2026/04] [`diffu-GRPO`](https://github.com/dllm-reasoning/d1)**: 我们支持掩码扩散语言模型的 diffu-GRPO 训练,并在 [LLaDA](https://arxiv.org/abs/2502.09992) 和 [Tiny-A2D](https://huggingface.co/collections/dllm-hub/tiny-a2d) 上,针对五个推理任务(GSM8K、MATH、Countdown、Sudoku、Code)进行了验证。训练说明请参阅 [`examples/rl`](/examples/rl#grpo)。 **[2026/02] ⚡[`Fast-dLLM`](https://github.com/NVlabs/Fast-dLLM)**: 我们支持对 [LLaDA](https://arxiv.org/abs/2502.09992) 和 [Dream](https://arxiv.org/abs/2508.1548) 的加速推理与评估。
暂无开放 Issues,或尚未同步最近议题。