mrkeyoor.comAsk

huggingface/diffuserstested 08 Nov 2026commit 84532a0

diffusers review

Use Hugging Face Diffusers when your application needs direct Python control over pipelines, models or schedulers and you can maintain that workflow's dependencies.

  • README install 51 s
  • README snippet failed
0/200passed, run exited non-zero
  • 5388.4 MB on disk
  • 54 dependencies
AI Toolsevaluationupdated 27 Nov 2026
+18stars / 7d

Hugging Face Diffusers is a Python toolbox for diffusion inference and training. It provides complete generation pipelines, interchangeable schedulers and models that developers can combine directly.

Verdict

Use Hugging Face Diffusers when your application needs direct Python control over pipelines, models or schedulers and you can maintain that workflow's dependencies. Choose a visual application when preserving its existing interface and behavior is the immediate goal. Our Diffusers 0.43.0 quickstart ended at a Transformers dependency error; the separate source run stopped at 200 collection/setup errors naming libGL.so.1.

Diffusers infographic: control image generation and training in Python, plus our test result and who it suits
Tested 27 November 2026: the README snippet failed with "with pip: `pip install -U". Before that: 8 Nov: source install 80 s, build 10 s; uv install took 51 s.

We ran it

Lab card: what happened when we ran diffusers
Lab card from our sandbox run
Screenshot of diffusers (huggingface.co/docs/diffusers)
huggingface.co/docs/diffusers
Install✓ · 80s168 packages · 6380 MB
Build✓ · 10s
Tests✗ · 87s0 passed · 0 failed · 200 errors of 200 (pytest)
Known vulns68(pip-audit)
Repo3039 files~1,094,050 lines of source · 55 MB · 35 CI workflows · tests dir

Answers from our run

Does diffusers build from source?

Dependencies installed in 80 seconds (168 packages), and the build succeeded in 10 seconds. We cloned commit 84532a0 into a clean Debian container with 3 CPUs and no project-specific setup.

Do diffusers's tests pass?

No. The project's own test command finished in 87 seconds and reported 0 passed, 0 failed, 200 collection errors (pytest).

Does diffusers have known vulnerabilities in its dependencies?

pip-audit flagged 68 known advisories in the dependency tree at the time of our run.

Who should not use diffusers?

Artists who prefer constructing workflows through a visual graph: ComfyUI provides that interface.

What are the alternatives to diffusers?

ComfyUI, Automatic1111 Stable Diffusion WebUI, Fooocus. Use Hugging Face Diffusers when your application needs direct Python control over pipelines, models or schedulers and you can maintain that workflow's dependencies.

Setup3/5In our 2026-11-27 run it installed as the README says in 51 s, but the README’s “Quickstart” example failed as written with “StableDiffusionPipeline requires `transformers=4.41.2` but a compatib…”.Editor’s note: The package quickstart ended at a dependency error and the source suite stopped during collection; neither completed generation.
Docs3/5The README has an install section (“Installation”) and a usage section (“Quickstart”), but its “Quickstart” example failed as written in our 2026-11-27 run (“StableDiffusionPipeline requires `transformers=4.41.2` but a compatib…”).Editor’s note: The README documents pipelines and components, but the recorded quickstart stopped before completing its generation task.
Community5/5Last push on 2026-11-26, 34,983 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: Named users report implementations and workarounds; there is no measured support-response or adoption study for a numerical judgment.
Maturity3/5Latest release v0.43.0 on 2026-11-12 (pre-1.0), repository created 2022-05-30 and its test suite did not pass in our sandbox (0 of 200 passed).Editor’s note: The source scan found automation, but collection errors prevented test completion and production generation reliability was not measured.

How we score

Discussed on

  1. hnDiffusers: Modular Diffusion model library from HuggingFace47 points
  2. hnStable Diffusion XL Inpainting model released9 points
  3. hnV0.15.0 Beyond Image Generation7 points
  4. hnStable Diffusion Public Release6 points
  5. hnModular Diffusers – Composable Building Blocks for Diffusion Pipelines3 points

Who it’s for

Python developers embedding generation in an application that needs direct component access.
Researchers combining diffusion models and schedulers.
Developers implementing adapter loading, texture controls or image refinement in Python.

Who it’s NOT for

Artists who prefer constructing workflows through a visual graph: ComfyUI provides that interface.
Teams whose immediate requirement is to preserve an existing A1111 workflow unchanged.
Developers choosing solely from a demonstrated successful quickstart: our recorded package attempt ended at a dependency error.

Setup reality

