Skip to main content

Turbo-dLLM

Turbo-dLLM is a highly optimized distributed training library for diffusion language models. It includes the official implementation of context-sharded block parallelism for scaling block-diffusion language model training to large contexts, plus typed configuration, prepared-data runtimes, checkpointing, and optimized CUDA kernels.

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:

dllm bundle install --release v0.1.1 --auto

The installer downloads only an exact supported bundle and verifies its native artifacts. See installation for source installs, offline mirrors, and model-specific extras.

Start training

Create an editable 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

The preparation frontend accepts Hugging Face datasets, JSONL, Parquet, text, and token IDs. It supports text, chat messages, prompt/completion records, and token-level supervision while keeping tokenization 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

Packaged recipes provide small validation runs and focused examples:

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

License

First-party code is Apache-2.0. Vendored components retain their upstream licenses; see NOTICE and FlashAttention provenance.

Release files for turbo-dllm 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for turbo-dllm 0.1.1
File Size Uploaded
turbo_dllm-0.1.1.tar.gz 3.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for turbo-dllm 0.1.1
File Interpreter ABI Platform
turbo_dllm-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size:3.8 MB

Release files / turbo_dllm-0.1.1.tar.gz

Download URL turbo_dllm-0.1.1.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
52ab2c524d694b3872aeaf465ec0ab3d4f16e097075a38d624b49e2672368144
BLAKE2b-256 checksum
How to use checksums
ec99d78ec6c86fff453c972b63e1b8aaebced08f2affb7712db93509ff5dbc60
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 Sep 19, 2026.

Transparency log

Release files / turbo_dllm-0.1.1-py3-none-any.whl

Download URL turbo_dllm-0.1.1-py3-none-any.whl
Size 607.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4e79c088bd8063190d5aa1a9451e97e6908a4a79d32c44e826de4b5438cc170
BLAKE2b-256 checksum
How to use checksums
cc05a6e780786a00947a4ac42c538c8464cfceb75fd107d004f55797273e0680
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 Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page