Hugging Face Diffusers: a PyTorch library for generating images, audio and molecule structures
Diffusers is a Hugging Face library of pretrained diffusion models[1] for generating images, audio and 3D structures of molecules. It is a modular toolbox that supports both simple inference[2] and training your own diffusion models. The library focuses on usability over performance, simple over easy, and customizability over abstractions.
It has three core components: diffusion pipelines that run in inference with a few lines of code, interchangeable noise schedulers[3] for different diffusion speeds and output quality, and pretrained models that can be combined with schedulers into end-to-end diffusion systems. Models are loaded with the from_pretrained method, and the Hub offers more than 30,000 checkpoints. The README shows a short text-to-image example with the stable-diffusion-v1-5 checkpoint and a lower-level example with DDPMScheduler and UNet2DModel.
The library can be installed with pip install --upgrade diffusers[torch] from PyPI[4], or with conda from conda-forge, which is maintained by the community. The project also links to a contribution guide and lists good first issues. It asks AI agents to read the project conventions in .ai/ first.
Repository Diffusers github.com
Hugging Face's open source PyTorch library of pretrained diffusion models for generating images, audio and molecule structures, with training support.
Sources
-
github.com
GitHub - huggingface/diffusers: 🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.


