Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Diffusion Model Playground

GitHub Actions Workflow Status GitHub Release PyPI - Python Version GitHub Repo stars

This is a simplified framework to train and run diffusion models.

Getting Started

To get started, simply install the python package from PyPI:

pip install diffusion-model-framework

The base install only has what the models and samplers need. Extras add more:

Extra Adds For
inference click, hydra the diffusion-models infer CLI
training inference + tensorboard, transformers training
evaluation inference + torchmetrics FID / KID
pip install "diffusion-model-framework[inference]"

Then, you're ready to start setting up your own training process. For help getting started with that, have a look at some of the examples.

Installing the package

Thanks to uv, installing this package is very simple and can be done in a single command. Simply run:

uv sync

That's it, the package is installed. Move to the next section to learn how to use this package.

Building from source

Installing uv

This tool uses uv. If you already have uv installed, please skip to the next section. Otherwise, run:

curl -LsSf https://astral.sh/uv/install.sh | sh

You can find out more about uv installation here.

That's it, uv is set up.

Installing and building locally

Installing the package via uv is very simple. Simply run:

uv sync

You can now start using the package to train your diffusion model. For example, try running:

uv run diffusion-models train diffuser

Tab completion for commands, config groups (model=<TAB>), presets (+config=<TAB>) and config keys is available for bash, zsh and fish. For bash:

eval "$(uv run diffusion-models completion bash)"   # add to ~/.bashrc
diffusion-models configs list diffuser               # groups, options, presets

Completion reads a cached snapshot of the registered configs (in ~/.cache/diffusion-models), rebuilt automatically whenever the code changes, so it stays fast.

Building a wheel is also possible via:

uv build

Building the documentation

First you will need to install the dependency group used for documentation.

uv sync --group documentation

Now you can build the documentation using Sphinx by running:

uv run sphinx-build -M html docs/source/ docs/build

Metadata

Release files for diffusion-model-framework 1.2.0rc1

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

Source distribution (sdist)

Source distribution for diffusion-model-framework 1.2.0rc1
File Size Uploaded Provenance Actions
diffusion_model_framework-1.2.0rc1.tar.gz 47.1 MB With provenance Details for diffusion_model_framework-1.2.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for diffusion-model-framework 1.2.0rc1
File Interpreter ABI Platform Actions
diffusion_model_framework-1.2.0rc1-py3-none-any.whl Python 3 none any Details for diffusion_model_framework-1.2.0rc1-py3-none-any.whl

Total release size: 47.3 MB

Release files / diffusion_model_framework-1.2.0rc1.tar.gz

Download URL diffusion_model_framework-1.2.0rc1.tar.gz
Size 47.1 MB
Tags Source
SHA-256 checksum
How to use checksums
8b948bd3908161f9b197c182f84a6c252554ae41f008c3fcc58bb99103a9f399
BLAKE2b-256 checksum
How to use checksums
d8640d8be271048f354c841e064234edef897df9e5dd87474687e534dbb1c164
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Release files / diffusion_model_framework-1.2.0rc1-py3-none-any.whl

Download URL diffusion_model_framework-1.2.0rc1-py3-none-any.whl
Size 127.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d99be5fd7cbdcc8a8837a185416b171b811af1532ee418db475c58feb082913
BLAKE2b-256 checksum
How to use checksums
fba28af5c9012d3594c670f3730910dac8e8a56913dc776c880b4aff1020a167
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Security for diffusion-model-framework 1.2.0rc1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for diffusion_model_framework-1.2.0rc1.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 Nov 24, 2026.

Transparency log

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

Release history Release notifications | RSS feed

This release
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