Diffusers

Hugging Face's PyTorch library of pipelines, schedulers and training scripts for image, video and audio diffusion.

Open SourceSelf HostedOffline CapableGPU Required (8GB+ VRAM)
0.0 (0)

About

Hugging Face maintains this Python package as the common toolkit for running and training diffusion models in PyTorch. It is organized around three swappable parts: pipelines that wrap a full generation workflow, noise schedulers that trade speed against quality, and model classes such as UNets, diffusion transformers and VAEs that recombine into custom systems. Supported families include Stable Diffusion 1.5, SDXL and SD3, Flux, Qwen-Image, plus video models like Wan, LTX and CogVideoX, and audio work such as ACE-Step. Beyond inference it loads LoRA, IP-Adapter and ControlNet weights, offers quantization through bitsandbytes, GGUF, torchao and quanto, supports CPU offloading and torch.compile, and ships example scripts for DreamBooth, LoRA, textual inversion and ControlNet training. Install with pip install diffusers[torch]; an NVIDIA GPU is the practical target, with guides for Apple MPS, Intel Gaudi and AWS Neuron. Releases arrive often, with v0.41.0 out in October 2026. The library is Apache 2.0, though each checkpoint you load keeps its own license. Aimed at developers who generate media from code rather than a GUI.

Should you use Diffusers?

Pick it when

Pick Diffusers when you are writing Python that generates images inside your own app, service, or research code and want one API across SD, SDXL, Flux, and newer models, with swappable schedulers and components.

Look elsewhere when

Skip it if you want to generate images without writing code: ComfyUI, Invoke, or Forge put a UI over the same models. For live, frame-by-frame generation, plain pipelines are too slow and StreamDiffusion is built for that.

Alternatives to Diffusers

  • ComfyUI

    Similar model coverage in a visual node graph with savable JSON workflows, faster for iterating on pipelines but less natural to embed in a Python codebase.

  • Invoke AI

    A full creative app with canvas and model manager; choose it over a library when artists, not developers, will drive generation.

  • StreamDiffusion

    Real-time pipeline layer reaching over 100 fps with SD-Turbo on an RTX 4090, for live interactive use where standard pipelines are too slow, but harder to set up.

  • MFLUX

    Native MLX route for FLUX, Qwen-Image, and Z-Image on Apple Silicon with a one-line CLI install, narrower in scope than a general Python library.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Intermediate (3/5)
License
Apache-2.0
Minimum VRAM
8 GB
Added
Jan 29, 2026

Tags