Modular Diffusion – A modular Python library for diffusion models
Hello everyone! I've been working on this project for a few months as part of my thesis in Machine Learning. It's meant to be a library that provides an easy-to-use but flexible API to design and train Diffusion Models. I decided to make it because I wanted to quickly prototype a Diffusion Model but there were no good tools to do it with. I think it really can help people prototype their own Diffusion Models a lot faster and only in a few lines of code. The base idea is to have a Model class that takes different modules corresponding to the different aspects of the Diffusion Model process…
Modular Diffusion – A modular Python library for diffusion models launched on September 2, 2023 with 40 votes, #1,318 of 4,228 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 3 years on.
In plain words
Modular Diffusion is a Python library for designing and training diffusion models with a flexible, modular architecture. It allows researchers and developers to quickly prototype diffusion models by combining different components like noise schedules, denoising networks, and loss functions. The library includes pre-built modules and supports custom implementations, enabling users to experiment with various configurations in just a few lines of code.
written from the facts on this page · September 2026
From the sources
Python library for designing and training your own Diffusion Models with PyTorch - cabralpinto/modular-diffusion
In the maker’s words, at launch
Hello everyone! I've been working on this project for a few months as part of my thesis in Machine Learning. It's meant to be a library that provides an easy-to-use but flexible API to design and train Diffusion Models. I decided to make it because I wanted to quickly prototype a Diffusion Model but there were no…
Does a similar job
all alternatives →
Diffulab, a library to train diffusion models from scratch2025 · github.com · ▲10Lately a friend of mine has been working on a personal project and I wanted to share it. The goal of Diffulab is to provide a flexible and modular framework for training diffusion models from scratch. The project is still in its early stages, and he is actively working on adding new features and improvements.
Tiny Diffusion – A character-level text diffusion model from scratchNov 2025 · github.com · ▲172I previously posted this a month and a half ago: https://news.ycombinator.com/item?id=45876742 I have rewritten it to be much more simple, from 951 lines of code to just 364, with no loss in core functionality or generation quality. I also added a tiny GPT implementation as a comparison (inspired by Andrej Karpathy's code). The two model implementations are ~80% identical, with the core differences being the generate and get_batch functions. The model architecture, training loop, etc, differ in only 19 lines of code. Trained weights are included, so you can just clone and run…


- FSFree Stable Diffusion 2.0 hosted interface2022 · app.baseten.co · ▲25
Deploy and serve machine learnings models performantly, scalably, and cost-efficiently with Baseten.
Implementation of DDPM (Denoising Diffusion Probabilistic Models)2025 · github.com · ▲10Just small prototype showcasing diffusion models
More ai this month
the category →



Paintings by AI models: programs run through a simulation of oil paint.
AI · 20d ago · stillwet.art
PixVerse R2▲381A real-time world model you can explore and change
AI · 29d ago · world.pixverse.video

Source: Show HN post ↗ · launch text quoted in part