[ICCV2025] "Di[M]O: Distilling Masked Diffusion Models into One-step Generator", Yuanzhi Zhu, Xi Wang, Stéphane Lathuilière, Vicky Kalogeiton
39
stars
11
commits
Python
primary language
Aug 14, 2025
updated
We develop algorithm to distill MDMs into one-step generator, by matching the output distribution of teacher and student model.

git clone https://github.com/yuanzhi-zhu/DiMO.git
cd DiMO
pip install -r requirements.txt
MaskGit (pytorch): follow https://github.com/valeoai/Halton-MaskGIT/tree/v1.0
Messonic: huggingface model name: "meissonflow/meissonic"
bash scripts/launch_DIMO_MaskGit.sh
bash scripts/launch_DIMO_Meissonic.sh
# pwd
# /path/to/DiMO
huggingface-cli download Yuanzhi/DiMO --local-dir models
network_dir="./models/maskgit"
CUDA_VISIBLE_DEVICES=0 torchrun --nproc_per_node=1 sample_MaskGit.py \
--save_dir ./samples/test_sample \
--vit_path $network_dir \
--mode sample \
--nb_sample 64
network_dir='./models/meissonic'
CUDA_VISIBLE_DEVICES=0 torchrun \
--nproc_per_node=1 \
--master_port=29501 \
sample_Meissonic.py \
--save_dir ./samples/Meissonic_sample \
--vit_path $network_dir \
--mode sample \
If you find this repo helpful, please cite:
@article{zhu2025di,
title={Di$\mathtt{[M]}$O: Distilling Masked Diffusion Models into One-step Generator},
author={Zhu, Yuanzhi and Wang, Xi and Lathuili{\`e}re, St{\'e}phane and Kalogeiton, Vicky},
journal={arXiv preprint arXiv:2503.15457},
year={2025}
}
This work was supported by ANR-22-CE23-0007, ANR-22-CE39-0016, Hi!Paris grant and fellowship, DATAIA Convergence Institute as part of the “Programme d'Investissement d'Avenir” (ANR-17-CONV-0003) operated by Ecole Polytechnique, IP Paris, and was granted access to the IDRIS High-Performance Computing (HPC) resources under the allocation 2024-AD011014300R1 and 2025-AD011015894 made by GENCI and mesoGIP of IP Paris. We also sincerely thank Nacereddine Laddaoui for the help with infrastructure, Haoge Deng and Yao Teng for their insightful discussions that contributed to this work. We are also grateful to Nicolas Dufour, Robin Courant, and Lucas Degeorge for their meticulous proofreading.
This codebase is based on the MaskGit PyTorch and Meissonic.
11 commits
Python
97.1%
Shell
2.9%
[ICCV2025] "Di[M]O: Distilling Masked Diffusion Models into One-step Generator", Yuanzhi Zhu, Xi Wang, Stéphane Lathuilière, Vicky Kalogeiton
39
stars
11
commits
Python
primary language
Aug 14, 2025
updated
We develop algorithm to distill MDMs into one-step generator, by matching the output distribution of teacher and student model.

git clone https://github.com/yuanzhi-zhu/DiMO.git
cd DiMO
pip install -r requirements.txt
MaskGit (pytorch): follow https://github.com/valeoai/Halton-MaskGIT/tree/v1.0
Messonic: huggingface model name: "meissonflow/meissonic"
bash scripts/launch_DIMO_MaskGit.sh
bash scripts/launch_DIMO_Meissonic.sh
# pwd
# /path/to/DiMO
huggingface-cli download Yuanzhi/DiMO --local-dir models
network_dir="./models/maskgit"
CUDA_VISIBLE_DEVICES=0 torchrun --nproc_per_node=1 sample_MaskGit.py \
--save_dir ./samples/test_sample \
--vit_path $network_dir \
--mode sample \
--nb_sample 64
network_dir='./models/meissonic'
CUDA_VISIBLE_DEVICES=0 torchrun \
--nproc_per_node=1 \
--master_port=29501 \
sample_Meissonic.py \
--save_dir ./samples/Meissonic_sample \
--vit_path $network_dir \
--mode sample \
If you find this repo helpful, please cite:
@article{zhu2025di,
title={Di$\mathtt{[M]}$O: Distilling Masked Diffusion Models into One-step Generator},
author={Zhu, Yuanzhi and Wang, Xi and Lathuili{\`e}re, St{\'e}phane and Kalogeiton, Vicky},
journal={arXiv preprint arXiv:2503.15457},
year={2025}
}
This work was supported by ANR-22-CE23-0007, ANR-22-CE39-0016, Hi!Paris grant and fellowship, DATAIA Convergence Institute as part of the “Programme d'Investissement d'Avenir” (ANR-17-CONV-0003) operated by Ecole Polytechnique, IP Paris, and was granted access to the IDRIS High-Performance Computing (HPC) resources under the allocation 2024-AD011014300R1 and 2025-AD011015894 made by GENCI and mesoGIP of IP Paris. We also sincerely thank Nacereddine Laddaoui for the help with infrastructure, Haoge Deng and Yao Teng for their insightful discussions that contributed to this work. We are also grateful to Nicolas Dufour, Robin Courant, and Lucas Degeorge for their meticulous proofreading.
This codebase is based on the MaskGit PyTorch and Meissonic.
11 commits
Python
97.1%
Shell
2.9%