Our November 8 source run installed commit 84532a0 in 80 seconds, recording 168 dependencies and 6380 MB on disk. The build succeeded in 10 seconds. Tests exited 1 after 87 seconds: 0 passed, 0 failed and 200 collection/setup errors. The log repeatedly named libGL.so.1. Pip-audit reported 68 known vulnerabilities.

Our separate November 27 package attempt installed Diffusers 0.43.0 from PyPI in 51.1 seconds. Its six-line README task exited 1 after 21.9 seconds because StableDiffusionPipeline required a compatible transformers>=4.41.2 package. That environment contained 54 packages besides Diffusers and 5388.4 MB of site-packages.

The source sandbox configuration listed 3 CPUs and 8 GB RAM; the package container listed 2 CPUs and 4 GB RAM. Both recorded the image label ghcr.io/astral-sh/uv:python3.12-bookworm. The source checkout and package quickstart were separate tasks.

Hugging Face Diffusers is the Python library at huggingface/diffusers, with complete generation pipelines and individual model and scheduler components. Our Diffusers 0.43.0 quickstart ended at a Transformers dependency error. Choose it when your application needs to control those components directly; retain a visual workflow when maintaining that interface is the main requirement. The useful comparison is between ways of expressing a generation workflow, including the adapter loading, prompt handling and refinement steps it contains.

What people use diffusers for

pdoane reported matching Automatic1111 output on four CivitAI LoRAs after changing alpha handling and adding an overall multiplier in issue #3064. Other developers describe changing convolution padding, training a VAE and combining upscaling with image-to-image refinement. These examples put specific work behind the README's component approach: developers changed how models were loaded or executed rather than only changing a prompt.

Person and task Reported outcome Decision it helps you make
zhuliyi0 fine-tuned a VAE Improved details, with washed-out inference images requiring brightness and contrast adjustments. Whether domain-specific detail warrants a separate training task.
shirayu added a texture toggle Changed layer padding after pipeline loading to select tileability. Whether your application needs controls over model internals.
pdoane loaded CivitAI LoRAs Reported matching Automatic1111 output on four random LoRAs after changing alpha handling. Which adapter behavior a migration needs to preserve.
mimhle combined upscaling and refinement Reported success with Real-ESRGAN and image-to-image refinement, sharing images and code. Which upscaler and second generation stage belong in the workflow.
asomoza tried NF4 FLUX inference Reported getting the proof of concept working. Which quantized loading implementation to examine.

The VAE experiment included both improved details and a visible output problem. zhuliyi0 compared the trained VAE with the default using a model trained on the same dataset, then reported white-washed inference images on both sd15 and the fine-tuned model. Training validation images looked normal, while inference needed brightness and contrast changes. Issue #3726 records that distinction, making the application output a separate part of the reported result rather than treating a completed training run as the whole outcome.

What happened when we ran it

Our November 27 run installed Diffusers 0.43.0, then the README snippet exited 1 after 21.9 seconds. The quickstart used README commit 16eb5cc4fd82, while the package came from PyPI. It ran in a fresh unprivileged container configured with 2 CPUs, 4 GB RAM, no published ports and no secrets. The task was the six-line Python block from Quickstart, run unedited.

We used the package installation route: uv pip install diffusers[torch] completed in 51.1 seconds. Pipeline loading then returned the error that StableDiffusionPipeline required a compatible transformers>=4.41.2 package. The error suggested pip install -U 'transformers>=4.41.2'. That command is the error's proposed dependency step; the recorded task ended at the error rather than continuing through another installation.

November 27 quickstart step Recorded result
Clone Recipe quickstart-lib took 6 seconds.
Package route Diffusers 0.43.0 installed in 51.1 seconds with uv pip install diffusers[torch].
Site-packages footprint 5388.4 MB.
Package count 54 packages besides Diffusers.
README task Six-line Python snippet exited 1 after 21.9 seconds.
Cleanup Teardown succeeded.

Our November 8 source harness used commit 84532a0 in a sandbox configured with 3 CPUs and 8 GB RAM. Both environments recorded the image label ghcr.io/astral-sh/uv:python3.12-bookworm. In the source run, installation succeeded in 80 seconds and the build succeeded in 10 seconds. These results belong to the source checkout, whereas the November 27 figures belong to a PyPI installation and one README task.

November 8 source harness step Result
Install Succeeded in 80 seconds; 168 dependencies recorded, 6380 MB on disk.
Build Succeeded in 10 seconds.
Tests Exit 1 after 87 seconds; 0 passed, 0 failed, 200 collection/setup errors.
Dependency audit pip-audit reported 68 known vulnerabilities.
Checkout scan 3039 files, approximately 1094050 source lines, 55 MB.
Automation scan 35 CI workflow files, a tests directory, no Dockerfile found.

