diffusers-workflow 0.17.0__py3-none-any.whl → 0.19.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- diffusers_workflow-0.19.0.dist-info/METADATA +319 -0
- {diffusers_workflow-0.17.0.dist-info → diffusers_workflow-0.19.0.dist-info}/RECORD +95 -87
- dw/arguments.py +1 -0
- dw/audio_qc.py +17 -1
- dw/docs/ACCELERATION.md +122 -156
- dw/docs/AGENT_LOOP.md +96 -78
- dw/docs/ARCHITECTURE.md +8 -8
- dw/docs/ATTRIBUTIONS.md +26 -2
- dw/docs/DEPENDENCIES.md +36 -30
- dw/docs/DOCKER.md +146 -0
- dw/docs/IP_ADAPTER.md +13 -27
- dw/docs/LORAS.md +23 -19
- dw/docs/MCP.md +290 -405
- dw/docs/PROMPT_WEIGHTING.md +8 -23
- dw/docs/QUANTIZATION.md +35 -38
- dw/docs/RECIPES_24GB.md +32 -36
- dw/docs/RELEASING.md +237 -95
- dw/docs/REMOTE.md +71 -78
- dw/docs/SECURITY.md +339 -319
- dw/docs/SECURITY_QUICKREF.md +77 -41
- dw/docs/SERVER.md +432 -362
- dw/docs/TASKS.md +1037 -1051
- dw/docs/TESTING.md +45 -12
- dw/docs/WORKER_GUIDE.md +50 -41
- dw/docs/WORKFLOW_GUIDE.md +780 -1399
- dw/docs/WORKSPACES.md +60 -83
- dw/guides.py +131 -7
- dw/introspection.py +2 -0
- dw/locations.py +10 -1
- dw/media.py +39 -1
- dw/media_compare.py +110 -10
- dw/output_extraction.py +28 -0
- dw/pipeline_processors/chain.py +63 -203
- dw/pipeline_processors/chain_spill.py +215 -0
- dw/pipeline_processors/components.py +101 -39
- dw/pipeline_processors/h3_anchor.py +139 -0
- dw/pipeline_processors/h3_anchor_stats.py +46 -0
- dw/pipeline_processors/h3_anchor_steps.py +101 -0
- dw/pipeline_processors/h3_guide_steps.py +62 -11
- dw/pipeline_processors/h3_rules.py +102 -3
- dw/pipeline_processors/pipeline.py +7 -194
- dw/pipeline_processors/pipeline_h3.py +292 -0
- dw/pipeline_processors/progress.py +18 -3
- dw/plan.py +1 -0
- dw/plan_downloads.py +40 -2
- dw/result.py +7 -2
- dw/server/api_models.py +4 -0
- dw/server/assess.py +7 -3
- dw/server/guides.py +34 -18
- dw/server/routes/jobs.py +37 -23
- dw/server/routes/media.py +86 -48
- dw/server/ui/assets/{cssMode-BvFOC5nO.js → cssMode-D8Hfv6Yf.js} +1 -1
- dw/server/ui/assets/{editor.api-ChcCMXXR.js → editor.api-Cw9AjHan.js} +1 -1
- dw/server/ui/assets/{freemarker2-DT2q5NS2.js → freemarker2-ClNkL6G6.js} +1 -1
- dw/server/ui/assets/{handlebars-kaJu_3a1.js → handlebars-c2OSFqSg.js} +1 -1
- dw/server/ui/assets/{html-BsNsYnSX.js → html-BC1m7TzT.js} +1 -1
- dw/server/ui/assets/{htmlMode-BcQxv5VO.js → htmlMode-DCw1Hrl0.js} +1 -1
- dw/server/ui/assets/index-BK7x2KPW.css +1 -0
- dw/server/ui/assets/index-v21_BHFC.js +61 -0
- dw/server/ui/assets/{javascript-CEdXynRF.js → javascript-iJvixZbP.js} +1 -1
- dw/server/ui/assets/{jsonMode-hbOYEMCP.js → jsonMode-BLumFlzb.js} +1 -1
- dw/server/ui/assets/{liquid-JLSoiOSA.js → liquid-DoyHxFea.js} +1 -1
- dw/server/ui/assets/{lspLanguageFeatures-BOyNtxH5.js → lspLanguageFeatures-Dj-hApsG.js} +1 -1
- dw/server/ui/assets/{mdx-sDDXTu9v.js → mdx-CdLT3soj.js} +1 -1
- dw/server/ui/assets/{monaco-1MuWdUz9.js → monaco-D5d18WKE.js} +4 -4
- dw/server/ui/assets/{python-FwMP_5s9.js → python-CQinAIQD.js} +1 -1
- dw/server/ui/assets/{razor-CHr8DUwq.js → razor-zIDjWUyJ.js} +1 -1
- dw/server/ui/assets/{tsMode-DMRBdzCs.js → tsMode-Ck0qjeUP.js} +1 -1
- dw/server/ui/assets/{typescript-DX26K2Zt.js → typescript-xZbJO0qx.js} +1 -1
- dw/server/ui/assets/{workers-C00WfVNJ.js → workers-vTelFsPt.js} +1 -1
- dw/server/ui/assets/{xml-5-4XmnnO.js → xml-BJQ-lDBI.js} +1 -1
- dw/server/ui/assets/{yaml-DjHDC-oK.js → yaml-15EcBrR5.js} +1 -1
- dw/server/ui/index.html +2 -2
- dw/server/updater.py +5 -2
- dw/task_problems.py +136 -1
- dw/tasks/assess.py +10 -4
- dw/tasks/face_drift.py +328 -0
- dw/tasks/face_track.py +12 -3
- dw/tasks/gather.py +16 -2
- dw/tasks/image_utils.py +4 -3
- dw/tasks/mmaudio_decoder.py +8 -1
- dw/tasks/script_findings.py +29 -1
- dw/tasks/video_handlers.py +78 -0
- dw/tasks/video_utils.py +119 -1
- dw/texture_bands.py +120 -0
- dw/validation.py +24 -1
- dw/workflow_schema.json +14 -1
- dw/writers.py +10 -7
- dw_mcp/media.py +58 -3
- dw_mcp/tools_catalog.py +4 -0
- dw_mcp/tools_media.py +6 -1
- diffusers_workflow-0.17.0.dist-info/METADATA +0 -332
- dw/server/ui/assets/index-Bm_jBlG4.css +0 -1
- dw/server/ui/assets/index-CN0qvKxj.js +0 -65
- {diffusers_workflow-0.17.0.dist-info → diffusers_workflow-0.19.0.dist-info}/WHEEL +0 -0
- {diffusers_workflow-0.17.0.dist-info → diffusers_workflow-0.19.0.dist-info}/entry_points.txt +0 -0
- {diffusers_workflow-0.17.0.dist-info → diffusers_workflow-0.19.0.dist-info}/licenses/LICENSE +0 -0
- {diffusers_workflow-0.17.0.dist-info → diffusers_workflow-0.19.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: diffusers-workflow
|
|
3
|
+
Version: 0.19.0
|
|
4
|
+
Summary: Declarative workflow engine and web UI for Hugging Face Diffusers
|
|
5
|
+
Author: dkackman
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/dkackman/diffusers-workflow
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Requires-Python: >=3.12
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: torch>=2.14.1
|
|
18
|
+
Requires-Dist: torchvision>=0.29.1
|
|
19
|
+
Requires-Dist: diffusers>=0.42.0
|
|
20
|
+
Requires-Dist: transformers>=5.19.0
|
|
21
|
+
Requires-Dist: accelerate>=1.15.0
|
|
22
|
+
Requires-Dist: peft>=0.21.2
|
|
23
|
+
Requires-Dist: safetensors>=0.8.0
|
|
24
|
+
Requires-Dist: huggingface-hub>=1.33.0
|
|
25
|
+
Requires-Dist: sentencepiece>=0.2.2
|
|
26
|
+
Requires-Dist: protobuf>=7.36.2
|
|
27
|
+
Requires-Dist: ftfy>=6.3.1
|
|
28
|
+
Requires-Dist: torchsde>=0.2.6
|
|
29
|
+
Requires-Dist: torchao>=0.18.0
|
|
30
|
+
Requires-Dist: optimum-quanto>=0.2.7
|
|
31
|
+
Requires-Dist: sdnq>=0.2.8
|
|
32
|
+
Requires-Dist: gguf>=0.19.0
|
|
33
|
+
Requires-Dist: bitsandbytes>=0.50.2; sys_platform == "linux"
|
|
34
|
+
Requires-Dist: controlnet-aux>=0.0.10
|
|
35
|
+
Requires-Dist: opencv-python-headless>=5.0.0.93
|
|
36
|
+
Requires-Dist: kornia>=0.8.3
|
|
37
|
+
Requires-Dist: kernels>=0.17.2
|
|
38
|
+
Requires-Dist: comfy-kitchen<0.3,>=0.2.38
|
|
39
|
+
Requires-Dist: spandrel>=0.4.2
|
|
40
|
+
Requires-Dist: facexlib>=0.3.0
|
|
41
|
+
Requires-Dist: numpy>=2.5.4
|
|
42
|
+
Requires-Dist: Pillow>=12.3.0
|
|
43
|
+
Requires-Dist: piexif>=1.1.3
|
|
44
|
+
Requires-Dist: imageio>=2.38.1
|
|
45
|
+
Requires-Dist: imageio-ffmpeg>=0.6.0
|
|
46
|
+
Requires-Dist: av>=19.0.1
|
|
47
|
+
Requires-Dist: soundfile>=0.14.0
|
|
48
|
+
Requires-Dist: matplotlib>=3.11.2
|
|
49
|
+
Requires-Dist: pyloudnorm>=0.2.0
|
|
50
|
+
Requires-Dist: scipy>=1.18.1
|
|
51
|
+
Requires-Dist: speechbrain>=1.1.1
|
|
52
|
+
Requires-Dist: demucs>=4.1.0
|
|
53
|
+
Requires-Dist: qrcode>=8.2
|
|
54
|
+
Requires-Dist: requests>=2.34.2
|
|
55
|
+
Requires-Dist: aiohttp>=3.14.5
|
|
56
|
+
Requires-Dist: beautifulsoup4>=4.15.0
|
|
57
|
+
Requires-Dist: jsonschema>=4.26.0
|
|
58
|
+
Requires-Dist: concurrent-log-handler>=0.9.30
|
|
59
|
+
Requires-Dist: python-dotenv>=1.2.4
|
|
60
|
+
Requires-Dist: packaging>=26.3
|
|
61
|
+
Requires-Dist: filelock>=4.1.1
|
|
62
|
+
Requires-Dist: httpx>=0.28.1
|
|
63
|
+
Provides-Extra: server
|
|
64
|
+
Requires-Dist: fastapi>=0.143.0; extra == "server"
|
|
65
|
+
Requires-Dist: uvicorn[standard]>=0.54.0; extra == "server"
|
|
66
|
+
Provides-Extra: mcp
|
|
67
|
+
Requires-Dist: mcp>=2.3.0; extra == "mcp"
|
|
68
|
+
Provides-Extra: dev
|
|
69
|
+
Requires-Dist: pytest>=9.1.1; extra == "dev"
|
|
70
|
+
Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
|
|
71
|
+
Requires-Dist: pytest-xdist>=3.8.0; extra == "dev"
|
|
72
|
+
Requires-Dist: pytest-timeout>=2.4.0; extra == "dev"
|
|
73
|
+
Requires-Dist: pytest-mock>=3.16.0; extra == "dev"
|
|
74
|
+
Requires-Dist: pytest-asyncio>=1.4.0; extra == "dev"
|
|
75
|
+
Requires-Dist: httpx>=0.28.1; extra == "dev"
|
|
76
|
+
Requires-Dist: ruff>=0.17.0; extra == "dev"
|
|
77
|
+
Requires-Dist: build; extra == "dev"
|
|
78
|
+
Requires-Dist: mcp>=2.3.0; extra == "dev"
|
|
79
|
+
Requires-Dist: pylint>=4.1.3; extra == "dev"
|
|
80
|
+
Requires-Dist: import-linter>=2.15; extra == "dev"
|
|
81
|
+
Requires-Dist: networkx>=3.7; extra == "dev"
|
|
82
|
+
Requires-Dist: pygount>=3.2; extra == "dev"
|
|
83
|
+
Dynamic: license-file
|
|
84
|
+
|
|
85
|
+
[](https://github.com/dkackman/diffusers-workflow/actions/workflows/github-code-scanning/codeql)
|
|
86
|
+
|
|
87
|
+
# diffusers-workflow
|
|
88
|
+
|
|
89
|
+
Your GPU, as something an agent can drive.
|
|
90
|
+
|
|
91
|
+
diffusers-workflow runs [Hugging Face Diffusers](https://github.com/huggingface/diffusers)
|
|
92
|
+
image, video and audio generation as jobs on your own GPU. **An agent does the work.**
|
|
93
|
+
Claude Code, or any MCP client, picks or writes the workflow, checks what it will
|
|
94
|
+
cost, runs it, and looks at what came back. **You steer from the browser.** Every
|
|
95
|
+
workflow, run and output the agent made is in the web UI, where you can change a
|
|
96
|
+
variable, run it again, compare takes and keep the one you like.
|
|
97
|
+
|
|
98
|
+
**Python 3.12-3.14 | CUDA (NVIDIA) | MPS (Apple Silicon) | CPU**
|
|
99
|
+
|
|
100
|
+
<picture>
|
|
101
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/img/ui-overview-dark.jpg">
|
|
102
|
+
<img alt="A workspace's overview in the web UI: recent outputs from an agent-made musical trailer, its jobs, and the workflows the agent wrote" src="docs/img/ui-overview.jpg">
|
|
103
|
+
</picture>
|
|
104
|
+
|
|
105
|
+
## Getting started
|
|
106
|
+
|
|
107
|
+
**1. Install.** The script picks the right torch build for your platform, creates a
|
|
108
|
+
virtual environment and installs everything, MCP server included.
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
bash ./install.sh && source ./activate # Linux / macOS
|
|
112
|
+
.\install.ps1; .\venv\scripts\activate # Windows
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**2. Start the engine.** Leave it running; the agent and the browser both talk to it.
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
dw-serve # web UI on http://127.0.0.1:8765
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**3. Connect your agent.** Register the MCP server with the absolute path to `dw-mcp`
|
|
122
|
+
in the venv you just made (a relative path is the setup detail that most often goes
|
|
123
|
+
wrong). Then add the [dw plugin](plugins/dw/README.md):
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
claude mcp add dw -- "$(pwd)/venv/bin/dw-mcp"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
/plugin marketplace add dkackman/diffusers-workflow
|
|
131
|
+
/plugin install dw@diffusers-workflow
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Most of the shipped models (Flux, LTX, MiniMax, ...) are **gated**. Request access on
|
|
135
|
+
the model's Hugging Face page and run `hf auth login` once. Without it a run fails
|
|
136
|
+
partway through with a 401/403 from the Hub. `templates/text-to-image` uses a small,
|
|
137
|
+
ungated model, so it makes a good first run.
|
|
138
|
+
|
|
139
|
+
<details>
|
|
140
|
+
<summary><b>GPU on another machine, or in Docker?</b></summary>
|
|
141
|
+
|
|
142
|
+
Start the engine on the GPU box with `--mcp` and connect over HTTP. There is nothing
|
|
143
|
+
to install on the laptop:
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# on the GPU box
|
|
147
|
+
dw-serve --host 0.0.0.0 --token "$DW_API_TOKEN" --mcp --workspace ~/studio
|
|
148
|
+
|
|
149
|
+
# on your laptop
|
|
150
|
+
claude mcp add --transport http dw http://gpu-box:8765/mcp \
|
|
151
|
+
--header "Authorization: Bearer $DW_API_TOKEN"
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
The server's **Status** page writes that line for you. The whole setup is in
|
|
155
|
+
[Remote GPU server](docs/REMOTE.md).
|
|
156
|
+
|
|
157
|
+
On Linux with an NVIDIA GPU, the
|
|
158
|
+
[`dkackman/diffusers-workflow`](https://hub.docker.com/r/dkackman/diffusers-workflow)
|
|
159
|
+
image runs the server with torch, the engine and the web UI built in. It shares the
|
|
160
|
+
model cache and workspace with a native install on the same box. See
|
|
161
|
+
[Docker](docs/DOCKER.md).
|
|
162
|
+
|
|
163
|
+
</details>
|
|
164
|
+
|
|
165
|
+
## Ask the agent
|
|
166
|
+
|
|
167
|
+
Describe what you want. The agent has 65 tools covering the workflow catalog, the
|
|
168
|
+
real diffusers pipeline signatures, the job queue, the gallery and the model cache,
|
|
169
|
+
and it stays with a long render until it finishes:
|
|
170
|
+
|
|
171
|
+

|
|
172
|
+
|
|
173
|
+
A session sounds like this:
|
|
174
|
+
|
|
175
|
+
- **"Make a 30-second musical trailer: four men in boater hats, a giant eye, a
|
|
176
|
+
score under it."** The agent picks a shape from the catalog (`list_workflows`),
|
|
177
|
+
breaks the brief into shots, writes each prompt to the prompt library, and builds
|
|
178
|
+
the workflow that renders the shots and cuts them to the score.
|
|
179
|
+
- **"What will that cost?"** `validate_workflow` checks the JSON against the schema
|
|
180
|
+
*and* the real pipeline signatures, with no model loads, and quotes an estimate in
|
|
181
|
+
GPU minutes from this box's own history. Anything that spends GPU time or disk
|
|
182
|
+
refuses to run until the agent passes `acknowledged_cost`, so it has to tell you
|
|
183
|
+
what it is about to spend first.
|
|
184
|
+
- **"How's it going?"** `wait_for_job` waits out a render without polling. Then
|
|
185
|
+
`get_output_frames`, `get_output_image` and `get_output_audio` bring the result
|
|
186
|
+
back into the conversation, so the agent judges what it made against what you
|
|
187
|
+
asked for.
|
|
188
|
+
- **"Shot three is the one. Keep it and start the next scene from it."**
|
|
189
|
+
`keep_output` turns the file into a named asset, and the next workflow references
|
|
190
|
+
it as `asset:hero-frame.png`.
|
|
191
|
+
|
|
192
|
+
The [dw plugin](plugins/dw/README.md) adds what a general-purpose agent can't know
|
|
193
|
+
on its own: one skill per model family (MiniMax H3 and Music 3, LTX-2.5, Kandinsky 6,
|
|
194
|
+
FLUX 3 Klein) that picks the template for a request and states the rules that bite.
|
|
195
|
+
Cross-cutting skills cover script-to-video, series with a consistent cast,
|
|
196
|
+
storyboards and animatics, and a shared camera-and-look vocabulary.
|
|
197
|
+
|
|
198
|
+

|
|
199
|
+
|
|
200
|
+
One server holds several **workspaces**, each with its own workflows, assets and
|
|
201
|
+
outputs. Two agents, or an agent and you in the browser, can share one GPU without
|
|
202
|
+
saving over each other's work.
|
|
203
|
+
|
|
204
|
+
The tool reference, setup for other MCP hosts and the troubleshooting table are in
|
|
205
|
+
[MCP Server](docs/MCP.md).
|
|
206
|
+
|
|
207
|
+
## Then tweak it in the browser
|
|
208
|
+
|
|
209
|
+
The web UI shows everything the agent made and lets you take over at any point. It
|
|
210
|
+
runs on the same persistent GPU worker, so models stay loaded between runs.
|
|
211
|
+
|
|
212
|
+
**A workflow the agent wrote is a form you can edit.** The workflow's description,
|
|
213
|
+
recent outputs and variables are on one page. Change a prompt, a frame count or a
|
|
214
|
+
LoRA scale and press **Run**.
|
|
215
|
+
|
|
216
|
+

|
|
217
|
+
|
|
218
|
+
**Every job is a recipe.** A job keeps the exact workflow it ran and draws it as a
|
|
219
|
+
graph of how data flows between steps. Click a step to see what it produced. The
|
|
220
|
+
run's warnings sit above the graph, so a problem the agent missed, such as an
|
|
221
|
+
audible level jump at a cut, is in front of you with the argument that fixes it.
|
|
222
|
+
**Run again** repeats the job, and **New seed** gives you another take. Progress
|
|
223
|
+
streams live for each denoising step, and a cancel stops the job cleanly at the
|
|
224
|
+
next step.
|
|
225
|
+
|
|
226
|
+

|
|
227
|
+
|
|
228
|
+
**The gallery** groups outputs by the workflow that made them, with final and
|
|
229
|
+
intermediate files kept apart. Any image reopens as the workflow that produced it.
|
|
230
|
+
*Keep as asset* adds a file to the asset library for later workflows to use.
|
|
231
|
+
|
|
232
|
+
<picture>
|
|
233
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/img/ui-gallery-dark.jpg">
|
|
234
|
+
<img alt="The gallery: a poster workflow's four takes and the frames grabbed from the trailer's shots" src="docs/img/ui-gallery.jpg">
|
|
235
|
+
</picture>
|
|
236
|
+
|
|
237
|
+
**The editor works on the agent's JSON.** You can view the workflow as a form, as
|
|
238
|
+
JSON, side by side, or as a flow graph. The forms and autocomplete come from the
|
|
239
|
+
real diffusers pipeline signatures, so every argument a pipeline takes is there with
|
|
240
|
+
its documentation. **Validate** catches schema errors and argument typos before any
|
|
241
|
+
model loads.
|
|
242
|
+
|
|
243
|
+

|
|
244
|
+
|
|
245
|
+
There is also a **prompt library**, with an *Enhance with AI* panel that expands an
|
|
246
|
+
idea into a full prompt using a local language model. The **model manager** shows
|
|
247
|
+
the Hugging Face cache (size, last use, free disk) and downloads or deletes models
|
|
248
|
+
with live progress.
|
|
249
|
+
|
|
250
|
+

|
|
251
|
+
|
|
252
|
+
The pages are described in [Server & Web UI](docs/SERVER.md). The UI and the agent
|
|
253
|
+
both use the server's HTTP API, which you can browse at `/docs` on a running server
|
|
254
|
+
(see [The HTTP API](docs/SERVER.md#the-http-api)).
|
|
255
|
+
|
|
256
|
+
## Underneath
|
|
257
|
+
|
|
258
|
+
Every front end reads and writes the same thing: a JSON workflow of named steps,
|
|
259
|
+
each a diffusers pipeline or a utility task. Its arguments are references to
|
|
260
|
+
variables, earlier steps' results, stored prompts and assets, not hard-coded
|
|
261
|
+
values. That is how text-to-image chains into image-to-video, and how a generated
|
|
262
|
+
image reopens as the recipe that made it. You rarely need to write one by hand. When
|
|
263
|
+
you do, the [Workflow Guide](docs/WORKFLOW_GUIDE.md) is the reference, the
|
|
264
|
+
[JSON Schema](dw/workflow_schema.json) is the exact structure, and
|
|
265
|
+
[workflows/](workflows/) has runnable examples for each model family. There is also
|
|
266
|
+
a command-line client, `python -m dw.run workflow.json prompt="a cat"`, which queues
|
|
267
|
+
a job on a running server (see [Server & Web UI](docs/SERVER.md#the-command-line)).
|
|
268
|
+
|
|
269
|
+
The engine also covers:
|
|
270
|
+
|
|
271
|
+
- **Quantization:** BitsAndBytes, TorchAO, GGUF, SDNQ and optimum-quanto, set per
|
|
272
|
+
component.
|
|
273
|
+
- **Acceleration:** FirstBlockCache, FasterCache, MagCache, TaylorSeerCache,
|
|
274
|
+
`torch.compile` and attention backends.
|
|
275
|
+
- **Adapters and prompts:** LoRA, IP-Adapter and A1111-style prompt weighting.
|
|
276
|
+
- **Long video and caching:** long-video chaining with audio-driven length, and
|
|
277
|
+
step-output caching, so re-running a fixed-seed workflow finishes instantly.
|
|
278
|
+
- **Utility tasks:** upscaling, face restoration, segmentation, captioning, frame
|
|
279
|
+
interpolation, audio slicing, cut-and-score assembly and more.
|
|
280
|
+
|
|
281
|
+
A workflow can reach any diffusers pipeline or quantization backend by dynamic
|
|
282
|
+
import, so loading one can execute arbitrary Python. Treat a workflow file from
|
|
283
|
+
someone else the way you'd treat a `.py` script. See
|
|
284
|
+
[Trust model](docs/SECURITY.md#trust-model).
|
|
285
|
+
|
|
286
|
+
**Field reports.** At the end of a session, ask the agent what got in its way, and
|
|
287
|
+
have it file each bug or gap as an issue on `dkackman/diffusers-workflow` with the
|
|
288
|
+
`field-report` label. The label marks a report as coming from real use. A report
|
|
289
|
+
from anyone but the maintainer is reviewed before the [agent loop](docs/AGENT_LOOP.md)
|
|
290
|
+
acts on it.
|
|
291
|
+
|
|
292
|
+
## Documentation
|
|
293
|
+
|
|
294
|
+
**Using it**
|
|
295
|
+
|
|
296
|
+
- [MCP Server](docs/MCP.md) - the agent's tool surface (Claude Code, Claude Desktop, other MCP hosts)
|
|
297
|
+
- [dw plugin](plugins/dw/README.md) - the model-family and composition skills
|
|
298
|
+
- [Server & Web UI](docs/SERVER.md) - the web UI, the command line, and the [HTTP API](docs/SERVER.md#the-http-api) with its OpenAPI spec
|
|
299
|
+
- [Workspaces](docs/WORKSPACES.md) - where your content lives, run directories, several workspaces on one server
|
|
300
|
+
- [Remote GPU server](docs/REMOTE.md) - the server, UI and MCP from another machine
|
|
301
|
+
- [Docker](docs/DOCKER.md) - the server in a container on a Linux NVIDIA box
|
|
302
|
+
|
|
303
|
+
**Workflows in depth**
|
|
304
|
+
|
|
305
|
+
- [Workflow Guide](docs/WORKFLOW_GUIDE.md) - JSON structure, variables, steps, data flow, references
|
|
306
|
+
- [Tasks](docs/TASKS.md) - image, video and audio utility tasks, ControlNet preprocessors
|
|
307
|
+
- [Quantization](docs/QUANTIZATION.md) - BitsAndBytes, TorchAO, GGUF, SDNQ
|
|
308
|
+
- [Inference Acceleration](docs/ACCELERATION.md) - caches, `torch.compile`, attention backends, MPS
|
|
309
|
+
- [Fast on 24GB](docs/RECIPES_24GB.md) - tested speed/memory settings per model family
|
|
310
|
+
- [LoRA](docs/LORAS.md), [IP-Adapter](docs/IP_ADAPTER.md), [Prompt Weighting](docs/PROMPT_WEIGHTING.md)
|
|
311
|
+
|
|
312
|
+
**Reference**
|
|
313
|
+
|
|
314
|
+
- [Architecture](docs/ARCHITECTURE.md) - each concept, the module that owns it, and the check that enforces it
|
|
315
|
+
- [Worker Guide](docs/WORKER_GUIDE.md) - the persistent GPU worker and troubleshooting
|
|
316
|
+
- [Security](docs/SECURITY.md) - validators and the trust gate ([quick reference](docs/SECURITY_QUICKREF.md))
|
|
317
|
+
- [Dependencies](docs/DEPENDENCIES.md), [Testing](docs/TESTING.md), [Releasing](docs/RELEASING.md)
|
|
318
|
+
- [Agent Loop](docs/AGENT_LOOP.md) - what the automated implementer/tester labels mean
|
|
319
|
+
- [Attributions](docs/ATTRIBUTIONS.md) - code from other projects, and the projects whose ideas dw reimplemented
|