#187 · Primary category: Inference & Local Deploy

distrifuser

acceleration diffusion-models generative-ai generative-model parallelism

[CVPR 2024 Highlight] DistriFusion: Distributed Parallel Inference for High-Resolution Diffusion Models

Project last updated:12/02/24

GitHub Stars

728

Forks

34

Contributors

1

License

MIT

Why we included this project

DistriFusion tackles a specific pain point: high-resolution diffusion models like SDXL are slow on a single GPU, and the usual fix, retraining, is a big lift. Instead it spreads the work across several GPUs by splitting the image into patches, one per device, and reusing activations from the previous denoising step to hide the communication cost. That yields near-linear speedups without a visible quality hit, and the gains grow as resolution climbs. The code mirrors the Hugging Face diffusers API, so you swap in a DistriSDXLPipeline, set a DistriConfig, and launch with torchrun rather than rewriting your generation pipeline. It was a CVPR 2024 highlight, and NVIDIA folding the approach into TensorRT-LLM, with ColossalAI also supporting it, suggests the technique holds up beyond this reference implementation. If you already run multi-GPU PyTorch, this is about the least disruptive way to speed up diffusion inference.

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