Skip to main content

d3pm

ci

Discrete denoising diffusion probabilistic models in MLX

d3pm is a small library for discrete denoising diffusion probabilistic models (D3PM) in MLX.

Examples

Self-contained examples can be found in examples.

Installation

To install the latest GitHub , just call the following on the command line:

pip install git+https://github.com/dirmeier/d3pm-mlx@<RELEASE>

Please do not directly install from the main branch, since these commits are not tested, but prefer using PyPI or a stable release.

Contributing

Contributions in the form of pull requests are more than welcome. A good way to start is to check out issues labelled good first issue.

In order to contribute:

  1. Clone d3pm-mlx and install uv from here.

  2. Install all dependencies using uv sync --all-groups.

  3. Install the Git hooks:

    uv run pre-commit install -t pre-commit -t commit-msg
    
  4. Create a new branch locally, e.g. git checkout -b feature/my-new-feature.

  5. Implement your contribution and ideally a test case.

  6. Check your work (see below).

  7. Submit a PR 🙂.

Development commands

The project uses uv for everything:

uv sync --all-groups
uv run ruff format src examples
uv run ruff check --fix src examples
uv run mypy src examples
uv run pre-commit run --all-files

References

Metadata

Release files for d3pm 0.0.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 d3pm 0.0.1
File Size Uploaded Provenance
d3pm-0.0.1.tar.gz 99.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for d3pm 0.0.1
File Interpreter ABI Platform
d3pm-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 131.3 kB

Release files / d3pm-0.0.1.tar.gz

Download URL d3pm-0.0.1.tar.gz
Size 99.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cfec8df61b0c5714751efacc7346b331a7dd06915f453ce7762b7eef77092c0f
BLAKE2b-256 checksum
How to use checksums
fecd232ff87025f65fdbf027f40acb89419aa0cb91f8e7898f57976bff66aa0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / d3pm-0.0.1-py3-none-any.whl

Download URL d3pm-0.0.1-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55d8ca808fabb6b16f4235e674853d56fe35d351dfdc926ce794dcdd4a4a86b7
BLAKE2b-256 checksum
How to use checksums
bd64681c9ba238a9b4f87d215d23e750c3ddf11927698e67162720917d1dea01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for d3pm 0.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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