The source test log repeatedly named libGL.so.1 as a shared library that could not be opened. Qwen image editing, editing-plus, image-to-image and inpainting modules appeared in the tail; the import exception named the Stable Diffusion XL pipeline. Pytest printed 5 warnings and 200 errors in 57.91 seconds, while the enclosing test step took 87 seconds. Collection/setup errors describe where execution stopped; they are different from 200 image-generation assertions failing.

Where people get stuck: versions and file formats cross several libraries

Issue #9704 reports an image-to-image failure with Torch 2.5.0+cu124 and a working Diffusers 0.30.3/Torch 2.4.0+cu121 combination. The historical dependency discussion also identifies Transformers' CLIP attention path and discusses disabling cuDNN SDPA. Its practical contribution is the named combination and failing path, which are more precise than describing the event as a general Diffusers failure.

Symptom and source What the discussion reached Detail to retain
cuDNN execution-plan error, #9704 A user reported success with Diffusers 0.30.3 and Torch 2.4.0+cu121; another workaround disabled cuDNN SDPA, with disputed performance cost. Torch version and CUDA build.
CivitAI LoRA KeyError, #3064 Community loaders worked for pdoane and alejobrainz after the original loading failure. Adapter format, alpha values and multiplier.
FLUX from_single_file AttributeError, #9053 The maintainer directed early users to the flux-single-file branch. The branch required by that example.
VAE memory and Windows save errors, #3726 The reporter said following script arguments removed the OOM and Windows path naming explained the save error. Script arguments and platform.

The LoRA thread records an output discrepancy after loading had progressed. pdoane identified a hard-coded alpha value of 0.75, changed the function to use the adapters' alpha elements and added an overall multiplier. The resulting four-adapter comparison matched Automatic1111 according to pdoane; alejobrainz also reported success with several custom LoRAs. The sequence distinguishes reading adapter weights from applying them with the intended strength.

Long Prompt Weighting produced conflicting reports in issue #2431. garyhxfang reported hangs that required restarting the process; Skquark reported months of stable use, with minor modifications, as the default pipeline in Stable Diffusion Deluxe. garyhxfang later suspected GitHub connectivity from China. That regional explanation was the user's diagnosis, while the two accounts describe different application experiences with a community pipeline.

FLUX quantization and single-file loading solve different problems

Maintainer sayakpaul separates FP8 support from single-file support in issue #9053. The checkpoint under discussion contained transformer weights, and the discussion explicitly said other model components still needed loading. Packaging a checkpoint in one file and storing weights at lower precision are separate choices, so a loader decision should name both the file format and the component it contains.

The NF4 discussion in issue #9165 records sayakpaul reporting working serialization and loading, followed by asomoza reporting successful operation. The issue's stated closing purpose was a proof of concept for serialization and loading. That gives a developer a concrete implementation path to study alongside the FLUX packaging discussion, with the transformer, text encoders and decoder accounted for individually rather than reducing the pipeline description to one checkpoint file.

Security review starts with the installed environment

Our November 8 pip-audit result reported 68 known vulnerabilities in the installed environment. The audit count belongs to that source run, whose recorded installation had 168 dependencies and occupied 6380 MB. Keeping the audit attached to the environment makes it useful for dependency maintenance: an application owner can compare the versions they deploy with the environment that produced the finding, instead of treating a repository name as the unit of exposure.

The official training tutorial teaches training a UNet2DModel on a subset of the Smithsonian Butterflies dataset. It also distinguishes local work from uploading checkpoints to the Hub, which requires an account with write permission. Generation, training and publishing weights are separate operations; the README's generation example loads a model and selects CUDA, while the tutorial introduces additional training dependencies and an optional publishing workflow.

Diffusers vs ComfyUI, Automatic1111, Fooocus and Transformers

Diffusers exposes Python components, while ComfyUI provides a reusable visual graph and a local API. The ComfyUI README documents application integration as well as visual workflow construction. That makes workflow representation a useful comparison: collaborators may maintain Python calls or a graph, and either choice can include an application interface. The README's API support directly contradicts a categorical claim that a graphical tool excludes integration.

Choice Why you would pick it Workflow detail
Diffusers Direct access to pipelines, models and schedulers in Python. Your code expresses the generation process.
ComfyUI A visual graph for building and reusing workflows. Its README also documents a local API.
Automatic1111 Stable Diffusion WebUI Existing graphical prompt, image-to-image and Highres Fix controls. Its README lists API support too.
Fooocus Its existing prompt-and-image interface and inpainting workflow. Its README describes an SDXL application.
Transformers Components used inside a diffusion application. Issue #9704 traces attention through its CLIP model.

