[diffusion] docs: update ComfyUI sections, trimmed examples, and the RTX 5090 DiT-resident recipe (1.42x) for Qwen-Image-2.1 cookbook (#40573)
Co-authored-by: Mick Qian <mickqian@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Mick Qian
Claude Opus 5
parent
69d1e5cfe0
commit
50ec9702d0
@@ -52,6 +52,8 @@ PY
|
||||
|
||||
The picker defaults to native BF16/FP32 precision, exact attention, eager
|
||||
execution, and full-image VAE decoding.
|
||||
Commands omit default values, including one GPU, encoder auto scheduling, and
|
||||
batch size one. Explicit placement and attention overrides preserve each recipe.
|
||||
|
||||
| GPU | Placement / attention | Generation | Edit | Peak VRAM |
|
||||
| --- | --- | --- | --- | --- |
|
||||
@@ -140,29 +142,24 @@ including partly transparent edges, without thresholding or background removal.
|
||||
|
||||
## 4. Offline requests
|
||||
|
||||
Defaults are 1024×1024, 40 steps, CFG 1, and seed 42; output saving is enabled.
|
||||
For GPUs that need offload, also pass the placement flags from the picker.
|
||||
|
||||
### Text-to-image
|
||||
|
||||
```bash Command
|
||||
sglang generate \
|
||||
--model-path /models/qwen-image-2.1 \
|
||||
--model-id Qwen-Image-2.1 \
|
||||
--prompt "A capybara reading a book by candlelight" \
|
||||
--width 1024 --height 1024 \
|
||||
--num-inference-steps 40 --guidance-scale 1 \
|
||||
--seed 0 --save-output
|
||||
--model-path Qwen/Qwen-Image-2.1 \
|
||||
--prompt "A capybara reading a book by candlelight"
|
||||
```
|
||||
|
||||
### Image-conditioned editing
|
||||
|
||||
```bash Command
|
||||
sglang generate \
|
||||
--model-path /models/qwen-image-2.1 \
|
||||
--model-id Qwen-Image-2.1 \
|
||||
--model-path Qwen/Qwen-Image-2.1 \
|
||||
--image-path /path/to/input.png \
|
||||
--prompt "Move the scene to a snowy mountain at sunrise" \
|
||||
--width 1024 --height 1024 \
|
||||
--num-inference-steps 40 --guidance-scale 1 \
|
||||
--seed 0 --save-output
|
||||
--prompt "Move the scene to a snowy mountain at sunrise"
|
||||
```
|
||||
|
||||
Height and width must be positive multiples of 32. Reference images preserve
|
||||
|
||||
@@ -315,3 +315,9 @@ Peak Memory Mean (MB): 47971.49
|
||||
Peak Memory Median (MB): 47971.29
|
||||
============================================================
|
||||
```
|
||||
|
||||
## 6. Run in ComfyUI
|
||||
|
||||
import { ComfyUISupport } from '/src/snippets/diffusion/comfyui-support.jsx';
|
||||
|
||||
<ComfyUISupport model="qwen-image-edit" />
|
||||
|
||||
@@ -428,3 +428,9 @@ Test Environment:
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## 6. Run in ComfyUI
|
||||
|
||||
import { ComfyUISupport } from '/src/snippets/diffusion/comfyui-support.jsx';
|
||||
|
||||
<ComfyUISupport model="qwen-image" />
|
||||
|
||||
Reference in New Issue
Block a user