#164 · Primary category: Deep Learning Frameworks
mmdit
Implementation of a single layer of the MMDiT, proposed in Stable Diffusion 3, in Pytorch
Project last updated:01/18/26
GitHub Stars
555
Forks
17
Contributors
1
License
MIT
Why we included this project
Stable Diffusion 3's MMDiT block is the cross-attention layer that lets text steer image generation, and this repo implements it as a single, readable PyTorch module. Rather than a full training pipeline, you get one block you can drop into your own diffusion code, plus a generalized version that extends the same idea beyond two modalities, so text, image, audio, and video tokens can all be mixed in one transformer. The code is short enough to read through quickly, which helps if you want to understand how rectified-flow transformers combine conditioning signals or adapt the design to your own generation experiments. There's also an improvised self-attention variant with learned gating for anyone curious about alternatives to the standard formulation.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
tensorflow
An Open Source Machine Learning Framework for Everyone
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
keras
Deep Learning for humans
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
ray
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.