Automatic1111's README lists prompt attention, image-to-image generation, upscalers and Highres Fix. The migration discussion in issue #3429 gives a more specific picture: alexisrolland reported blurry output from resize-and-refine, while mimhle reported success with Real-ESRGAN plus image-to-image refinement. A migration specification therefore needs the upscaler and refinement stages, alongside the prompt and adapter settings that the existing application uses.

Fooocus's README describes its own inpainting algorithm and models. In issue #6529, participants examined the inpainting patch, an additional head and model switching during sampling; WaterKnight1998 reported difficulty mapping layer keys into Diffusers' expected format. These are concrete implementation differences behind the request to retain Fooocus behavior. Transformers occupies a different role: issue #9704 places it within the Diffusers dependency chain, rather than presenting the two packages as mutually exclusive applications.

Outdated claims, corrected

The archived diffusers_all README's 0.0.4 installation expectation describes historical documentation, not the version installed in our November 27 task. The archived README and nicolas-dufour fork contain older installation expectations of 0.0.4 and 0.2.4 respectively. The official documentation selector includes 0.43.0, and our package task recorded that exact version independently.

The Neural Base's Diffusers vs ComfyUI vs WebUI comparison says direct use_safetensors support was removed from from_pretrained in 0.21.0. The later 0.30.3 reproducer in issue #9704 passes use_safetensors directly, and its reporter identifies a working 0.30.3/Torch 2.4.0 combination. That evidence contradicts the blanket removal claim for the loading API discussed there; it does not require publishing a replacement API recipe.

FAQ

The README uses DiffusionPipeline.from_pretrained to load a checkpoint, moves the pipeline to CUDA and calls it with a text prompt. Those are the concrete operations behind using Hugging Face Diffusers. The questions below cover workflow decisions and implementation requests found in search suggestions, video titles and GitHub discussions, with answers tied to the corresponding documentation or reported outcome.

How do I use Hugging Face Diffusers?

The README quickstart loads a pretrained pipeline and calls it with a prompt after selecting CUDA. It also demonstrates a separate loop using DDPMScheduler and UNet2DModel. The complete pipeline handles the generation sequence in the first example; the second exposes model predictions and scheduler steps individually. Our November 27 attempt followed the six-line pipeline example and ended at the recorded Transformers dependency error.

Should I choose Diffusers or ComfyUI for my workflow?

Diffusers provides models, schedulers and pipelines for Python code; ComfyUI provides a visual graph and local API. Choose the representation your collaborators need to maintain. A graph makes its connected operations visible on a canvas, while the Diffusers README demonstrates those operations through Python calls. ComfyUI's documented API means the choice of visual construction can coexist with integrating the workflow into an application.

How does Diffusers compare with Transformers?

Transformers appears inside the dependency chain discussed in issue #9704, where the failing attention path passes through its CLIP model. Diffusers' README describes its diffusion pipelines, models and interchangeable schedulers. For this workflow decision, the useful distinction is between the generation machinery you call and components it uses, rather than choosing one package on the assumption that the other disappears.

How do Diffusers schedulers and models work together?

The README's manual loop calls the model with the current input and timestep, then passes the prediction into scheduler.step to obtain the next sample. That example sets 50 scheduler timesteps and uses the google/ddpm-cat-256 checkpoint. It shows the component boundary directly: model prediction and the next sampling step are separate calls that application code can arrange inside the generation loop.

How do I set up diffusers-image-outpaint locally?

A Bilibili result names a local-setup video for diffusers-image-outpaint. That title identifies a project and setup topic beyond the basic Diffusers package. The library's README documents installing Diffusers and running its own generation examples; those instructions describe the library route rather than the setup of the separately named outpainting application. The video result belongs to Chinese-language discovery evidence.

Is there an accessible sample script for training or fine-tuning a VAE?

Issue #3726 contains the experimental VAE training discussion, including reported local training and inference results. The official introductory training tutorial instead trains a UNet2DModel on butterfly images. These references address different components: the issue concerns the VAE experiment, while the tutorial teaches its named UNet task. Their scripts and outcomes should retain those identities when choosing a starting point.

How can I generate seamless textures with Diffusers?

