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.0 --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

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.0

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.0
File Size Uploaded
turbo_dllm-0.1.0.tar.gz 3.2 MB Details

Built distribution (wheel)

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

Total release size: 3.7 MB

Release files / turbo_dllm-0.1.0.tar.gz

Download URL turbo_dllm-0.1.0.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
b0da6df1849e0ccc6875d2b57ade55e3201164b65f6e488c593e1e1c16860eaf
BLAKE2b-256 checksum
How to use checksums
7226cc5705b1198ca9a28ab602bdb7b3f98c9add0258e5a4783ab28533166606
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 18, 2026.

Transparency log

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

Download URL turbo_dllm-0.1.0-py3-none-any.whl
Size 589.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90c9c7acacb1c4b4742cc7a85a37cd4e62550f0352e20a3a3776109e9047ad4c
BLAKE2b-256 checksum
How to use checksums
4b1af3db321c3ed886b102519496aec3a3b6bc4c2b26cb0e2c21c12f24c7010a
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 18, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

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