diffusers-cli
Skill35k starsChanged 3 months agoApache-2.0View on GitHub
Use when the user wants to run a diffusers pipeline from a terminal (one-off generation, batch jobs, smoke-testing a new model), run on HF Sandbox hardware via `--remote`, introspect a pipeline's input schema before calling it, or attach a LoRA at inference time. Prefer this over writing ad-hoc Python scripts for generation tasks.
- Installs packages
Trending
Quiet since September.about the whole repository
Who's talking about huggingface/diffusers
- A Hacker News story“Diffusers: Modular Diffusion model library from HuggingFace”Hacker News · Jul 21, 2022 · 47 points
- XavierXiao/Dreambooth-Stable-Diffusion“DreamBooth Stable Diffusion training now possible in 10 GB VRAM, and it runs about 2 times faster.”GitHub · Sep 26, 2022 · 42 reactions
- Comfy-Org/ComfyUI“[Feature] Support for SD3 ControlNet”GitHub · Jun 15, 2024 · 28 reactions
- AUTOMATIC1111/stable-diffusion-webui“[Feature Request]: Add newest DPM-Solver++”GitHub · Nov 4, 2022 · 25 reactions
- microsoft/vscode-remote-release“Remote Extension host terminated unexpectedly 3 times within the last 5 minutes.”GitHub · Mar 22, 2025 · 17 reactions
The biggest 5 of 38 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 38
Talked about on GitHub, Hacker News and Bluesky (38 times).
On GitHub · 31
- Sep 26, 2022DreamBooth Stable Diffusion training now possible in 10 GB VRAM, and it runs about 2 times faster. — XavierXiao/Dreambooth-Stable-Diffusion42 reactions · 52 comments
- Jun 15, 2024[Feature] Support for SD3 ControlNet — Comfy-Org/ComfyUI28 reactions · 10 comments
- Nov 4, 2022[Feature Request]: Add newest DPM-Solver++ — AUTOMATIC1111/stable-diffusion-webui25 reactions · 3 comments
- Mar 22, 2025Remote Extension host terminated unexpectedly 3 times within the last 5 minutes. — microsoft/vscode-remote-release17 reactions · 33 comments
- Oct 23, 2022Suggestion: Stable Diffusion Model — ggml-org/ggml13 reactions · 6 comments
26 more on GitHub
- Feb 3, 2026[Feat]: Anima support — Nerogar/OneTrainer12 reactions · 11 comments
- Dec 19, 2025feat: add qwen image layered support — leejet/stable-diffusion.cpp12 reactions · 4 comments
- Sep 9, 2025[RFC] [1.0] 🚀 huggingface_hub 1.0 release checklist — huggingface/huggingface_hub12 reactions · 1 comment
- Sep 28, 2022Support loading models created with diffusers — AUTOMATIC1111/stable-diffusion-webui12 reactions · 6 comments
- Mar 21, 2025🎉Glad to announce SANA-Sprint is available! — NVlabs/Sana10 reactions · 9 comments
- Jan 4, 2026[GLM-Image] AR Model Support for GLM-Image — huggingface/transformers9 reactions · 5 comments
- Dec 21, 2025[WIP] z-image-omni-base support — leejet/stable-diffusion.cpp9 reactions · 2 comments
- Jun 2, 2026feat: Add Anima support — ostris/ai-toolkit7 reactions · 5 comments
- Sep 18, 2026feat: add Qwen Image 2.1 support — leejet/stable-diffusion.cpp6 reactions · 1 comment
- Jan 16, 2026Flux2 Dev+Klein support — Nerogar/OneTrainer6 reactions · 24 comments
- Dec 15, 2025feat: add support for qwen image edit 2511 — leejet/stable-diffusion.cpp6 reactions · 2 comments
- Jun 9, 2026feat(policies): add Cosmos3 drafts — huggingface/lerobot5 reactions
- Dec 31, 2025Increase text length from 256 to 1024 in Qwen-Image — sgl-project/sglang5 reactions · 2 comments
- May 12, 2023[Unity][FX] Add support for PT2.0 scaled_dot_product_attention — apache/tvm5 reactions · 9 comments
- Sep 18, 2026[New model] Qwen-image-2.1 support — vllm-project/vllm-omni4 reactions · 13 comments
- Jun 4, 2024Serialization: support saving torch state dict to disk — huggingface/huggingface_hub4 reactions · 2 comments
- Mar 28, 2024Create pipeline_stable_diffusion_xl_instantid_img2img.py — instantX-research/InstantID4 reactions · 2 comments
- Aug 3, 2026Add MiniMax-H3 BF16 training and inference support — kohya-ss/musubi-tuner3 reactions · 26 comments
- Jan 12, 2026Support Z-image-omni-base — kohya-ss/musubi-tuner3 reactions · 7 comments
- Sep 10, 2024Add `TextToImage`, `StableDiffusion3Backbone` and `StableDiffusion3TextToImage` — keras-team/keras-hub3 reactions · 2 comments
- Apr 25, 2024Added Reward Backpropogation Support — huggingface/trl3 reactions · 12 comments
- Mar 31, 2024Add option to use Scheduled Huber Loss in all training pipelines to improve resilience to data corruption — kohya-ss/sd-scripts3 reactions · 29 comments
- Dec 6, 2023Feature/EulerScheduler — finegrain-ai/refiners3 reactions · 6 comments
- Oct 26, 2023Enable Latent Consistency models OpenVINO export and inference — huggingface/optimum-intel3 reactions · 1 comment
- Aug 19, 2022[Safety Checker] Add Safety Checker Module — CompVis/stable-diffusion3 reactions · 7 comments
- May 20, 2026Bump diffusers from 0.6.0 to 0.38.0 in the pip group across 1 directory — LaloLalo1999/UnstableFusion2 reactions
On Hacker News · 6
- Jul 21, 2022Diffusers: Modular Diffusion model library from HuggingFace47 points · 5 comments
- Apr 12, 2023V0.15.0 Beyond Image Generation7 points · 1 comment
- Aug 22, 2022Stable Diffusion Public Release6 points · 2 comments
- Aug 16, 2022HuggingFace Diffusers 0.2 with Stable Diffusion pipeline2 points · 1 comment
- Dec 7, 2023StableDiffusionSafetyChecker1 point
1 more on Hacker News
- Nov 3, 2022Diffusers 0.7.0: Stable Diffusion up to 2x faster on any hardware (including M1)says it tested it1 point · 1 comment
On Bluesky · 1
- Oct 25, 2024📦 huggingface / diffusers ⭐ 25,737 (+39) 🗒 Python 🤗 Diffusers: State-of-the-art diffusion models for image and audio generation in… — @github-trending.bsky.social7 likes and reposts
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .ai/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- custom-blocksSkill
- model-integrationSkill
- self-reviewSkill
The file
Files
Overview
diffusers-cli is the shipped CLI in src/diffusers/commands/. Subcommands relevant to agentic use:
| Command | Purpose |
run | Run any DiffusionPipeline or ModularPipeline. Forwards --pipeline-kwargs verbatim, saves output by detecting its runtime type, optionally runs on HF Jobs via --remote. |
schema | Print the input schema for a pipeline repo (kwarg names, types, defaults, descriptions). No weights downloaded — only the small index file. |
custom_blocks | Package a local ModularPipelineBlocks subclass for the Hub. |
env | Print versions of diffusers + torch + transformers + accelerate + safetensors + CUDA + GPU info. Use when investigating environment issues, dtype/precision support, or building bug reports. |
When to read which file
Most agentic work goes through run. Read the matching reference file before constructing a command:
run.md— full reference fordiffusers-cli run. Covers--pipeline-kwargssemantics and the shell-quoting gotcha, LoRA via--lora, optimization flags (--dtype,--cpu-offload,--attention-backend,--vae-tiling/slicing), output handling and--push-tobucket uploads, the full--remoteHF Jobs flow (image, container command, log streaming, timing payload, artifact download), and context parallel (--context-parallel) for both local-torchrun and--remotepaths.
The other commands are small enough that diffusers-cli <command> --help is the canonical reference:
diffusers-cli schema --help
diffusers-cli custom_blocks --help
diffusers-cli env --helpWhen NOT to use this skill
- Multi-stage workflows where you need intermediate tensor manipulation between pipelines → write Python.
- Training or fine-tuning → CLI only covers inference.
- Anything requiring
quantization_configor other low-level loader knobs not exposed by the CLI flags → write Python. (device_mapis exposed as--device-map; see run.md.)
Verifying the CLI is installed
The console entry point is registered in pyproject.toml (diffusers-cli =
"diffusers.commands.diffusers_cli:main"). If diffusers-cli is not on PATH after pip install -e ., reinstall
with pip install -e . --force-reinstall --no-deps and check which diffusers-cli. If the installed binary is
missing recent features (e.g. you see unrecognized arguments: --lora), reinstall.
Output formats
--format {auto, human, agent, json} (top-level flag, must appear before the subcommand):
human— plain-text indented output for terminals (default when not running under an agent harness). No ANSI color.agent— TSV tables andkey=valuelines. Auto-selected when an agent env var is present (CLAUDECODE,CLAUDE_CODE,CODEX_SANDBOX,CURSOR_AI,AIDER_AI_CONTEXT,GH_COPILOT_AGENT,AI_AGENT). Token-cheap for LLM agents to read.json— compact JSON. Use for programmatic parsing (scripts, services) where type fidelity and nested structures matter.
stdout carries data; stderr carries hints/warnings/progress — parseable output is never polluted.
Rule of thumb: --format json for scripts that will json.loads() the output, otherwise leave it on
auto-detect (agent for LLMs, human for terminals).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