shirayu reports toggling tileability by changing layer padding after loading the pipeline in issue #556. The discussion includes circular padding and says the change must cover both the diffusion model and VAE decoder. Memory-saving VAE tiling appears in issue #3429 as a different operation: reducing decoder memory use and matching opposite image edges address separate tasks despite sharing the word tiling.

How do I load CivitAI or A1111 LoRA safetensors into Diffusers?

pdoane reports matching Automatic1111 on four CivitAI LoRAs after changing a community loader to use alpha elements and an overall multiplier in issue #3064. The same thread records an earlier KeyError and an output mismatch before that change. Its supported answer is the reported community loading path and the handling that changed the result, rather than a universal loader recipe for current releases.

Can I unload or switch LoRAs without reloading the pipeline?

Issue #3064 includes a user's question about quickly unloading LoRA weights from a loaded pipeline. Its quoted outcomes concern loading adapters and matching output after alpha handling changed. Those are separate operations from unloading an adapter or switching it repeatedly. The supported implementation result in this discussion is pdoane's four-LoRA loading comparison, followed by alejobrainz's report about several custom adapters.

How do I serialize and load NF4-quantized FLUX weights?

sayakpaul reported working NF4 serialization and loading in issue #9165, and asomoza reported getting the implementation working. The thread's closing purpose was demonstrating that proof of concept. For a developer following the discussion, serialization and loading belong together: the file that is written and the code that restores its quantized representation are the paired operations described by the maintainer's update.

Can FLUX NF4 quantization work with ControlNet?

The NF4 thread includes a question about Flux ControlNet, while its reported completed work concerns NF4 serialization and loading. The positive result therefore answers the base proof-of-concept task. ControlNet is a separately requested combination in that discussion, rather than another name for serializing the same weights. The distinction keeps the maintainer's reported outcome attached to the operation the issue was closed to demonstrate.

Can I use single-file FP8 FLUX weights to reduce local VRAM requirements?

Issue #9053 separates FP8 support from single-file packaging and explains that the checkpoint being discussed contains transformer weights. Other pipeline models still need loading. A configuration description therefore needs to account for those components as well as the transformer file. The historical branch guidance answers the loading example discussed in that thread, while the component distinction explains why one file's representation is only part of the deployment description.

What we have not tested yet

Our quickstart ended before image generation, and our source suite stopped during collection/setup. These runs contain no GPU inference speed, peak GPU memory, image-quality, training-quality or production-reliability measurement. They also contain no controlled comparison with ComfyUI, Automatic1111 or Fooocus, and no tested dependency matrix across Torch, CUDA, cuDNN and Transformers. The recorded container image labels do not establish actual runtime or operating-system versions.

The quickstart was not rerun after adding Transformers, and the source tests were not rerun after addressing libGL.so.1. The audit summary has no package-level advisory explanation or exploitability assessment; its 68 findings are not a count of demonstrated Diffusers defects. The two installation footprints describe different environments, not minimum disk requirements or a measured reduction between releases. No numerical product rating is assigned from those incomplete generation outcomes.

Adapter unloading and repeated switching were not established by this review. The historical discussions also leave VAE validation-memory leakage, washed-out inference and A1111 export unresolved here. They do not establish current seamless-texture coverage across every model, completed Fooocus patch integration, arbitrary NF4 checkpoint support or a completed FLUX NF4/ControlNet result. The NF4 timing extract is incomplete for a controlled comparison, and the outpainting video title supplies no reproducible setup transcript.

Fooocus's README states that the SDXL project is in limited long-term support with bug fixes only and no current plans to incorporate newer model architectures. That boundary belongs in a decision to retain its existing workflow. Our evidence contains no production customer study or measured support-response result, and closed issues do not supply either. For the Python workflow considered here, the next useful result is one completed generation job using the checkpoint, adapters and dependency versions intended for the application.

Alternatives

ProjectWhat it isPick it when
ComfyUI gh↗A visual graph for building and reusing generation workflows, with a local API.Pick it when collaborators need to inspect and change a visual workflow graph.
Automatic1111 Stable Diffusion WebUI gh↗A graphical Stable Diffusion application with prompt controls, image-to-image generation, upscaling and API support.Pick it when retaining an existing WebUI prompt and refinement workflow is the main requirement.
FooocusAn SDXL image-generation application with its own inpainting workflow.Pick it to retain that existing SDXL workflow; its README states limited LTS, bug fixes only and no current plans for newer architectures.

Sources

  1. Diffusers upstream README
  2. Diffusers official training tutorial
  3. LoRA loading discussion
  4. VAE training discussion
  5. ComfyUI upstream README
  6. Automatic1111 upstream README
  7. Fooocus upstream README

More ai tools reviews