Turbo-dLLM
Turbo-dLLM is a highly optimized distributed training library for diffusion language models and diffusion-based speculative decoders. It includes the official implementation of context-sharded block parallelism for scaling training to large contexts, plus typed configuration, prepared-data runtimes, checkpointing, and optimized CUDA kernels.
Paper: Block Parallelism For Efficient Distributed Long-Context Diffusion Language Model Training
Install
Install the portable package for configuration, data preparation, APIs, and CPU-safe validation:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install turbo-dllm
dllm doctor
GPU training uses a bundle matched to the host's Python, CUDA, and GPU architecture.
The qualified target is Python 3.12, CUDA 12.8, Ubuntu 24.04 x86_64, and SM90 (H100/H200). Install a CUDA 12.8 PyTorch runtime before selecting the bundle:
dllm bundle install --release v0.1.6 --auto
The installer downloads an exact supported bundle and verifies its native artifacts. See installation for source installs, offline mirrors, and model-specific extras.
Start training
Create a starter project:
dllm init ./my-run
cd ./my-run
Add JSONL records such as {"text": "A training document."} to
data/train.jsonl, then prepare and launch:
dllm data prepare --config prepare.yaml
dllm data validate data/prepared --config train.yaml
dllm launch --config train.yaml --dry-run
dllm doctor --config train.yaml
dllm launch --config train.yaml --nproc-per-node 1
The launcher validates the config and runtime before starting workers. For
distributed training, change the topology in train.yaml and set the matching
process count:
dllm launch --config train.yaml --nproc-per-node 8
For speculative training and deployment, follow the DFlash2 train-to-serve guide.
Data and recipes
Prepare Hugging Face datasets, JSONL, Parquet, text, or token IDs with text, chat, prompt/completion, and token-level supervision. Tokenization runs outside the GPU training loop.
python -m pip install 'turbo-dllm[data]'
dllm data prepare --config prepare.yaml
dllm data inspect data/prepared
dllm data stats data/prepared
Explore packaged recipes:
dllm recipe list
dllm recipe show smoke/cuda-fast-dllm-v2
dllm recipe copy examples/fast-dllm-v2-qwen3 ./run.yaml
dllm config validate --config ./run.yaml
Supported training
- Models: generic causal LMs, DFlash, DiffusionGemma, Nemotron Labs Diffusion, and Qwen3.8.
- Objectives: standard block diffusion, Fast-dLLM v2, DFlash distillation, and DiffusionGemma native SFT.
- Parallelism: data, context, block, tensor, sequence, FSDP, and supported DiffusionGemma expert parallelism.
- Operations: deterministic data artifacts, checkpoint/resume, profiling, and optional W&B logging.
Unsupported combinations fail during validation instead of silently falling back.
Documentation
- Quickstart
- Train and serve DFlash2
- Data preparation
- RunSpec configuration
- Supported models
- Parallelism
- GPU bundles
- API
- Contributing and security
Citation
If you use Turbo-dLLM in your research, please cite:
@misc{suresh2026blockparallelismefficientdistributed,
title = {Block Parallelism For Efficient Distributed Long-Context Diffusion Language Model Training},
author = {Tarun Suresh and Pranshu Chaturvedi and Hangoo Kang and Parth Shroff and Ishan S. Khare and Hermann Kumbong and Azalia Mirhoseini},
year = {2026},
eprint = {2609.19242},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2609.19242}
}
License
First-party code is Apache-2.0. Vendored components retain their upstream licenses; see NOTICE and FlashAttention provenance.
Metadata
Release files for turbo-dllm 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| turbo_dllm-0.1.6.tar.gz | 3.2 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| turbo_dllm-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.8 MB
Release files / turbo_dllm-0.1.6.tar.gz
| Download URL | turbo_dllm-0.1.6.tar.gz |
|---|---|
| Size | 3.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fc8e1d997ba23bf0ca9174babc7482372de7cc75da370e63f38870b99be9235
|
|
BLAKE2b-256 checksum How to use checksums |
a97ee38d233fc6c384d65ff2799d2eba4719bb727f3ba7ef9e0cc1ce6b6f7764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / turbo_dllm-0.1.6-py3-none-any.whl
| Download URL | turbo_dllm-0.1.6-py3-none-any.whl |
|---|---|
| Size | 609.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
257dbdee901a64ba3db358ae68d0e18f0a722d99f2a698b666c4057f912b9334
|
|
BLAKE2b-256 checksum How to use checksums |
3e3fe41755d48d43e8f9622c7067d6c477aa25a91c8e0b715b749995046f146d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logSecurity for turbo-dllm 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for turbo_dllm-0.1.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.