Diffusers
AI & LLMs🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.
Release History
v0.36.06 fixes13 featuresThis release introduces several major image and video pipelines (Flux2, Hunyuan 1.5, Sana-Video), high-performance attention backends via the 'kernels' library, and the TaylorSeer caching method for significant speed improvements.
v0.35.23 fixes1 featureThis patch release focuses on bug fixes for model initialization, device placement for Wan and LTX models, and ensuring compatibility with PyTorch 2.3.1.
v0.35.11 featureThis release introduces improvements to the Qwen-Image Edit model within the diffusers library.
v0.35.06 fixes12 featuresThis release introduces major new pipelines (Wan 2.2, Flux-Kontext, Qwen-Image), significant performance optimizations via regional compilation and GGUF CUDA kernels, and an experimental modular pipeline system.
v0.34.01 fix10 featuresThis release introduces several major video and image generation pipelines including Wan VACE, Cosmos Predict2, and Chroma, while significantly improving torch.compile performance and memory optimization techniques.
v0.33.11 fixThis release provides a bug fix for the Wan pipeline to correctly handle ftfy imports.
v0.33.010 featuresThis release introduces several major video and image generation pipelines including Wan2.1, LTX Video 0.9.5, and Lumina2, alongside significant memory optimization features like Layerwise Casting and Group Offloading.
v0.32.25 fixes4 featuresThis patch release fixes regressions in Flux single-file and LoRA loading (including 4-bit support) and resolves several bugs in HunyuanVideo related to batch processing and LoRA compatibility.
Common Errors
CalledProcessError5 reportsCalledProcessError in diffusers often arises from external commands (like `accelerate launch`) failing due to missing dependencies or incorrect environment setup. Ensure all required packages specified in `requirements.txt` or the script itself are installed using `pip install -r requirements.txt`, and that your environment (e.g., CUDA, system libraries) is correctly configured for the executed command. Double-check that any specified paths or commands executed within the training script are valid and accessible within the environment.
NotImplementedError4 reportsThe "NotImplementedError" often arises when attempting to load specific model types or configurations (like meta tensors) with a method that lacks the necessary implementation. To resolve this, either use the correct loading function tailored for the specific model format (e.g., safetensors), ensure all required dependencies are installed, or explicitly move the model to the target device after loading. If loading GGUF, verify that the loading script is specifically designed to handle that format.
ModuleNotFoundError3 reportsThis error usually arises from missing dependencies or an incomplete installation of the diffusers library. Ensure that all required packages, especially transformers and accelerate, are installed using `pip install diffusers transformers accelerate`. If the error persists, try reinstalling diffusers in a fresh environment or after upgrading pip with `pip install --upgrade pip`.
OutOfMemoryError3 reportsOutOfMemoryError in diffusers primarily results from exceeding GPU memory capacity during large image generation or complex model operations. Fix this by reducing batch size, image resolution, or using techniques like memory-efficient attention (xFormers) and model offloading. Employ torch.cuda.empty_cache() periodically to clear unused memory and consider gradient checkpointing to reduce memory footprint.
TypeInferenceError1 reportTypeInferenceError in diffusers ONNX conversion usually arises due to dynamic shapes not being fully defined during tracing. Fix this by explicitly specifying static input shapes (e.g., using `static_shapes=True` where available or manual shape definition in `torch.onnx.export`) to allow proper type inference during ONNX export; alternatively, set dynamic axes within the `dynamic_axes` parameter of `torch.onnx.export` to guide shape inference.
EntryNotFoundError1 reportThe "EntryNotFoundError" in diffusers usually means a required file specified in the model's configuration (like "scheduler", "tokenizer", etc.) is missing from the downloaded checkpoint. To fix this, ensure you have downloaded the complete model and its associated files from the Hugging Face Hub, and that all files are located in the correct subdirectory within the downloaded model directory. Consider redownloading the model using `diffusers.utils.hub_utils.init_git_repo_and_clone_from_hf_hub` or specifying `local_files_only=False` when loading the pipeline if you suspect a partial download.
Related AI & LLMs Packages
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Get up and running with OpenAI gpt-oss, DeepSeek-R1, Gemma 3 and other models.
🦜🔗 The platform for reliable agents.
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
LLM inference in C/C++
GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
Subscribe to Updates
Get notified when new versions are released