diff --git a/docs/models/animatediff.md b/docs/models/animatediff.md
index 2486fb43..ef110feb 100644
--- a/docs/models/animatediff.md
+++ b/docs/models/animatediff.md
@@ -1,14 +1,34 @@
-# AnimateDiff (SD 1.5)
+# AnimateDiff
-AnimateDiff adds motion to a frozen Stable Diffusion 1.5 checkpoint by
-injecting a temporal-attention module at 20 UNet slots. The base SD 1.5
-model, VAE, and text encoder are unchanged; only the motion module produces
-the temporal residual that turns a batch of independent frames into a
-coherent animation. Reference: Guo et al., "AnimateDiff: Animate Your
-Personalized Text-to-Image Diffusion Models without Specific Tuning"
-(https://arxiv.org/abs/2307.04725).
+AnimateDiff adds video generation to an SD 1.5 checkpoint using a compatible motion module.
-## Download weights
+Use the SD 1.5 checkpoint for the desired characters and style, and choose the
+motion module and resolution below. See the
+[AnimateDiff paper](https://arxiv.org/abs/2307.04725) for the model reference.
+
+## Supported variants
+
+Per [animatediff.net/models](https://animatediff.net/models):
+
+| Module | Base | Native res | Character |
+|---------------------|------|------------|-----------|
+| `mm_sd_v14.ckpt` | 1.5 | 256x256 | earliest, more jittery |
+| `mm_sd_v15.ckpt` | 1.5 | 256x256 | improved stability over v1.4 |
+| `mm_sd_v15_v2.ckpt` | 1.5 | 384x384 | significantly better motion dynamics |
+| `v3_sd15_mm.ckpt` | 1.5 | 512x512 | smoothest, highest quality; pairs with a Domain Adapter LoRA |
+| `mm_sdxl_v10_beta` | SDXL | 512x512 | experimental, not yet supported here |
+
+Match your `-H -W` to the module's native resolution for best results. v3 is
+trained at 512x512 - going smaller (e.g. 384x384) still works but the motion
+character is closer to v2.
+
+## Model files
+
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| SD 1.5 checkpoint | [Compatible SD 1.5 checkpoint](sd.md) | `-m` / `--model` | Required; SDXL motion modules are not supported |
+| Motion module | v1/v2/v3 motion weights listed below | `--motion-module` | Required; match the resolution and version |
+| Domain adapter LoRA | v3 adapter listed below | `--lora-model-dir` and prompt | Optional; v3 only |
- Motion module (v3, recommended)
- fp16 safetensors: https://huggingface.co/conrevo/AnimateDiff-A1111/resolve/main/motion_module/mm_sd15_v3.safetensors
@@ -25,75 +45,173 @@ Personalized Text-to-Image Diffusion Models without Specific Tuning"
The motion module is `~836 MB` and loads alongside the SD 1.5 UNet via
`--motion-module`.
-## Motion module versions
+## Usage
-Per [animatediff.net/models](https://animatediff.net/models):
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
-| Module | Base | Native res | Character |
-|---------------------|------|------------|-----------|
-| `mm_sd_v14.ckpt` | 1.5 | 256x256 | earliest, more jittery |
-| `mm_sd_v15.ckpt` | 1.5 | 256x256 | improved stability over v1.4 |
-| `mm_sd_v15_v2.ckpt` | 1.5 | 384x384 | significantly better motion dynamics |
-| `v3_sd15_mm.ckpt` | 1.5 | 512x512 | smoothest, highest quality; pairs with a Domain Adapter LoRA |
-| `mm_sdxl_v10_beta` | SDXL | 512x512 | experimental, not yet supported here |
+### Web UI
-Match your `-H -W` to the module's native resolution for best results. v3 is
-trained at 512x512 - going smaller (e.g. 384x384) still works but the motion
-character is closer to v2.
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
-## Examples
+| Recipe | Component slots |
+| --- | --- |
+| AnimateDiff SD 1.5 (`animatediff-sd15`) | `model`, `motion_module`, `vae`, `tae` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+#### Text-to-video
Generate an 8-frame animation at 512x512, seed 42, 20 steps. The sampler /
scheduler / CFG values below match what mm_sd15_v3 was trained with; using
SD 1.5 defaults (euler_a, low CFG) produces noise-like output.
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --model ..\models\checkpoints\realisticVisionV60B1.safetensors `
+ --motion-module ..\models\motion_modules\animatediff\mm_sd15_v3.safetensors `
+ -p "a red apple on a wooden table" `
+ --cfg-scale 8.0 `
+ --sampling-method euler `
+ --scheduler discrete `
+ --steps 20 `
+ -H 512 `
+ -W 512 `
+ --video-frames 8 `
+ --fps 8 `
+ --offload-to-cpu `
+ -s 42 `
+ -o out.avi
```
-.\bin\Release\sd-cli.exe -M vid_gen \
- --model ..\models\checkpoints\realisticVisionV60B1.safetensors \
- --motion-module ..\models\animatediff\mm_sd15_v3.safetensors \
- --offload-to-cpu \
- -p "a red apple on a wooden table" \
- --cfg-scale 8.0 --sampling-method euler --scheduler discrete \
- -H 512 -W 512 --video-frames 8 --fps 8 --steps 20 -s 42 \
- -o out.avi
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -M vid_gen \
+ --model ../models/checkpoints/realisticVisionV60B1.safetensors \
+ --motion-module ../models/motion_modules/animatediff/mm_sd15_v3.safetensors \
+ -p "a red apple on a wooden table" \
+ --cfg-scale 8.0 \
+ --sampling-method euler \
+ --scheduler discrete \
+ --steps 20 \
+ -H 512 \
+ -W 512 \
+ --video-frames 8 \
+ --fps 8 \
+ --offload-to-cpu \
+ -s 42 \
+ -o out.avi
```
Generate at the motion module's native 16-frame context (recommended for
best temporal quality). Needs more VRAM at 512x512, so drop to 384x384 or
use layer streaming:
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --model ..\models\checkpoints\realisticVisionV60B1.safetensors `
+ --motion-module ..\models\motion_modules\animatediff\mm_sd15_v3.safetensors `
+ -p "photo of coastline, rocks, storm weather, wind, waves, lightning" `
+ --cfg-scale 8.0 `
+ --sampling-method euler `
+ --scheduler discrete `
+ --steps 20 `
+ -H 384 `
+ -W 384 `
+ --video-frames 16 `
+ --fps 8 `
+ --offload-to-cpu `
+ -s 42 `
+ -o out.avi
```
-.\bin\Release\sd-cli.exe -M vid_gen \
- --model ..\models\checkpoints\realisticVisionV60B1.safetensors \
- --motion-module ..\models\animatediff\mm_sd15_v3.safetensors \
- --offload-to-cpu \
- -p "photo of coastline, rocks, storm weather, wind, waves, lightning" \
- --cfg-scale 8.0 --sampling-method euler --scheduler discrete \
- -H 384 -W 384 --video-frames 16 --fps 8 --steps 20 -s 42 \
- -o out.avi
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -M vid_gen \
+ --model ../models/checkpoints/realisticVisionV60B1.safetensors \
+ --motion-module ../models/motion_modules/animatediff/mm_sd15_v3.safetensors \
+ -p "photo of coastline, rocks, storm weather, wind, waves, lightning" \
+ --cfg-scale 8.0 \
+ --sampling-method euler \
+ --scheduler discrete \
+ --steps 20 \
+ -H 384 \
+ -W 384 \
+ --video-frames 16 \
+ --fps 8 \
+ --offload-to-cpu \
+ -s 42 \
+ -o out.avi
```
Low-VRAM streaming (verified with a 2 GiB cap on RTX 3060):
-```
-.\bin\Release\sd-cli.exe -M vid_gen \
- --model ..\models\checkpoints\realisticVisionV60B1.safetensors \
- --motion-module ..\models\animatediff\mm_sd15_v3.safetensors \
- --max-vram 2.0 \
- -p "photo of coastline, rocks, storm weather, wind, waves, lightning" \
- --cfg-scale 8.0 --sampling-method euler --scheduler discrete \
- -H 384 -W 384 --video-frames 8 --fps 8 --steps 20 -s 42 \
- -o out.avi
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --model ..\models\checkpoints\realisticVisionV60B1.safetensors `
+ --motion-module ..\models\motion_modules\animatediff\mm_sd15_v3.safetensors `
+ -p "photo of coastline, rocks, storm weather, wind, waves, lightning" `
+ --cfg-scale 8.0 `
+ --sampling-method euler `
+ --scheduler discrete `
+ --steps 20 `
+ -H 384 `
+ -W 384 `
+ --video-frames 8 `
+ --fps 8 `
+ --max-vram 2.0 `
+ -s 42 `
+ -o out.avi
```
-## Reference-quality reproduction
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -M vid_gen \
+ --model ../models/checkpoints/realisticVisionV60B1.safetensors \
+ --motion-module ../models/motion_modules/animatediff/mm_sd15_v3.safetensors \
+ -p "photo of coastline, rocks, storm weather, wind, waves, lightning" \
+ --cfg-scale 8.0 \
+ --sampling-method euler \
+ --scheduler discrete \
+ --steps 20 \
+ -H 384 \
+ -W 384 \
+ --video-frames 8 \
+ --fps 8 \
+ --max-vram 2.0 \
+ -s 42 \
+ -o out.avi
+```
+
+#### Reference-quality reproduction
Using guoyww's official reference configs on this impl (RealisticVision v6.0
base + `mm_sd15_v3` or `mm_sd_v15_v2` + native resolution + 16 frames + euler
+ 25 steps + CFG 8 + linear beta schedule) reproduces the reference
AnimateDiff output style.
-### v3 (512x512, `mm_sd15_v3`)
+##### v3 (512x512, `mm_sd15_v3`)
| Prompt | Sample |
|---------------------------------------|--------|
@@ -102,7 +220,7 @@ AnimateDiff output style.
| Coastline, storm, waves, lightning |
|
| Old house, storm, forest, night |
|
-### v2 (384x384, `mm_sd_v15_v2.ckpt`)
+##### v2 (384x384, `mm_sd_v15_v2.ckpt`)
| Prompt | Sample |
|---------------------------------------|--------|
@@ -116,7 +234,7 @@ and subtle for static subjects (close-up macro), matching reference behavior.
v2 has an additional motion module at the UNet middle block that v3 dropped;
this impl auto-detects the topology from the checkpoint.
-### v3 + Domain Adapter LoRA
+##### v3 + Domain Adapter LoRA
Attaching the `v3_sd15_adapter` LoRA sharpens the base UNet output toward
the training distribution the motion module was fine-tuned against. Same
@@ -127,14 +245,29 @@ prompt, seed, config as above:
Individual fur strands, glowing inner-ear, and richer forest detail become
visible compared to the no-LoRA rendering.
-```
-sd-cli -M vid_gen --model realisticVisionV60B1.safetensors \
- --motion-module mm_sd15_v3.safetensors \
- --lora-model-dir ./loras \
- -p "close up photo of a rabbit ...
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M img_gen ... `
+ -o init.png "#" any high-quality still
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --motion-module ..\models\motion_modules\mm_sd15_v3.safetensors `
+ -i init.png `
+ -p ... `
+ --strength 0.75 `
+ --cfg-scale 7.0 `
+ --sampling-method euler `
+ --scheduler karras `
+ --steps 25 `
+ -H 512 `
+ -W 512 `
+ --video-frames 8 `
+ -s 42 `
+ -o out.avi
```
-sd-cli -M img_gen ... -o init.png # any high-quality still
-sd-cli -M vid_gen --motion-module mm_sd15_v3.safetensors \
- -i init.png --strength 0.75 \
- --cfg-scale 7.0 --sampling-method euler --scheduler karras \
- -H 512 -W 512 --video-frames 8 --steps 25 -s 42 \
- -p "..." -o out.avi
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -M img_gen ... \
+ -o init.png "#" any high-quality still
+./bin/sd-cli \
+ -M vid_gen \
+ --motion-module ../models/motion_modules/mm_sd15_v3.safetensors \
+ -i init.png \
+ -p ... \
+ --strength 0.75 \
+ --cfg-scale 7.0 \
+ --sampling-method euler \
+ --scheduler karras \
+ --steps 25 \
+ -H 512 \
+ -W 512 \
+ --video-frames 8 \
+ -s 42 \
+ -o out.avi
```
`--strength` controls how far the motion module is allowed to deviate from the init image (higher = more motion, lower = more static).
-## Notes
+## Notes and limitations
- The motion module was trained at `video_length=16`. Running with
`--video-frames 16` gives the best coherence; F=8 works but shows a shorter
diff --git a/docs/models/boogu_image.md b/docs/models/boogu_image.md
index 2a54f4b3..d7d133cd 100644
--- a/docs/models/boogu_image.md
+++ b/docs/models/boogu_image.md
@@ -1,31 +1,93 @@
-# How to Use
+# Boogu Image
Boogu Image uses a Boogu diffusion transformer, the FLUX VAE, and Qwen3-VL as the LLM text and vision encoder.
-## Download weights
+## Model files
-- Download Boogu Image
- - safetensors: https://huggingface.co/Comfy-Org/Boogu-Image/tree/main/diffusion_models
-- Download vae
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/ae.safetensors
-- Download Qwen3-VL 8B
- - gguf: https://huggingface.co/unsloth/Qwen3-VL-8B-Instruct-GGUF/tree/main
- - For image editing with GGUF text encoders, also download the matching mmproj file and pass it with `--llm_vision`.
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Boogu Image | [Safetensors](https://huggingface.co/Comfy-Org/Boogu-Image/tree/main/diffusion_models) | `--diffusion-model` | Required |
+| vae | [Safetensors](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/ae.safetensors) | `--vae` | Use matching VAE |
+| Qwen3-VL 8B | [GGUF](https://huggingface.co/unsloth/Qwen3-VL-8B-Instruct-GGUF/tree/main)
-### Boogu Image Edit
+#### Boogu Image Edit
-```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\boogu_image_edit_bf16.safetensors --llm ..\models\text_encoders\Qwen3VL-8B-Instruct-Q4_K_M.gguf --llm_vision ..\models\text_encoders\mmproj-Qwen3VL-8B-Instruct-F16.gguf --vae ..\models\vae\ae.sft -v --offload-to-cpu -r ..\assets\flux\flux1-dev-q8_0.png -p "change 'flux.cpp' to 'boogu.cpp'"
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\boogu_image_edit_bf16.safetensors `
+ --llm ..\models\text_encoders\Qwen3VL-8B-Instruct-Q4_K_M.gguf `
+ --llm_vision ..\models\text_encoders\mmproj-Qwen3VL-8B-Instruct-F16.gguf `
+ --vae ..\models\vae\ae.sft `
+ -r ..\inputs\flux\flux1-dev-q8_0.png `
+ -p "change 'flux.cpp' to 'boogu.cpp'" `
+ --offload-to-cpu `
+ -v
```
-
\ No newline at end of file
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/boogu_image_edit_bf16.safetensors \
+ --llm ../models/text_encoders/Qwen3VL-8B-Instruct-Q4_K_M.gguf \
+ --llm_vision ../models/text_encoders/mmproj-Qwen3VL-8B-Instruct-F16.gguf \
+ --vae ../models/vae/ae.sft \
+ -r ../inputs/flux/flux1-dev-q8_0.png \
+ -p "change 'flux.cpp' to 'boogu.cpp'" \
+ --offload-to-cpu \
+ -v
+```
+
+
diff --git a/docs/models/chroma.md b/docs/models/chroma.md
index ccf63c65..51c96859 100644
--- a/docs/models/chroma.md
+++ b/docs/models/chroma.md
@@ -1,32 +1,101 @@
-# How to Use
+# Chroma
+
+Chroma generates images from text using T5-XXL and the FLUX.1 VAE.
You can run Chroma using stable-diffusion.cpp with a GPU that has 6GB or even 4GB of VRAM, without needing to offload to RAM.
-## Download weights
+## Model files
-- Download Chroma
- - If you don't want to do the conversion yourself, download the preconverted gguf model from [silveroxides/Chroma-GGUF](https://huggingface.co/silveroxides/Chroma-GGUF)
- - Otherwise, download chroma's safetensors from [lodestones/Chroma](https://huggingface.co/lodestones/Chroma)
-- Download vae from https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/ae.safetensors
-- Download t5xxl from https://huggingface.co/comfyanonymous/flux_text_encoders/blob/main/t5xxl_fp16.safetensors
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Chroma | If you don't want to do the conversion yourself, download the preconverted gguf model from [silveroxides/Chroma-GGUF](https://huggingface.co/silveroxides/Chroma-GGUF)
-
-
-
diff --git a/docs/models/distilled_sd.md b/docs/models/distilled_sd.md
index 7aa8fbed..30e75aa4 100644
--- a/docs/models/distilled_sd.md
+++ b/docs/models/distilled_sd.md
@@ -1,11 +1,18 @@
-# Running distilled models: SSD1B, Vega and SDx.x with tiny U-Nets
+# Distilled Stable Diffusion models
-## Preface
+This guide covers SSD-1B, Vega, Tiny SD/SD2, and SDXS checkpoints. Choose the
+base-model family and preparation steps matching the checkpoint.
-These models feature a reduced U-Net architecture. Unlike standard SDXL models, the SSD-1B and Vega U-Net contains only one middle block and fewer attention layers in its up- and down-blocks, resulting in significantly smaller file sizes. Using these models can reduce inference time by more than 33%. For more details, refer to Segmind's paper: https://arxiv.org/abs/2401.02677v1.
-Similarly, SD1.x- and SD2.x-style models with a tiny U-Net consist of only 6 U-Net blocks, leading to very small files and time savings of up to 50%. For more information, see the paper: https://arxiv.org/pdf/2305.15798.pdf.
+## Model files
-## SSD1B
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| SSD-1B | [SSD-1B-A1111.safetensors](https://huggingface.co/segmind/SSD-1B/resolve/main/SSD-1B-A1111.safetensors) | `-m` / `--model` | Single-file SDXL-family checkpoint |
+| Vega | [Segmind Vega](https://huggingface.co/segmind/Segmind-Vega) | `-m` / `--model` | Single-file SDXL-family checkpoint |
+| Tiny SD / SD2 | [Repositories and conversion steps](#tiny-sd-and-tiny-sd2) | `-m` / `--model` | Convert Diffusers directories first |
+| SDXS | [Ready-to-run SDXS weights](#sdxs-512-dreamshaper-weights) | `-m` / `--model` | Use the compatible autoencoder and one-step settings |
+
+### SSD1B
Note that not all of these models follow the standard parameter naming conventions. However, several useful SSD-1B models are available online, such as:
@@ -17,26 +24,25 @@ Useful LoRAs are also available:
* https://huggingface.co/seungminh/lora-swarovski-SSD-1B/resolve/main/pytorch_lora_weights.safetensors
* https://huggingface.co/kylielee505/mylcmlorassd/resolve/main/pytorch_lora_weights.safetensors
-## Vega
+### Vega
Segmind's Vega model is available online here:
* https://huggingface.co/segmind/Segmind-Vega/resolve/main/segmind-vega.safetensors
-
+
VegaRT is an example for an LCM-LoRA:
* https://huggingface.co/segmind/Segmind-VegaRT/resolve/main/pytorch_lora_weights.safetensors
Both files can be used out-of-the-box, unlike the models described in next sections.
-
-## SD1.x, SD2.x with tiny U-Nets
+### Tiny SD and Tiny SD2
These models require conversion before use. You will need a Python script provided by the diffusers team, available on GitHub:
* https://raw.githubusercontent.com/huggingface/diffusers/refs/heads/main/scripts/convert_diffusers_to_original_stable_diffusion.py
-### SD2.x
+#### SD2.x
NotaAI provides the following model online:
@@ -51,15 +57,21 @@ pipe = StableDiffusionPipeline.from_pretrained("nota-ai/bk-sdm-v2-tiny",cache_di
Second, create the .safetensors file by running:
-```bash
-python convert_diffusers_to_original_stable_diffusion.py \
- --model_path models--nota-ai--bk-sdm-v2-tiny/snapshots/68277af553777858cd47e133f92e4db47321bc74 \
- --checkpoint_path bk-sdm-v2-tiny.safetensors --half --use_safetensors
+**Windows (PowerShell)**
+
+```powershell
+python convert_diffusers_to_original_stable_diffusion.py --model_path models--nota-ai--bk-sdm-v2-tiny/snapshots/68277af553777858cd47e133f92e4db47321bc74 --checkpoint_path bk-sdm-v2-tiny.safetensors --half --use_safetensors
+```
+
+**Linux/macOS**
+
+```sh
+python convert_diffusers_to_original_stable_diffusion.py --model_path models--nota-ai--bk-sdm-v2-tiny/snapshots/68277af553777858cd47e133f92e4db47321bc74 --checkpoint_path bk-sdm-v2-tiny.safetensors --half --use_safetensors
```
This will generate the **file bk-sdm-v2-tiny.safetensors**, which is now ready for use with sd.cpp.
-### SD1.x
+#### SD1.x
Several Tiny SD 1.x models are available online, such as:
@@ -68,9 +80,9 @@ Several Tiny SD 1.x models are available online, such as:
* https://huggingface.co/nota-ai/bk-sdm-tiny
These models also require conversion, partly because some tensors are stored in a non-contiguous manner. To create a usable checkpoint file, follow these simple steps:
-Download and prepare the model using Python:
+Download and prepare the model using Python:
-##### Download the model using Python on your computer, for example this way:
+Download the model using Python on your computer, for example this way:
```python
import torch
@@ -82,37 +94,109 @@ for param in unet.parameters():
pipe.save_pretrained("segmindtiny-sd", safe_serialization=True)
```
-##### Run the conversion script:
+Run the conversion script:
-```bash
-python convert_diffusers_to_original_stable_diffusion.py \
- --model_path ./segmindtiny-sd \
- --checkpoint_path ./segmind_tiny-sd.safetensors --half --use_safetensors
+**Windows (PowerShell)**
+
+```powershell
+python convert_diffusers_to_original_stable_diffusion.py --model_path .\segmindtiny-sd --checkpoint_path .\segmind_tiny-sd.safetensors --half --use_safetensors
+```
+
+**Linux/macOS**
+
+```sh
+python convert_diffusers_to_original_stable_diffusion.py --model_path ./segmindtiny-sd --checkpoint_path ./segmind_tiny-sd.safetensors --half --use_safetensors
```
The file segmind_tiny-sd.safetensors will be generated and is now ready for use with sd.cpp. You can follow a similar process for the other models mentioned above.
-
-### SDXS-512-DreamShaper
+### SDXS-512-DreamShaper weights
Another very tiny and **incredibly fast** model is SDXS by IDKiro et al. The authors refer to it as *"Real-Time One-Step Latent Diffusion Models with Image Conditions"*. For details read the paper: https://arxiv.org/pdf/2403.16627 . Once again the authors removed some more blocks of U-Net part and unlike other SD1 models they use an adjusted _AutoEncoderTiny_ instead of default _AutoEncoderKL_ for the VAE part.
-##### Some ready-to-run SDXS-512 model files are available online, such as:
+
+Some ready-to-run SDXS-512 model files are available online, such as:
* https://huggingface.co/akleine/sdxs-512
* https://huggingface.co/concedo/sdxs-512-tinySDdistilled-GGUF
-##### Run the model as follows:
-```bash
-~/stable-diffusion.cpp/build/bin/sd-cli -m sdxs.safetensors -p "portrait of a lovely cat" \
- --cfg-scale 1 --steps 1
-```
-Both options: ``` --cfg-scale 1 ``` and ``` --steps 1 ``` are mandatory here.
-
-### SDXS-512-0.9
+### SDXS-512-0.9 weights
Even though the name "SDXS-512-0.9" is similar to "SDXS-512-DreamShaper", it is *completely different* but also **incredibly fast**. Sometimes it is preferred, so try it yourself.
-##### Download a ready-to-run file from here:
+
+Download a ready-to-run file from here:
* https://huggingface.co/akleine/sdxs-09
-For the use of this model, both options ``` --cfg-scale 1 ``` and ``` --steps 1 ``` are again absolutely necessary.
+For the use of this model, both options `--cfg-scale 1` and `--steps 1` are again absolutely necessary.
+
+## Usage
+
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+
+### Web UI
+
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
+
+| Recipe | Component slots |
+| --- | --- |
+| SDXL (`sdxl-checkpoint`) | `model`, `vae`, `tae` |
+| SD 1.x (`sd1-checkpoint`) | `model`, `vae`, `tae` |
+| SD 2.1 512 (`sd2-512-checkpoint`) | `model`, `vae`, `tae` |
+| SDXS (`sdxs`) | `model`, `vae` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+#### SSD1B
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe -m ..\models\checkpoints\SSD-1B-A1111.safetensors -p "a lovely cat"
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli -m ../models/checkpoints/SSD-1B-A1111.safetensors -p "a lovely cat"
+```
+
+#### SDXS-512-DreamShaper
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -m ..\models\checkpoints\sdxs.safetensors `
+ -p "portrait of a lovely cat" `
+ --cfg-scale 1 `
+ --steps 1
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -m ../models/checkpoints/sdxs.safetensors \
+ -p "portrait of a lovely cat" \
+ --cfg-scale 1 \
+ --steps 1
+```
+
+Both options: `--cfg-scale 1` and `--steps 1` are mandatory here.
+
+## Notes and limitations
+
+SSD-1B, Vega, and Tiny SD variants reduce the base model size. Details are in the
+[SSD-1B paper](https://arxiv.org/abs/2401.02677v1) and
+[Tiny SD paper](https://arxiv.org/pdf/2305.15798.pdf). Follow the [SDXS generation settings](#sdxs-512-dreamshaper); CFG 1 and one step are required.
+
+Run the Python conversion commands in [Model files](#model-files) from the source repository root,
+with the listed conversion script and Python dependencies installed. Return to
+the build directory for the platform-specific CLI commands.
diff --git a/docs/models/ernie_image.md b/docs/models/ernie_image.md
index a12eb9a1..e4e30698 100644
--- a/docs/models/ernie_image.md
+++ b/docs/models/ernie_image.md
@@ -1,35 +1,99 @@
-# How to Use
+# ERNIE-Image
+
+ERNIE-Image and ERNIE-Image-Turbo generate images from text using the FLUX.2 VAE
+and a Ministral 3 3B text encoder.
You can run ERNIE-Image with stable-diffusion.cpp on GPUs with 4GB of VRAM — or even less.
-## Download weights
+## Model files
-- Download ERNIE-Image-Turbo
- - safetensors: https://huggingface.co/Comfy-Org/ERNIE-Image/tree/main/diffusion_models
- - gguf: https://huggingface.co/unsloth/ERNIE-Image-Turbo-GGUF/tree/main
-- Download ERNIE-Image
- - safetensors: https://huggingface.co/Comfy-Org/ERNIE-Image/tree/main/diffusion_models
- - gguf: https://huggingface.co/unsloth/ERNIE-Image-GGUF/tree/main
-- Download vae
- - safetensors: https://huggingface.co/Comfy-Org/ERNIE-Image/tree/main/vae
-- Download ministral 3b
- - safetensors: https://huggingface.co/Comfy-Org/ERNIE-Image/tree/main/text_encoders
- - gguf: https://huggingface.co/unsloth/Ministral-3-3B-Instruct-2512-GGUF/tree/main
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| ERNIE-Image-Turbo | [Safetensors](https://huggingface.co/Comfy-Org/ERNIE-Image/tree/main/diffusion_models)
-### ERNIE-Image
+#### ERNIE-Image
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\ernie-image-UD-Q4_K_M.gguf `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ --llm ..\models\text_encoders\ministral-3-3b.safetensors `
+ -p "a lovely cat" `
+ --cfg-scale 5.0 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\ernie-image-UD-Q4_K_M.gguf --vae ..\models\vae\flux2_ae.safetensors --llm ..\models\text_encoders\ministral-3-3b.safetensors -p "a lovely cat" --cfg-scale 5.0 -v --offload-to-cpu
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/ernie-image-UD-Q4_K_M.gguf \
+ --vae ../models/vae/flux2_ae.safetensors \
+ --llm ../models/text_encoders/ministral-3-3b.safetensors \
+ -p "a lovely cat" \
+ --cfg-scale 5.0 \
+ --offload-to-cpu \
+ -v
```
diff --git a/docs/models/esrgan.md b/docs/models/esrgan.md
index 4068ef11..3d1a589e 100644
--- a/docs/models/esrgan.md
+++ b/docs/models/esrgan.md
@@ -1,13 +1,42 @@
-## Using ESRGAN to upscale results
+# ESRGAN and MoSR
-You can use ESRGAN—such as the model [RealESRGAN_x4plus_anime_6B.pth](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth)—to upscale the generated images and improve their overall resolution and clarity.
+ESRGAN and compatible MoSR weights upscale generated images. Pass the chosen
+upscaler with `--upscale-model`.
-MoSR models with the PixelShuffle upsampler, such as [4xNomos2_hq_mosr.pth](https://github.com/Phhofm/models/releases/download/4xNomos2_hq_mosr/4xNomos2_hq_mosr.pth), are also supported. The architecture is detected from the weights, so they are used the same way as ESRGAN models.
+## Model files
-RGBA images, including Qwen Image 2.1 output, keep their alpha channel during model upscaling and hires fix. The upscaler processes the RGB channels; the alpha channel is resized with bilinear interpolation and recombined with the upscaled image.
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Base model | [Stable Diffusion checkpoint](sd.md) | `-m` / `--model` | Required for generation below |
+| ESRGAN upscaler | [RealESRGAN_x4plus_anime_6B.pth](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth) | `--upscale-model` | Choose a compatible upscaler |
+| MoSR upscaler | [4xNomos2_hq_mosr.pth](https://github.com/Phhofm/models/releases/download/4xNomos2_hq_mosr/4xNomos2_hq_mosr.pth) | `--upscale-model` | Alternative; requires the PixelShuffle upsampler |
-- Specify the model path using the `--upscale-model PATH` parameter. example:
+## Usage
-```bash
-sd-cli -m ../models/v1-5-pruned-emaonly.safetensors -p "a lovely cat" --upscale-model ../models/RealESRGAN_x4plus_anime_6B.pth
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+
+### CLI
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -m ..\models\checkpoints\v1-5-pruned-emaonly.safetensors `
+ --upscale-model ..\models\upscale_models\RealESRGAN_x4plus_anime_6B.pth `
+ -p "a lovely cat"
```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -m ../models/checkpoints/v1-5-pruned-emaonly.safetensors \
+ --upscale-model ../models/upscale_models/RealESRGAN_x4plus_anime_6B.pth \
+ -p "a lovely cat"
+```
+
+## Notes and limitations
+
+RGBA output retains its alpha channel during model upscaling and hires fix.
+The upscaler processes RGB; alpha is resized with bilinear interpolation and
+recombined with the result. The model architecture is detected from the weights.
diff --git a/docs/models/fibo2.md b/docs/models/fibo2.md
index d440c953..4919bda1 100644
--- a/docs/models/fibo2.md
+++ b/docs/models/fibo2.md
@@ -1,47 +1,148 @@
-# How to Use
+# Fibo 2.0
Fibo 2.0 uses a Fibo diffusion transformer, the standard FLUX.2 VAE, and Qwen3-VL 4B as the LLM text encoder. The Qwen tokenizer is built in.
-## Download weights
+## Model files
-- Download Fibo 2.0 Dev
- - safetensors: https://huggingface.co/Comfy-Org/Fibo-2.0/tree/main/diffusion_models
-- Download Fibo 2.0 Edit Turbo
- - safetensors: https://huggingface.co/Comfy-Org/Fibo-2.0/tree/main/diffusion_models
-- Download vae
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/main
-- Download Qwen3-VL 4B
- - safetensors: https://huggingface.co/Comfy-Org/Fibo-2.0/tree/main/text_encoders
- - gguf: https://huggingface.co/Qwen/Qwen3-VL-4B-Instruct-GGUF/tree/main
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Fibo 2.0 Dev | [Safetensors](https://huggingface.co/Comfy-Org/Fibo-2.0/tree/main/diffusion_models) | `--diffusion-model` | Choose matching variant |
+| Fibo 2.0 Edit Turbo | [Safetensors](https://huggingface.co/Comfy-Org/Fibo-2.0/tree/main/diffusion_models) | `--diffusion-model` | Choose matching variant |
+| vae | [Safetensors](https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/main) | `--vae` | Use matching VAE |
+| Qwen3-VL 4B | [Safetensors](https://huggingface.co/Comfy-Org/Fibo-2.0/tree/main/text_encoders)
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\fibo2_dev_int8_convrot.safetensors `
+ --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf `
+ --llm_vision ..\models\text_encoders\Qwen3-VL-4B-Instruct-mmproj-BF16.gguf `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ -r ..\inputs\flux\flux1-dev-q8_0.png `
+ -p "change 'flux.cpp' to 'fibo2.cpp'" `
+ --cfg-scale 5.0 `
+ --sampling-method euler `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\fibo2_dev_int8_convrot.safetensors --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf --llm_vision ..\models\text_encoders\Qwen3-VL-4B-Instruct-mmproj-BF16.gguf --vae ..\models\vae\flux2_ae.safetensors -r ..\assets\flux\flux1-dev-q8_0.png -p "change 'flux.cpp' to 'fibo2.cpp'" --cfg-scale 5.0 --sampling-method euler -v --offload-to-cpu
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/fibo2_dev_int8_convrot.safetensors \
+ --llm ../models/text_encoders/Qwen3-VL-4B-Instruct-Q4_K_M.gguf \
+ --llm_vision ../models/text_encoders/Qwen3-VL-4B-Instruct-mmproj-BF16.gguf \
+ --vae ../models/vae/flux2_ae.safetensors \
+ -r ../inputs/flux/flux1-dev-q8_0.png \
+ -p "change 'flux.cpp' to 'fibo2.cpp'" \
+ --cfg-scale 5.0 \
+ --sampling-method euler \
+ --offload-to-cpu \
+ -v
```
-### Fibo 2.0 Edit Turbo
+#### Fibo 2.0 Edit Turbo
Edit Turbo is distilled for reference-image editing in 4 steps with CFG 1.
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\fibo2_edit_turbo_int8_convrot.safetensors `
+ --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf `
+ --llm_vision ..\models\text_encoders\Qwen3-VL-4B-Instruct-mmproj-BF16.gguf `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ -r ..\inputs\flux\flux1-dev-q8_0.png `
+ -p "change 'flux.cpp' to 'fibo2.cpp'" `
+ --cfg-scale 1 `
+ --steps 4 `
+ --sampling-method euler `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\fibo2_edit_turbo_int8_convrot.safetensors --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf --llm_vision ..\models\text_encoders\Qwen3-VL-4B-Instruct-mmproj-BF16.gguf --vae ..\models\vae\flux2_ae.safetensors -r ..\assets\flux\flux1-dev-q8_0.png -p "change 'flux.cpp' to 'fibo2.cpp'" --cfg-scale 1 --steps 4 --sampling-method euler -v --offload-to-cpu
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/fibo2_edit_turbo_int8_convrot.safetensors \
+ --llm ../models/text_encoders/Qwen3-VL-4B-Instruct-Q4_K_M.gguf \
+ --llm_vision ../models/text_encoders/Qwen3-VL-4B-Instruct-mmproj-BF16.gguf \
+ --vae ../models/vae/flux2_ae.safetensors \
+ -r ../inputs/flux/flux1-dev-q8_0.png \
+ -p "change 'flux.cpp' to 'fibo2.cpp'" \
+ --cfg-scale 1 \
+ --steps 4 \
+ --sampling-method euler \
+ --offload-to-cpu \
+ -v
```
The BF16 files accept the same options. Use dimensions divisible by 16. Repeat `-r` to use multiple reference images; instructions can refer to `
-## Flux.2 klein 4B / Flux.2 klein base 4B
+#### Flux.2 klein 4B / Flux.2 klein base 4B
-### Download weights
-
-- Download FLUX.2-klein-4B
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.2-klein-4B
- - gguf: https://huggingface.co/leejet/FLUX.2-klein-4B-GGUF/tree/main
-- Download FLUX.2-klein-base-4B
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.2-klein-base-4B
- - gguf: https://huggingface.co/leejet/FLUX.2-klein-base-4B-GGUF/tree/main
-- Download vae
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/main
-- Download FLUX.2-small-decoder (full_encoder_small_decoder.safetensors) as an alternative VAE option
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.2-small-decoder/tree/main
-- Download Qwen3 4b
- - safetensors: https://huggingface.co/Comfy-Org/flux2-klein-4B/tree/main/split_files/text_encoders
- - gguf: https://huggingface.co/unsloth/Qwen3-4B-GGUF/tree/main
-
-### Examples
+**Windows (PowerShell)**
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\flux-2-klein-4b.safetensors `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ --llm ..\models\text_encoders\qwen_3_4b.safetensors `
+ -p "a lovely cat" `
+ --cfg-scale 1.0 `
+ --steps 4 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\flux-2-klein-4b.safetensors --vae ..\models\vae\flux2_ae.safetensors --llm ..\models\text_encoders\qwen_3_4b.safetensors -p "a lovely cat" --cfg-scale 1.0 --steps 4 -v --offload-to-cpu
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/flux-2-klein-4b.safetensors \
+ --vae ../models/vae/flux2_ae.safetensors \
+ --llm ../models/text_encoders/qwen_3_4b.safetensors \
+ -p "a lovely cat" \
+ --cfg-scale 1.0 \
+ --steps 4 \
+ --offload-to-cpu \
+ -v
```
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\flux-2-klein-4b.safetensors `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ --llm ..\models\text_encoders\qwen_3_4b.safetensors `
+ -r .\kontext_input.png `
+ -p "change 'flux.cpp' to 'klein.cpp'" `
+ --cfg-scale 1.0 `
+ --sampling-method euler `
+ --steps 4 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\flux-2-klein-4b.safetensors --vae ..\models\vae\flux2_ae.safetensors --llm ..\models\text_encoders\qwen_3_4b.safetensors -r .\kontext_input.png -p "change 'flux.cpp' to 'klein.cpp'" --cfg-scale 1.0 --sampling-method euler -v --offload-to-cpu --steps 4
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/flux-2-klein-4b.safetensors \
+ --vae ../models/vae/flux2_ae.safetensors \
+ --llm ../models/text_encoders/qwen_3_4b.safetensors \
+ -r ./kontext_input.png \
+ -p "change 'flux.cpp' to 'klein.cpp'" \
+ --cfg-scale 1.0 \
+ --sampling-method euler \
+ --steps 4 \
+ --offload-to-cpu \
+ -v
```
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\flux-2-klein-base-4b.safetensors `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ --llm ..\models\text_encoders\qwen_3_4b.safetensors `
+ -p "a lovely cat" `
+ --cfg-scale 4.0 `
+ --steps 20 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\flux-2-klein-base-4b.safetensors --vae ..\models\vae\flux2_ae.safetensors --llm ..\models\text_encoders\qwen_3_4b.safetensors -p "a lovely cat" --cfg-scale 4.0 --steps 20 -v --offload-to-cpu
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/flux-2-klein-base-4b.safetensors \
+ --vae ../models/vae/flux2_ae.safetensors \
+ --llm ../models/text_encoders/qwen_3_4b.safetensors \
+ -p "a lovely cat" \
+ --cfg-scale 4.0 \
+ --steps 20 \
+ --offload-to-cpu \
+ -v
```
-## Flux.2 klein 9B / Flux.2 klein base 9B
+#### Flux.2 klein 9B / Flux.2 klein base 9B
-### Download weights
-
-- Download FLUX.2-klein-9B
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.2-klein-9B
- - gguf: https://huggingface.co/leejet/FLUX.2-klein-9B-GGUF/tree/main
-- Download FLUX.2-klein-base-9B
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.2-klein-base-9B
- - gguf: https://huggingface.co/leejet/FLUX.2-klein-base-9B-GGUF/tree/main
-- Download vae
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/main
-- Download Qwen3 8B
- - safetensors: https://huggingface.co/Comfy-Org/flux2-klein-9B/tree/main/split_files/text_encoders
- - gguf: https://huggingface.co/unsloth/Qwen3-8B-GGUF/tree/main
-
-### Examples
+**Windows (PowerShell)**
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\flux-2-klein-9b.safetensors `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ --llm ..\models\text_encoders\qwen_3_8b.safetensors `
+ -p "a lovely cat" `
+ --cfg-scale 1.0 `
+ --steps 4 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\flux-2-klein-9b.safetensors --vae ..\models\vae\flux2_ae.safetensors --llm ..\models\text_encoders\qwen_3_8b.safetensors -p "a lovely cat" --cfg-scale 1.0 --steps 4 -v --offload-to-cpu
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/flux-2-klein-9b.safetensors \
+ --vae ../models/vae/flux2_ae.safetensors \
+ --llm ../models/text_encoders/qwen_3_8b.safetensors \
+ -p "a lovely cat" \
+ --cfg-scale 1.0 \
+ --steps 4 \
+ --offload-to-cpu \
+ -v
```
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\flux-2-klein-9b.safetensors `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ --llm ..\models\text_encoders\qwen_3_8b.safetensors `
+ -r .\kontext_input.png `
+ -p "change 'flux.cpp' to 'klein.cpp'" `
+ --cfg-scale 1.0 `
+ --sampling-method euler `
+ --steps 4 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\flux-2-klein-9b.safetensors --vae ..\models\vae\flux2_ae.safetensors --llm ..\models\text_encoders\qwen_3_8b.safetensors -r .\kontext_input.png -p "change 'flux.cpp' to 'klein.cpp'" --cfg-scale 1.0 --sampling-method euler -v --offload-to-cpu --steps 4
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/flux-2-klein-9b.safetensors \
+ --vae ../models/vae/flux2_ae.safetensors \
+ --llm ../models/text_encoders/qwen_3_8b.safetensors \
+ -r ./kontext_input.png \
+ -p "change 'flux.cpp' to 'klein.cpp'" \
+ --cfg-scale 1.0 \
+ --sampling-method euler \
+ --steps 4 \
+ --offload-to-cpu \
+ -v
```
-```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\flux-2-klein-base-9b.safetensors --vae ..\models\vae\flux2_ae.safetensors --llm ..\models\text_encoders\qwen_3_8b.safetensors -p "a lovely cat" --cfg-scale 4.0 --steps 20 -v --offload-to-cpu
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\flux-2-klein-base-9b.safetensors `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ --llm ..\models\text_encoders\qwen_3_8b.safetensors `
+ -p "a lovely cat" `
+ --cfg-scale 4.0 `
+ --steps 20 `
+ --offload-to-cpu `
+ -v
```
-
\ No newline at end of file
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/flux-2-klein-base-9b.safetensors \
+ --vae ../models/vae/flux2_ae.safetensors \
+ --llm ../models/text_encoders/qwen_3_8b.safetensors \
+ -p "a lovely cat" \
+ --cfg-scale 4.0 \
+ --steps 20 \
+ --offload-to-cpu \
+ -v
+```
+
+
diff --git a/docs/models/flux3.md b/docs/models/flux3.md
index f4986bb3..7591d7cd 100644
--- a/docs/models/flux3.md
+++ b/docs/models/flux3.md
@@ -1,48 +1,142 @@
-# How to Use
+# FLUX.3 Image
FLUX.3 Image Klein uses a FLUX.3 diffusion transformer, the FLUX.2 VAE, and Qwen3-VL 4B as the LLM text encoder.
-## Download weights
+## Model files
-- Download FLUX.3 Image Klein
- - safetensors: https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/main
- - gguf: https://huggingface.co/leejet/flux-3-image-klein-GGUF/tree/main
-- Download FLUX.3 Image Klein Base
- - safetensors: https://huggingface.co/black-forest-labs/flux-3-image-klein-base/tree/main
- - gguf: https://huggingface.co/leejet/flux-3-image-klein-base-GGUF/tree/main
-- Download vae
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/main
- - The `ae.safetensors` included with FLUX.3 can also be used.
-- Download Qwen3-VL 4B
- - safetensors: https://huggingface.co/Comfy-Org/Krea-2/tree/main/text_encoders
- - gguf: https://huggingface.co/Qwen/Qwen3-VL-4B-Instruct-GGUF/tree/main
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| FLUX.3 Image Klein | [Safetensors](https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/main)
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\flux-3-image-klein.safetensors `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf `
+ -r ..\inputs\flux\flux1-dev-q8_0.png `
+ -p "change 'flux.cpp' to 'flux3-image-klein.cpp'" `
+ --cfg-scale 1.0 `
+ --sampling-method euler `
+ --steps 16 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\flux-3-image-klein.safetensors --vae ..\models\vae\flux2_ae.safetensors --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf -r ..\assets\flux\flux1-dev-q8_0.png -p "change 'flux.cpp' to 'flux3-image-klein.cpp'" --cfg-scale 1.0 --sampling-method euler -v --offload-to-cpu --steps 16
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/flux-3-image-klein.safetensors \
+ --vae ../models/vae/flux2_ae.safetensors \
+ --llm ../models/text_encoders/Qwen3-VL-4B-Instruct-Q4_K_M.gguf \
+ -r ../inputs/flux/flux1-dev-q8_0.png \
+ -p "change 'flux.cpp' to 'flux3-image-klein.cpp'" \
+ --cfg-scale 1.0 \
+ --sampling-method euler \
+ --steps 16 \
+ --offload-to-cpu \
+ -v
```
Repeat `-r` to use multiple reference images, up to 10. See [Image Editing](../guides/edit.md) for reference-image preprocessing options.
-### FLUX.3 Image Klein Base
+#### FLUX.3 Image Klein Base
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\flux-3-image-klein-base.safetensors `
+ --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ -p "a lovely cat holding a sign says 'flux3.cpp'" `
+ --cfg-scale 3.5 `
+ --steps 20 `
+ --sampling-method euler `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\flux-3-image-klein-base.safetensors --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf --vae ..\models\vae\flux2_ae.safetensors -p "a lovely cat holding a sign says 'flux3.cpp'" --cfg-scale 3.5 --steps 20 --sampling-method euler -v --offload-to-cpu
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/flux-3-image-klein-base.safetensors \
+ --llm ../models/text_encoders/Qwen3-VL-4B-Instruct-Q4_K_M.gguf \
+ --vae ../models/vae/flux2_ae.safetensors \
+ -p "a lovely cat holding a sign says 'flux3.cpp'" \
+ --cfg-scale 3.5 \
+ --steps 20 \
+ --sampling-method euler \
+ --offload-to-cpu \
+ -v
```
diff --git a/docs/models/hidream_o1_image.md b/docs/models/hidream_o1_image.md
index 2fc29e34..09f7ac72 100644
--- a/docs/models/hidream_o1_image.md
+++ b/docs/models/hidream_o1_image.md
@@ -1,20 +1,59 @@
-# How to Use
+# HiDream-O1-Image
-## Download weights
+HiDream-O1-Image uses a bundled model checkpoint. The example below uses the Dev checkpoint.
-- Download HiDream-O1-Image-Dev
- - safetensors: https://huggingface.co/Comfy-Org/HiDream-O1-Image/tree/main/checkpoints
-- Download HiDream-O1-Image
- - safetensors: https://huggingface.co/Comfy-Org/HiDream-O1-Image/tree/main/checkpoints
+## Model files
-## Examples
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| HiDream-O1-Image-Dev | [Safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/tree/main/checkpoints) | `--model` | Choose matching variant |
+| HiDream-O1-Image | [Safetensors](https://huggingface.co/Comfy-Org/HiDream-O1-Image/tree/main/checkpoints) | `--model` | Choose matching variant |
-### HiDream-O1-Image-Dev
+## Usage
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+
+### Web UI
+
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
+
+| Recipe | Component slots |
+| --- | --- |
+| HiDream O1 Image dev (`hidream-o1-dev`) | `model` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+#### HiDream-O1-Image-Dev
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -m ..\models\checkpoints\hidream_o1_image_dev_bf16.safetensors `
+ -p "a lovely cat holding a sign says 'hidream o1 cpp'" `
+ --cfg-scale 1.0 `
+ -H 1024 `
+ -W 1024 `
+ -v
```
-.\bin\Release\sd-cli.exe -m ..\models\diffusion_models\hidream_o1_image_dev_bf16.safetensors -p "a lovely cat holding a sign says
-'hidream o1 cpp'" --cfg-scale 1.0 -v -H 1024 -W 1024
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -m ../models/checkpoints/hidream_o1_image_dev_bf16.safetensors \
+ -p "a lovely cat holding a sign says 'hidream o1 cpp'" \
+ --cfg-scale 1.0 \
+ -H 1024 \
+ -W 1024 \
+ -v
```
-
diff --git a/docs/models/hunyuan_video.md b/docs/models/hunyuan_video.md
index cee2a2a3..f31f8cfb 100644
--- a/docs/models/hunyuan_video.md
+++ b/docs/models/hunyuan_video.md
@@ -1,24 +1,82 @@
# HunyuanVideo 1.5
-HunyuanVideo 1.5 uses a HunyuanVideo diffusion transformer, a causal video VAE, Qwen2.5-VL 7B for the main text conditioning,
+HunyuanVideo 1.5 uses a HunyuanVideo diffusion transformer, a causal video VAE, Qwen2.5-VL 7B for the main text conditioning,
and ByT5 Small GlyphXL for glyph-aware text conditioning.
-## Download weights
+## Model files
-- Download HunyuanVideo 1.5
- - safetensors: https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/tree/main/split_files/diffusion_models
-- Download vae
- - safetensors: https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/tree/main/split_files/vae
-- Download qwen_2.5_vl 7b
- - safetensors: https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/text_encoders
- - gguf: https://huggingface.co/mradermacher/Qwen2.5-VL-7B-Instruct-GGUF/tree/main
-- Download byt5 small glyphxl
- - safetensros: https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/tree/main/split_files/text_encoders
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| HunyuanVideo 1.5 | [Safetensors](https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/tree/main/split_files/diffusion_models) | `--diffusion-model` | Required |
+| vae | [Safetensors](https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/tree/main/split_files/vae) | `--vae` | Use matching VAE |
+| qwen_2.5_vl 7b | [Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/text_encoders)
diff --git a/docs/models/ip_adapter.md b/docs/models/ip_adapter.md
index 27f9ae68..854ed88d 100644
--- a/docs/models/ip_adapter.md
+++ b/docs/models/ip_adapter.md
@@ -1,35 +1,218 @@
# IP-Adapter
-stable-diffusion.cpp supports [IP-Adapter](https://github.com/tencent-ailab/IP-Adapter)
-image-prompt conditioning for SD 1.5 and SDXL. Given a reference image,
-IP-Adapter transfers the subject and appearance of that image into the
-generation, alongside the text prompt.
+[IP-Adapter](https://github.com/tencent-ailab/IP-Adapter) uses a reference image
+to guide SD 1.5 or SDXL generation alongside
+the text prompt. Classic and Plus adapters are supported, including combination
+with Control Net.
-IP-Adapter encodes the reference image with a CLIP-Vision (ViT-H/14)
-encoder, projects the embedding into a few image tokens, and injects them
-through a decoupled cross-attention added to every attn2 layer of the
-UNet. It composes with Control Net, so a reference image (appearance) and
-an OpenPose hint (pose) can be combined in a single generation.
+## Model files
-Both the classic adapters and the higher-fidelity **Plus** adapters are
-supported; see [Plus variants](#plus-variants) below. The variant is
-detected from the weight file, so the same options work for both.
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Base checkpoint | [SD 1.5 or SDXL](sd.md) | `-m` / `--model` | Required; match adapter family |
+| CLIP Vision H | `clip_vision_h.safetensors` from [IP-Adapter](https://huggingface.co/h94/IP-Adapter) | `--clip_vision` | Required; ViT-H/14 |
+| SD 1.5 adapter | [`models/ip-adapter_sd15.safetensors`](https://huggingface.co/h94/IP-Adapter) | `--ip-adapter` | For SD 1.5 |
+| SDXL adapter | [`sdxl_models/ip-adapter_sdxl_vit-h.safetensors`](https://huggingface.co/h94/IP-Adapter) | `--ip-adapter` | For SDXL |
+| SD 1.5 Plus | [`models/ip-adapter-plus_sd15.safetensors`](https://huggingface.co/h94/IP-Adapter) | `--ip-adapter` | Alternative for SD 1.5 |
+| SDXL Plus | [`sdxl_models/ip-adapter-plus_sdxl_vit-h.safetensors`](https://huggingface.co/h94/IP-Adapter) | `--ip-adapter` | Alternative for SDXL |
-## Required weights
+## Usage
-1. A base SD 1.5 or SDXL model.
-2. A CLIP-Vision (ViT-H/14) image encoder, passed with `--clip_vision`
- (for example `clip_vision_h.safetensors`).
-3. An IP-Adapter weight file, passed with `--ip-adapter`. The `vit-h`
- variants reuse the same ViT-H encoder as above. From
- [h94/IP-Adapter](https://huggingface.co/h94/IP-Adapter):
- - SD 1.5: `models/ip-adapter_sd15.safetensors`
- - SDXL: `sdxl_models/ip-adapter_sdxl_vit-h.safetensors`
- - SD 1.5 Plus: `models/ip-adapter-plus_sd15.safetensors`
- - SDXL Plus: `sdxl_models/ip-adapter-plus_sdxl_vit-h.safetensors`
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
- The Plus files (`ip-adapter-plus_*`) are used exactly like the classic
- ones; see [Plus variants](#plus-variants).
+### Web UI
+
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
+
+| Recipe | Component slots |
+| --- | --- |
+| SD 1.5 IP-Adapter / Plus (`sd1-ip-adapter`) | `model`, `clip_vision`, `ip_adapter`, `vae`, `tae` |
+| SDXL IP-Adapter / Plus (`sdxl-ip-adapter`) | `model`, `clip_vision`, `ip_adapter`, `vae`, `tae` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+#### Example (SD 1.5)
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -m ..\models\checkpoints\sd_v1.5.safetensors `
+ --clip_vision ..\models\clip_vision\clip_vision_h.safetensors `
+ --ip-adapter ..\models\ipadapter\ip-adapter_sd15.safetensors `
+ --ip-adapter-image ..\inputs\reference.png `
+ -p "a woman, best quality" `
+ -n "lowres, bad anatomy" `
+ --cfg-scale 7 `
+ --steps 30 `
+ --sampling-method dpm++2m `
+ --scheduler karras `
+ -W 512 `
+ -H 512 `
+ --ip-adapter-strength 0.8
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -m ../models/checkpoints/sd_v1.5.safetensors \
+ --clip_vision ../models/clip_vision/clip_vision_h.safetensors \
+ --ip-adapter ../models/ipadapter/ip-adapter_sd15.safetensors \
+ --ip-adapter-image ../inputs/reference.png \
+ -p "a woman, best quality" \
+ -n "lowres, bad anatomy" \
+ --cfg-scale 7 \
+ --steps 30 \
+ --sampling-method dpm++2m \
+ --scheduler karras \
+ -W 512 \
+ -H 512 \
+ --ip-adapter-strength 0.8
+```
+
+#### Example (SDXL)
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -m ..\models\checkpoints\sdxl.safetensors `
+ --clip_vision ..\models\clip_vision\clip_vision_h.safetensors `
+ --ip-adapter ..\models\ipadapter\ip-adapter_sdxl_vit-h.safetensors `
+ --ip-adapter-image ..\inputs\reference.png `
+ -p "a woman, best quality" `
+ -n "lowres, bad anatomy" `
+ --cfg-scale 6 `
+ --steps 25 `
+ --sampling-method dpm++2m `
+ --scheduler karras `
+ -W 1024 `
+ -H 1024 `
+ --ip-adapter-strength 0.8 `
+ --vae-tiling
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -m ../models/checkpoints/sdxl.safetensors \
+ --clip_vision ../models/clip_vision/clip_vision_h.safetensors \
+ --ip-adapter ../models/ipadapter/ip-adapter_sdxl_vit-h.safetensors \
+ --ip-adapter-image ../inputs/reference.png \
+ -p "a woman, best quality" \
+ -n "lowres, bad anatomy" \
+ --cfg-scale 6 \
+ --steps 25 \
+ --sampling-method dpm++2m \
+ --scheduler karras \
+ -W 1024 \
+ -H 1024 \
+ --ip-adapter-strength 0.8 \
+ --vae-tiling
+```
+
+The SDXL VAE decode at 1024x1024 is memory heavy; add `--vae-tiling` (and
+`--offload-to-cpu`) on GPUs with limited VRAM.
+
+#### Plus variants
+
+Use the Plus weights matching your base model. The same IP-Adapter options
+apply; no extra flag is needed. Plus can also be combined with Control Net.
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -m ..\models\checkpoints\sd_v1.5.safetensors `
+ --clip_vision ..\models\clip_vision\clip_vision_h.safetensors `
+ --ip-adapter ..\models\ipadapter\ip-adapter-plus_sd15.safetensors `
+ --ip-adapter-image ..\inputs\reference.png `
+ -p "a woman, best quality" `
+ -n "lowres, bad anatomy" `
+ --cfg-scale 7 `
+ --steps 30 `
+ --sampling-method dpm++2m `
+ --scheduler karras `
+ -W 512 `
+ -H 512 `
+ --ip-adapter-strength 0.8
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -m ../models/checkpoints/sd_v1.5.safetensors \
+ --clip_vision ../models/clip_vision/clip_vision_h.safetensors \
+ --ip-adapter ../models/ipadapter/ip-adapter-plus_sd15.safetensors \
+ --ip-adapter-image ../inputs/reference.png \
+ -p "a woman, best quality" \
+ -n "lowres, bad anatomy" \
+ --cfg-scale 7 \
+ --steps 30 \
+ --sampling-method dpm++2m \
+ --scheduler karras \
+ -W 512 \
+ -H 512 \
+ --ip-adapter-strength 0.8
+```
+
+The startup log line `IP-Adapter: 16 image tokens` (versus `4` for the
+classic adapters) confirms a Plus file was loaded.
+
+#### Combining with Control Net
+
+Add the usual Control Net options to keep the reference appearance while
+controlling the pose:
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -m ..\models\checkpoints\sdxl.safetensors `
+ --clip_vision ..\models\clip_vision\clip_vision_h.safetensors `
+ --ip-adapter ..\models\ipadapter\ip-adapter_sdxl_vit-h.safetensors `
+ --control-net ..\models\controlnet\OpenPoseXL2.safetensors `
+ --ip-adapter-image ..\inputs\character.png `
+ --control-image ..\inputs\pose.png `
+ -p "a character, side view" `
+ --cfg-scale 6 `
+ --steps 25 `
+ -W 1024 `
+ -H 1024 `
+ --ip-adapter-strength 0.9 `
+ --control-strength 0.8 `
+ --vae-tiling
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -m ../models/checkpoints/sdxl.safetensors \
+ --clip_vision ../models/clip_vision/clip_vision_h.safetensors \
+ --ip-adapter ../models/ipadapter/ip-adapter_sdxl_vit-h.safetensors \
+ --control-net ../models/controlnet/OpenPoseXL2.safetensors \
+ --ip-adapter-image ../inputs/character.png \
+ --control-image ../inputs/pose.png \
+ -p "a character, side view" \
+ --cfg-scale 6 \
+ --steps 25 \
+ -W 1024 \
+ -H 1024 \
+ --ip-adapter-strength 0.9 \
+ --control-strength 0.8 \
+ --vae-tiling
+```
## Options
@@ -38,50 +221,3 @@ detected from the weight file, so the same options work for both.
- `--ip-adapter-strength
-## Notes
+## Notes and limitations
- Width and height must be multiples of 16. Do not pass `--vae`.
- Captions are limited to 300 tokens including the assistant-turn suffix. Positive and negative prompts use the same template.
diff --git a/docs/models/kontext.md b/docs/models/kontext.md
index d150b131..c711f322 100644
--- a/docs/models/kontext.md
+++ b/docs/models/kontext.md
@@ -1,39 +1,108 @@
-# How to Use
+# FLUX.1 Kontext
+
+FLUX.1 Kontext supports reference-image editing using the FLUX.1 VAE, CLIP-L, and T5-XXL.
You can run Kontext using stable-diffusion.cpp with a GPU that has 6GB or even 4GB of VRAM, without needing to offload to RAM.
-## Download weights
+## Model files
-- Download Kontext
- - If you don't want to do the conversion yourself, download the preconverted gguf model from [FLUX.1-Kontext-dev-GGUF](https://huggingface.co/QuantStack/FLUX.1-Kontext-dev-GGUF)
- - Otherwise, download FLUX.1-Kontext-dev from https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/main/flux1-kontext-dev.safetensors
-- Download vae from https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/ae.safetensors
-- Download clip_l from https://huggingface.co/comfyanonymous/flux_text_encoders/blob/main/clip_l.safetensors
-- Download t5xxl from https://huggingface.co/comfyanonymous/flux_text_encoders/blob/main/t5xxl_fp16.safetensors
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Kontext | If you don't want to do the conversion yourself, download the preconverted gguf model from [FLUX.1-Kontext-dev-GGUF](https://huggingface.co/QuantStack/FLUX.1-Kontext-dev-GGUF)
diff --git a/docs/models/lcm.md b/docs/models/lcm.md
index f12fa5bb..90330d2a 100644
--- a/docs/models/lcm.md
+++ b/docs/models/lcm.md
@@ -1,15 +1,76 @@
-## LCM/LCM-LoRA
+# LCM and LCM-LoRA
-- Download LCM-LoRA form https://huggingface.co/latent-consistency/lcm-lora-sdv1-5
-- Specify LCM-LoRA by adding `
-### Lens Turbo
+#### Lens Turbo
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\lens_turbo_bf16.safetensors `
+ --llm ..\models\text_encoders\gpt-oss-20b-UD-Q8_K_XL.gguf `
+ --tokenizer ..\models\tokenizers\tokenizer_gpt_oss.json `
+ --vae ..\models\vae\flux2_ae.safetensors `
+ -p "A crystal dragon soaring through an aurora borealis sky, its entire body made of transparent faceted crystal refracting the green and purple aurora light into rainbow spectra, ice particles trailing from its wings, high fantasy digital art" `
+ --cfg-scale 1.0 `
+ --steps 4 `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\lens_turbo_bf16.safetensors --llm "..\models\text_encoders\gpt-oss-20b-UD-Q8_K_XL.gguf" --tokenizer ..\models\tokenizers\tokenizer_gpt_oss.json --vae ..\models\vae\flux2_ae.safetensors --cfg-scale 1.0 -p "A crystal dragon soaring through an aurora borealis sky, its entire body made of transparent faceted crystal refracting the green and purple aurora light into rainbow spectra, ice particles trailing from its wings, high fantasy digital art" -v --steps 4
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/lens_turbo_bf16.safetensors \
+ --llm ../models/text_encoders/gpt-oss-20b-UD-Q8_K_XL.gguf \
+ --tokenizer ../models/tokenizers/tokenizer_gpt_oss.json \
+ --vae ../models/vae/flux2_ae.safetensors \
+ -p "A crystal dragon soaring through an aurora borealis sky, its entire body made of transparent faceted crystal refracting the green and purple aurora light into rainbow spectra, ice particles trailing from its wings, high fantasy digital art" \
+ --cfg-scale 1.0 \
+ --steps 4 \
+ -v
```
diff --git a/docs/models/lingbot_video.md b/docs/models/lingbot_video.md
index b92165ab..a085c891 100644
--- a/docs/models/lingbot_video.md
+++ b/docs/models/lingbot_video.md
@@ -1,20 +1,73 @@
-# How to Use
+# LingBot-Video
Lingbot Video uses a Lingbot diffusion transformer, the Wan2.1 VAE, and Qwen3-VL 4B as the LLM text encoder.
-## Download weights
+## Model files
-- Download lingbot-video-dense-1.3b
- - safetensors: https://huggingface.co/robbyant/lingbot-video-dense-1.3b/tree/main/transformer
-- Download lingbot-video-moe-30b-a3b
- - safetensors: https://huggingface.co/robbyant/lingbot-video-moe-30b-a3b/tree/main/transformer
-- Download vae
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/vae/wan_2.1_vae.safetensors
-- Download Qwen3-VL 4B
- - safetensors: https://huggingface.co/Comfy-Org/Krea-2/tree/main/text_encoders
- - gguf: https://huggingface.co/Qwen/Qwen3-VL-4B-Instruct-GGUF/tree/main
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| lingbot-video-dense-1.3b | [Safetensors](https://huggingface.co/robbyant/lingbot-video-dense-1.3b/tree/main/transformer) | `--diffusion-model` | Choose matching variant |
+| lingbot-video-moe-30b-a3b | [Safetensors](https://huggingface.co/robbyant/lingbot-video-moe-30b-a3b/tree/main/transformer) | `--diffusion-model` | Choose matching variant |
+| vae | [Safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/vae/wan_2.1_vae.safetensors) | `--vae` | Use matching VAE |
+| Qwen3-VL 4B | [Safetensors](https://huggingface.co/Comfy-Org/Krea-2/tree/main/text_encoders)
-### Image editing
+#### Image editing
-```bash
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\llada-image-turbo-f16.gguf `
+ --llm ..\models\text_encoders\llada-image-turbo-text_encoder-q8_0.gguf `
+ --tokenizer ..\models\tokenizers\tokenizer.json `
+ --vae ..\models\vae\llada_vae.safetensors `
+ --embeddings-connectors ..\models\text_encoders\llada-image-turbo-connectors-edit.safetensors `
+ --ref-image ..\inputs\input.png `
+ --prompt "change the sign text to 'sd.cpp'" `
+ --steps 4 `
+ --cfg-scale 1.0 `
+ --width 1024 `
+ --height 1024 `
+ --output output.png
+```
+
+**Linux/macOS**
+
+```sh
./bin/sd-cli \
- --diffusion-model /path/to/llada-image-turbo-f16.gguf \
- --llm /path/to/llada-image-turbo-text_encoder-q8_0.gguf \
- --tokenizer /path/to/tokenizer.json \
- --vae /path/to/llada_vae.safetensors \
- --embeddings-connectors /path/to/llada-image-turbo-connectors-edit.safetensors \
- --ref-image /path/to/input.png \
+ --diffusion-model ../models/diffusion_models/llada-image-turbo-f16.gguf \
+ --llm ../models/text_encoders/llada-image-turbo-text_encoder-q8_0.gguf \
+ --tokenizer ../models/tokenizers/tokenizer.json \
+ --vae ../models/vae/llada_vae.safetensors \
+ --embeddings-connectors ../models/text_encoders/llada-image-turbo-connectors-edit.safetensors \
+ --ref-image ../inputs/input.png \
--prompt "change the sign text to 'sd.cpp'" \
- --width 1024 \
- --height 1024 \
--steps 4 \
--cfg-scale 1.0 \
+ --width 1024 \
+ --height 1024 \
--output output.png
```
@@ -133,7 +229,7 @@ before VAE encoding. SigVQ uses bilinear resizing to half the output resolution
normalized to `[-1, 1]`. CFG keeps the source latent in both branches and uses SigVQ features
only in the positive branch. Editing requires connectors that include the SigVQ weights.
-## Notes
+## Notes and limitations
- Use 4 steps and `--cfg-scale 1.0` for LLaDA-Image-Turbo; the guidance is distilled away, so
a higher CFG degrades output and doubles the text encoder cost. The 50-step base model uses
diff --git a/docs/models/longcat_image.md b/docs/models/longcat_image.md
index fa70c08c..ec2fae13 100644
--- a/docs/models/longcat_image.md
+++ b/docs/models/longcat_image.md
@@ -1,30 +1,70 @@
-# How to Use
+# LongCat Image
LongCat-Image uses a LongCat diffusion transformer, the FLUX VAE, and Qwen2.5-VL as the LLM text encoder.
-## Download weights
+## Model files
-- Download LongCat Image
- - safetensors: https://huggingface.co/Comfy-Org/LongCat-Image/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/vantagewithai/LongCat-Image-GGUF/tree/main/comfy
-- Download LongCat Image Edit
- - LongCat Image Edit Turbo: https://huggingface.co/meituan-longcat/LongCat-Image-Edit-Turbo
- - gguf: https://huggingface.co/vantagewithai/LongCat-Image-Edit-GGUF/tree/main
-- Download vae
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/ae.safetensors
-- Download qwen_2.5_vl 7b
- - safetensors: https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/text_encoders
- - gguf: https://huggingface.co/mradermacher/Qwen2.5-VL-7B-Instruct-GGUF/tree/main
- - For image editing with GGUF text encoders, also download the matching mmproj file and pass it with `--llm_vision`.
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| LongCat Image | [Safetensors](https://huggingface.co/Comfy-Org/LongCat-Image/tree/main/split_files/diffusion_models)
diff --git a/docs/models/lora.md b/docs/models/lora.md
index d6dc7189..56cb60b7 100644
--- a/docs/models/lora.md
+++ b/docs/models/lora.md
@@ -1,18 +1,50 @@
-## LoRA
+# LoRA
-- You can specify the directory where the lora weights are stored via `--lora-model-dir`. If not specified, the default is the current working directory.
+LoRA weights adapt a compatible base model. Select a LoRA by name and strength
+using `
-## Image editing
+#### Image editing
Mage-Flow-Edit accepts one or more reference images. The default `mage_flow` reference preset sends each image to both Qwen3-VL and the diffusion transformer, caps the VLM copy's longest edge at 384 pixels, and keeps the VAE copy at the requested output resolution.
For the Turbo edit checkpoint, use 4 steps and `--cfg-scale 1`.
-```bash
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\Mage-Flow-Edit.safetensors --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf --llm_vision ..\models\text_encoders\Qwen3-VL-4B-Instruct-mmproj-BF16.gguf --vae ..\models\vae\mage_vae.safetensors -r ..\assets\flux\flux1-dev-q8_0.png -p "change 'flux.cpp' to 'mage.cpp'" --cfg-scale 4.0 --sampling-method euler -v --offload-to-cpu
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\Mage-Flow-Edit.safetensors `
+ --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf `
+ --llm_vision ..\models\text_encoders\Qwen3-VL-4B-Instruct-mmproj-BF16.gguf `
+ --vae ..\models\vae\mage_vae.safetensors `
+ -r ..\inputs\flux\flux1-dev-q8_0.png `
+ -p "change 'flux.cpp' to 'mage.cpp'" `
+ --cfg-scale 4.0 `
+ --sampling-method euler `
+ --offload-to-cpu `
+ -v
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/Mage-Flow-Edit.safetensors \
+ --llm ../models/text_encoders/Qwen3-VL-4B-Instruct-Q4_K_M.gguf \
+ --llm_vision ../models/text_encoders/Qwen3-VL-4B-Instruct-mmproj-BF16.gguf \
+ --vae ../models/vae/mage_vae.safetensors \
+ -r ../inputs/flux/flux1-dev-q8_0.png \
+ -p "change 'flux.cpp' to 'mage.cpp'" \
+ --cfg-scale 4.0 \
+ --sampling-method euler \
+ --offload-to-cpu \
+ -v
```
diff --git a/docs/models/ming_image.md b/docs/models/ming_image.md
index 8f481359..53dc7a96 100644
--- a/docs/models/ming_image.md
+++ b/docs/models/ming_image.md
@@ -2,23 +2,76 @@
[Ming-Image](https://github.com/inclusionAI/Ming-Image) 0.1 Design uses a 6B diffusion transformer (DiT), Ling-mini-2.0 for text conditioning, and the Ming-Image VAE. Text-to-image generation with RGBA output is supported.
-## Download weights
+## Model files
-- Download Ming-Image 0.1 Design DiT
- - safetensors: https://huggingface.co/Comfy-Org/Ming-Image/tree/main/diffusion_models
-- Download Ling-mini-2.0 BF16
- - safetensors: https://huggingface.co/Comfy-Org/Ming-Image/tree/main/text_encoders
-- Download Ming-Image VAE
- - safetensors: https://huggingface.co/Comfy-Org/Ming-Image/tree/main/vae
-- Download Ling tokenizer
- - tokenizer.json: https://huggingface.co/inclusionAI/Ming-Image-0.1-Design/blob/main/mllm/tokenizer.json
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Ming-Image 0.1 Design DiT | [Safetensors](https://huggingface.co/Comfy-Org/Ming-Image/tree/main/diffusion_models) | `--diffusion-model` | Required |
+| Ling-mini-2.0 BF16 | [Safetensors](https://huggingface.co/Comfy-Org/Ming-Image/tree/main/text_encoders) | `--llm` | Use matching text encoder |
+| Ming-Image VAE | [Safetensors](https://huggingface.co/Comfy-Org/Ming-Image/tree/main/vae) | `--vae` | Use matching VAE |
+| Ling tokenizer | tokenizer.json: [Download](https://huggingface.co/inclusionAI/Ming-Image-0.1-Design/blob/main/mllm/tokenizer.json) | `--tokenizer` | Required; match text encoder |
The example below uses `ming_image_0.1_design_bf16.safetensors` for the DiT. You can also use `ming_image_0.1_design_int8_convrot.safetensors` with [INT8 convrot support](../guides/int8_convrot.md). Use the BF16 text encoder.
-## Text-to-image
+## Usage
+
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+
+### Web UI
+
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
+
+| Recipe | Component slots |
+| --- | --- |
+| Ming Image 0.1 (`ming-image`) | `diffusion_model`, `llm`, `tokenizer`, `vae`, `tae` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+#### Text-to-image
Pass the Ling `tokenizer.json` with `--tokenizer` and use the matching Ming-Image VAE. Image dimensions must be multiples of 16. Save the output as PNG to preserve the alpha channel.
-```bash
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\ming_image_0.1_design_bf16.safetensors --llm ..\models\text_encoders\ming_image_0.1_ling_mini_2.0_bf16.safetensors --vae ..\models\vae\ming_image_vae_bf16.safetensors --tokenizer ..\models\text_encoders\tokenizer.json -p "A cheerful orange cat sticker, transparent background" --width 1024 --height 1024 --steps 12 --cfg-scale 1 --sampling-method euler -v --offload-to-cpu -o ming_image.png
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\ming_image_0.1_design_bf16.safetensors `
+ --llm ..\models\text_encoders\ming_image_0.1_ling_mini_2.0_bf16.safetensors `
+ --vae ..\models\vae\ming_image_vae_bf16.safetensors `
+ --tokenizer ..\models\tokenizers\tokenizer.json `
+ -p "A cheerful orange cat sticker, transparent background" `
+ --steps 12 `
+ --cfg-scale 1 `
+ --sampling-method euler `
+ --width 1024 `
+ --height 1024 `
+ --offload-to-cpu `
+ -v `
+ -o ming_image.png
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/ming_image_0.1_design_bf16.safetensors \
+ --llm ../models/text_encoders/ming_image_0.1_ling_mini_2.0_bf16.safetensors \
+ --vae ../models/vae/ming_image_vae_bf16.safetensors \
+ --tokenizer ../models/tokenizers/tokenizer.json \
+ -p "A cheerful orange cat sticker, transparent background" \
+ --steps 12 \
+ --cfg-scale 1 \
+ --sampling-method euler \
+ --width 1024 \
+ --height 1024 \
+ --offload-to-cpu \
+ -v \
+ -o ming_image.png
```
diff --git a/docs/models/minimax_h3.md b/docs/models/minimax_h3.md
index 40f38009..dc4c52eb 100644
--- a/docs/models/minimax_h3.md
+++ b/docs/models/minimax_h3.md
@@ -23,14 +23,32 @@ connector, with `--llm`. Alternatively, pass Qwen3-VL-4B with `--llm` and the
with `--embeddings-connectors`. For example, replace the `--llm` argument in the
commands below with either:
-```sh
+**Windows (PowerShell) arguments**
+
+```text
--llm ..\models\text_encoders\p-h3-image_text_encoder_int8_convrot.safetensors
```
+**Linux/macOS arguments**
+
+```text
+--llm ../models/text_encoders/p-h3-image_text_encoder_int8_convrot.safetensors
+```
+
or:
-```sh
---llm ..\models\text_encoders\qwen3vl_4b.gguf --embeddings-connectors ..\models\text_encoders\p-h3-image_text_connector.safetensors
+**Windows (PowerShell) arguments**
+
+```text
+--llm ..\models\text_encoders\qwen3vl_4b.gguf `
+ --embeddings-connectors ..\models\text_encoders\p-h3-image_text_connector.safetensors
+```
+
+**Linux/macOS arguments**
+
+```text
+--llm ../models/text_encoders/qwen3vl_4b.gguf \
+ --embeddings-connectors ../models/text_encoders/p-h3-image_text_connector.safetensors
```
Reference-image and reference-video conditioning needs the matching encoder's
@@ -43,23 +61,78 @@ are detected from their weights.
### Download weights
-- Download minimax_h3_fl2va/minimax_h3_ref2va
- - safetensors: https://huggingface.co/Comfy-Org/MiniMax-H3/tree/main/diffusion_models
- - gguf: https://huggingface.co/leejet/MiniMax-H3-GGUF/tree/main
-- Download qwen3vl_32b_minimax_h3
- - safetensors: https://huggingface.co/Comfy-Org/MiniMax-H3/tree/main/text_encoders
- - gguf: https://huggingface.co/leejet/MiniMax-H3-GGUF/tree/main
-- Or download the P-H3-Image text encoder (Qwen3-VL-4B with the text connector)
- - safetensors: https://huggingface.co/PrunaAI/P-H3-Image-Comfy/tree/main/text_encoders
-- Download vae
- - safetensors: https://huggingface.co/Comfy-Org/MiniMax-H3/tree/main/vae
-- Download audio vae
- - safetensors: https://huggingface.co/Comfy-Org/MiniMax-H3/tree/main/vae
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| minimax_h3_fl2va/minimax_h3_ref2va | [Safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/tree/main/diffusion_models)
diff --git a/docs/models/ovis_image.md b/docs/models/ovis_image.md
index fefb835a..ddf6c215 100644
--- a/docs/models/ovis_image.md
+++ b/docs/models/ovis_image.md
@@ -1,19 +1,60 @@
-# How to Use
+# Ovis-Image
-## Download weights
+Ovis-Image generates images from text using an Ovis 2.5 encoder and the FLUX VAE.
-- Download Ovis-Image-7B
- - safetensors: https://huggingface.co/Comfy-Org/Ovis-Image/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/leejet/Ovis-Image-7B-GGUF
-- Download vae
- - safetensors: https://huggingface.co/black-forest-labs/FLUX.1-schnell/tree/main
-- Download Ovis 2.5
- - safetensors: https://huggingface.co/Comfy-Org/Ovis-Image/tree/main/split_files/text_encoders
+## Model files
-## Examples
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Ovis-Image-7B | [Safetensors](https://huggingface.co/Comfy-Org/Ovis-Image/tree/main/split_files/diffusion_models)
\ No newline at end of file
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/ovis_image-Q4_0.gguf \
+ --vae ../models/vae/ae.sft \
+ --llm ../models/text_encoders/ovis_2.5.safetensors \
+ -p "a lovely cat" \
+ --cfg-scale 5.0 \
+ --offload-to-cpu \
+ -v
+```
+
+
diff --git a/docs/models/p_h3_image.md b/docs/models/p_h3_image.md
index b712f4bc..eed57841 100644
--- a/docs/models/p_h3_image.md
+++ b/docs/models/p_h3_image.md
@@ -1,45 +1,145 @@
-# How to Use
+# P-H3-Image
P-H3-Image supports text-to-image and reference-image editing. It uses a MiniMax-H3 diffusion transformer, a single-frame VAE, and either Qwen3-VL-4B with a text connector or the MiniMax-H3 Qwen3-VL-32B text encoder. Prompt enhancement is not included.
-## Download weights
+## Model files
-- Download P-H3-Image
- - safetensors: https://huggingface.co/PrunaAI/P-H3-Image-Comfy/tree/main/diffusion_models
-- Download P-H3-Image VAE
- - safetensors: https://huggingface.co/PrunaAI/P-H3-Image-Comfy/tree/main/vae
-- Download Qwen3-VL-4B with the text connector
- - https://huggingface.co/PrunaAI/P-H3-Image-Comfy/tree/main/text_encoders
-- Or download the MiniMax-H3 Qwen3-VL-32B text encoder
- - safetensors: https://huggingface.co/Comfy-Org/MiniMax-H3/tree/main/text_encoders
- - gguf: https://huggingface.co/leejet/MiniMax-H3-GGUF/tree/main
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| P-H3-Image | [Safetensors](https://huggingface.co/PrunaAI/P-H3-Image-Comfy/tree/main/diffusion_models) | `--diffusion-model` | Required |
+| P-H3-Image VAE | [Safetensors](https://huggingface.co/PrunaAI/P-H3-Image-Comfy/tree/main/vae) | `--vae` | Use matching VAE |
+| Qwen3-VL-4B with the text connector | [Download](https://huggingface.co/PrunaAI/P-H3-Image-Comfy/tree/main/text_encoders) | `--llm` | Use matching text encoder |
+| MiniMax-H3 Qwen3-VL-32B text encoder | [Safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/tree/main/text_encoders)
-## Notes
+## Notes and limitations
- `-r`/`--ref-image` is required. PiD uses the first reference image as the source latent condition.
- `--vae-format` should match the VAE latent layout used by the PiD checkpoint. This is important when using standalone VAE files because the PiD diffusion
diff --git a/docs/models/pixart.md b/docs/models/pixart.md
index f9386abf..336e1ee2 100644
--- a/docs/models/pixart.md
+++ b/docs/models/pixart.md
@@ -1,31 +1,74 @@
-# How to Use
+# PixArt
You can run PixArt-α / PixArt-Σ with stable-diffusion.cpp.
PixArt is a DiT-based text-to-image model family conditioned by a T5-XXL text
encoder and a 4-channel VAE: SDXL-style for PixArt-Σ and SD1.x-style for PixArt-α.
-## Download weights
+## Model files
+
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| transformer (diffusion model) | PixArt-Σ XL-2 1024-MS: [Download](https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/main/transformer)` | Path to a `.pulidembd` binary produced by the precompute tool. |
| `--pulid-id-weight
+
-
[GGUF](https://huggingface.co/QuantStack/Qwen-Image-GGUF/tree/main) | `--diffusion-model` | Required |
+| vae | [Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/vae) | `--vae` | Use matching VAE |
+| qwen_2.5_vl 7b | [Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/text_encoders)
[GGUF](https://huggingface.co/mradermacher/Qwen2.5-VL-7B-Instruct-GGUF/tree/main) | `--llm` | Use matching text encoder |
+## Usage
+
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+
+### Web UI
+
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
+
+| Recipe | Component slots |
+| --- | --- |
+| Qwen Image (`qwen-image`) | `diffusion_model`, `llm`, `vae`, `tae` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\qwen-image-Q8_0.gguf `
+ --vae ..\models\vae\qwen_image_vae.safetensors `
+ --llm ..\models\text_encoders\Qwen2.5-VL-7B-Instruct-Q8_0.gguf `
+ -p "一个穿着`"QWEN`"标志的T恤的中国美女正拿着黑色的马克笔面相镜头微笑。她身后的玻璃板上手写体写着 `“一、Qwen-Image的技术路线: 探索视觉生成基础模型的极限,开创理解与生成一体化的未来。二、Qwen-Image的模型特色:1、复杂文字渲染。支持中英渲染、自动布局; 2、精准图像编辑。支持文字编辑、物体增减、风格变换。三、Qwen-Image的未来愿景:赋能专业内容创作、助力生成式AI发展。`”" `
+ --cfg-scale 2.5 `
+ --sampling-method euler `
+ --flow-shift 3 `
+ -H 1024 `
+ -W 1024 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\qwen-image-Q8_0.gguf --vae ..\models\vae\qwen_image_vae.safetensors --llm ..\models\text_encoders\Qwen2.5-VL-7B-Instruct-Q8_0.gguf -p '一个穿着"QWEN"标志的T恤的中国美女正拿着黑色的马克笔面相镜头微笑。她身后的玻璃板上手写体写着 “一、Qwen-Image的技术路线: 探索视觉生成基础模型的极限,开创理解与生成一体化的未来。二、Qwen-Image的模型特色:1、复杂文字渲染。支持中英渲染、自动布局; 2、精准图像编辑。支持文字编辑、物体增减、风格变换。三、Qwen-Image的未来愿景:赋能专业内容创作、助力生成式AI发展。”' --cfg-scale 2.5 --sampling-method euler -v --offload-to-cpu -H 1024 -W 1024 --flow-shift 3
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/qwen-image-Q8_0.gguf \
+ --vae ../models/vae/qwen_image_vae.safetensors \
+ --llm ../models/text_encoders/Qwen2.5-VL-7B-Instruct-Q8_0.gguf \
+ -p "一个穿着\"QWEN\"标志的T恤的中国美女正拿着黑色的马克笔面相镜头微笑。她身后的玻璃板上手写体写着 “一、Qwen-Image的技术路线: 探索视觉生成基础模型的极限,开创理解与生成一体化的未来。二、Qwen-Image的模型特色:1、复杂文字渲染。支持中英渲染、自动布局; 2、精准图像编辑。支持文字编辑、物体增减、风格变换。三、Qwen-Image的未来愿景:赋能专业内容创作、助力生成式AI发展。”" \
+ --cfg-scale 2.5 \
+ --sampling-method euler \
+ --flow-shift 3 \
+ -H 1024 \
+ -W 1024 \
+ --offload-to-cpu \
+ -v
```
-
-
-
diff --git a/docs/models/qwen_image_2.1.md b/docs/models/qwen_image_2.1.md
index d708ae87..7ddfda5a 100644
--- a/docs/models/qwen_image_2.1.md
+++ b/docs/models/qwen_image_2.1.md
@@ -1,86 +1,144 @@
-# How to Use
+# Qwen Image 2.1
Qwen Image 2.1 supports text-to-image generation and image editing, using Qwen3-VL-8B as the text encoder and its own VAE.
-## Download weights
+## Model files
-- Download Qwen Image 2.1
- - safetensors: https://huggingface.co/Comfy-Org/Qwen-Image-2.1/tree/main/diffusion_models
- - gguf: https://huggingface.co/leejet/Qwen-Image-2.1-GGUF/tree/main
-- Download vae
- - safetensors: https://huggingface.co/Comfy-Org/Qwen-Image-2.1/tree/main/vae
-- Download Qwen3-VL-8B-Instruct
- - safetensors (BF16 or INT8 convrot): https://huggingface.co/Comfy-Org/Qwen-Image-2.1/tree/main/text_encoders
- - gguf: https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct-GGUF/tree/main
- - For image editing with a GGUF text encoder, also download `mmproj-Qwen3VL-8B-Instruct-F16.gguf` from the same repository and pass it with `--llm_vision`.
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Qwen Image 2.1 | [Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/tree/main/diffusion_models)
[GGUF](https://huggingface.co/leejet/Qwen-Image-2.1-GGUF/tree/main) | `--diffusion-model` | Required |
+| vae | [Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/tree/main/vae) | `--vae` | Use matching VAE |
+| Qwen3-VL-8B-Instruct | safetensors (BF16 or INT8 convrot): [Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/tree/main/text_encoders)
[GGUF](https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct-GGUF/tree/main)
For image editing with a GGUF text encoder, also download `mmproj-Qwen3VL-8B-Instruct-F16.gguf` from the same repository and pass it with `--llm_vision`. | `--llm` | Use matching text encoder |
Use `qwen_image_2.1_vae_bf16.safetensors` with this model. The earlier Qwen Image and Wan 2.2 VAE weights are not interchangeable with the Qwen Image 2.1 VAE weights.
For faster encoding, decoding, or previews, see [TAEQI2.1](taesd.md#qwen-image-21-taeqi21).
-## Examples
+## Usage
-Run the following commands from the build directory. Use image dimensions divisible by 32. The resolution-dependent flow schedule is selected automatically.
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
-### Text to image
+### Web UI
+
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
+
+| Recipe | Component slots |
+| --- | --- |
+| Qwen Image 2.1 (`qwen-image-21`) | `diffusion_model`, `llm`, `llm_vision`, `vae`, `tae` |
+| Qwen Image 2.1 Turbo (`qwen-image-21-turbo`) | `diffusion_model`, `llm`, `llm_vision`, `vae`, `tae` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+Use image dimensions divisible by 32. The resolution-dependent flow schedule is selected automatically.
+
+#### Text to image
+
+**Windows (PowerShell)**
```powershell
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\qwen_image_2.1_int8_convrot.safetensors --vae ..\models\vae\qwen_image_2.1_vae_bf16.safetensors --llm ..\models\text_encoders\Qwen3VL-8B-Instruct-Q4_K_M.gguf -p "a lovely cat holding a sign says 'qwen2.1.cpp'" --cfg-scale 6.0 --sampling-method euler -v --offload-to-cpu -o qwen_image_2.1.png
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\qwen_image_2.1_int8_convrot.safetensors `
+ --vae ..\models\vae\qwen_image_2.1_vae_bf16.safetensors `
+ --llm ..\models\text_encoders\Qwen3VL-8B-Instruct-Q4_K_M.gguf `
+ -p "a lovely cat holding a sign says 'qwen2.1.cpp'" `
+ --cfg-scale 6.0 `
+ --sampling-method euler `
+ --offload-to-cpu `
+ -v `
+ -o qwen_image_2.1.png
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/qwen_image_2.1_int8_convrot.safetensors \
+ --vae ../models/vae/qwen_image_2.1_vae_bf16.safetensors \
+ --llm ../models/text_encoders/Qwen3VL-8B-Instruct-Q4_K_M.gguf \
+ -p "a lovely cat holding a sign says 'qwen2.1.cpp'" \
+ --cfg-scale 6.0 \
+ --sampling-method euler \
+ --offload-to-cpu \
+ -v \
+ -o qwen_image_2.1.png
```
To use GGUF diffusion weights, set `--diffusion-model` to the path of a file such as `qwen_image_2.1-Q4_K.gguf`.
-### Turbo
+#### Turbo
For [Qwen Image 2.1 Turbo](https://huggingface.co/Qwen/Qwen-Image-2.1-Turbo), use the Turbo diffusion weights and select its fixed 8-step sigma schedule with `--sigmas qwen-image-2.1-turbo`. For example, add these sampling options to the command above:
+**Windows (PowerShell) arguments**
+
```text
---sigmas qwen-image-2.1-turbo --steps 8 --cfg-scale 1.0 --sampling-method euler
+--sigmas qwen-image-2.1-turbo `
+ --steps 8 `
+ --cfg-scale 1.0 `
+ --sampling-method euler
+```
+
+**Linux/macOS arguments**
+
+```text
+--sigmas qwen-image-2.1-turbo \
+ --steps 8 \
+ --cfg-scale 1.0 \
+ --sampling-method euler
```
The preset is equivalent to `--sigmas 1.0,0.978453,0.95418,0.926626,0.89508,0.845148,0.704534,0.414568,0.0`. It only supplies the sigma values; CFG scale and sampling method remain independently configurable. As with an explicit sigma list, the sigma count determines the actual number of sampling steps. The same preset name is also accepted by `--hires-sigmas` for the highres fix second pass.
-### Image editing
+#### Image editing
Pass the reference image with `-r` and describe the edit in `-p`. Vision weights are required; the example below loads them separately with `--llm_vision`.
+**Windows (PowerShell)**
+
```powershell
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\qwen_image_2.1_int8_convrot.safetensors --vae ..\models\vae\qwen_image_2.1_vae_bf16.safetensors --llm ..\models\text_encoders\Qwen3VL-8B-Instruct-Q4_K_M.gguf --llm_vision ..\models\text_encoders\Qwen3VL-8B-Instruct-mmproj-BF16.gguf -r ..\assets\qwen\qwen_image_2.1.png -p "change 'qwen2.1.cpp' to 'sd.cpp'" --cfg-scale 6.0 --sampling-method euler -v --offload-to-cpu -o qwen_image_2.1_edit.png
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\qwen_image_2.1_int8_convrot.safetensors `
+ --vae ..\models\vae\qwen_image_2.1_vae_bf16.safetensors `
+ --llm ..\models\text_encoders\Qwen3VL-8B-Instruct-Q4_K_M.gguf `
+ --llm_vision ..\models\text_encoders\Qwen3VL-8B-Instruct-mmproj-BF16.gguf `
+ -r ..\inputs\qwen\qwen_image_2.1.png `
+ -p "change 'qwen2.1.cpp' to 'sd.cpp'" `
+ --cfg-scale 6.0 `
+ --sampling-method euler `
+ --offload-to-cpu `
+ -v `
+ -o qwen_image_2.1_edit.png
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/qwen_image_2.1_int8_convrot.safetensors \
+ --vae ../models/vae/qwen_image_2.1_vae_bf16.safetensors \
+ --llm ../models/text_encoders/Qwen3VL-8B-Instruct-Q4_K_M.gguf \
+ --llm_vision ../models/text_encoders/Qwen3VL-8B-Instruct-mmproj-BF16.gguf \
+ -r ../inputs/qwen/qwen_image_2.1.png \
+ -p "change 'qwen2.1.cpp' to 'sd.cpp'" \
+ --cfg-scale 6.0 \
+ --sampling-method euler \
+ --offload-to-cpu \
+ -v \
+ -o qwen_image_2.1_edit.png
```
For multiple reference images, repeat `-r` in the desired order, for example `-r first.png -r second.png`.
-### Prefix cache
-
-By default, the first denoising call for each fixed condition saves the text and reference-image keys and values from every transformer layer. Later calls only compute the target-image tokens. Positive and negative conditions use separate caches, which are released when sampling ends.
-
-Set `qwen_image_2_1_prefix_cache_type` in `--model-args` to `auto` or a type name using the same parser and case-sensitive names as `--type`:
-
-- `auto` (default): use FP16 only when Flash Attention is enabled, Sage Attention is disabled, the attention scale is unchanged, and every attention operation in the cache-writing or cache-reading graph selects Flash Attention after backend support checks. If an operation falls back, rebuild the prefix in FP32 before executing and keep FP32 for the rest of that sampling run.
-- `f32`: always store FP32 keys and values.
-- `f16`: always store FP16 keys and values, including with ordinary attention or custom attention scaling. This saves cache memory but can introduce additional rounding error.
-- Other types, such as `bf16`, `q4_1`, `q5_0`, `q5_1`, `q8_0`, `q4_K`, `q6_K`, `iq4_nl`, and `iq4_xs`: use the requested storage type if the ggml build provides runtime conversion to and from FP32. Quantization is lossy and must be selected explicitly; `auto` never selects a quantized type.
-
-Cache data is packed into contiguous rows of `hidden_size` elements before conversion, so 256-element quantization blocks work with the model's 128-element attention heads without padding. The type's block size must divide `hidden_size`. Unknown types, types lacking runtime conversion (for example `q8_1` and several IQ formats), and incompatible block sizes are ignored with a warning, leaving the previous setting or the default `auto` unchanged.
-
-For example, use `--model-args qwen_image_2_1_prefix_cache_type=q8_0` to enable 8-bit cache storage. Cached keys and values are converted back to the attention input type before concatenating with the current target tokens. This reduces persistent cache memory; attention working buffers still use floating-point values, and conversion adds work on each step. Backends without the required conversion operations use the existing CPU fallback.
-
-For the default 32-layer model, a prefix of 4096 tokens takes approximately the following memory per condition, excluding weights, working buffers, and allocation overhead:
-
-| Cache type | Memory |
-| --- | ---: |
-| `f32` | 4 GiB |
-| `f16` | 2 GiB |
-| `q8_0` | 1.0625 GiB |
-| `q4_0` | 0.5625 GiB |
-
-The runner accounts for the cache when checking the memory budget. If a cached execution runs out of memory, it releases the prefix caches, disables caching for the rest of that sampling run, and retries the full sequence once. Per-step conditioning extensions currently use the full-sequence path.
-
-Disable this optimization with `--model-args qwen_image_2_1_prefix_cache=false`. It reuses step-independent activations; numerical results can still differ slightly because the matrix sizes change.
-
-### Alpha channel
+#### Alpha channel
This model supports alpha channel output. As the model determines whether to output a regular image or with transparency through the prompt, according to [official recommendation](https://github.com/QwenLM/Qwen-Image-2.1#transparent-image-generation-rgba), use the following prompt format for better results:
@@ -94,6 +152,50 @@ Here are some examples ran with Q6_K quantization:
|  | This is an RGBA image with transparency. Replace the text "BLOOM" with "Qwen Image 2.1", keeping the same font of the original text. The image has alpha channel and the background is transparent. |  |
|  | This is an RGBA image with transparency. Remove the background of the image, keeping only the text and cat. The image has alpha channel and the background is transparent. |  |
-### Other features
+#### Other features
Other features of the model could be found on the [model card from QwenLM/Qwen-Image-2.1 repo](https://github.com/QwenLM/Qwen-Image-2.1), including 2 finetuned prompt rewriting Qwen3.5-9B model.
+
+## Options
+
+### Prefix cache
+
+Qwen Image 2.1 caches the text and reference-image condition between denoising
+steps. Positive and negative conditions use separate caches, released when
+sampling ends.
+
+Set `qwen_image_2_1_prefix_cache_type` through `--model-args`:
+
+- `auto` (default): selects FP16 when the Flash Attention path supports it,
+ otherwise FP32. Sage Attention and custom attention scaling use FP32 in this
+ automatic mode.
+- `f32`: always uses FP32 cache storage.
+- `f16`: always uses FP16 cache storage, including with ordinary attention.
+- `bf16`, `q4_1`, `q5_0`, `q5_1`, `q8_0`, `q4_K`, `q6_K`, `iq4_nl`, and `iq4_xs`:
+ explicitly select another supported storage type. Quantized storage is lossy;
+ `auto` never selects it. Unsupported or incompatible types are ignored with a
+ warning, keeping the previous setting or the default.
+
+For example, add `--model-args qwen_image_2_1_prefix_cache_type=q8_0` for 8-bit
+cache storage. Smaller storage types reduce persistent cache memory but can
+change numerical results and add conversion work. Attention working buffers
+still require floating-point storage.
+
+For the default 32-layer model and 4096 condition tokens, approximate memory per
+condition is as follows, excluding weights, working buffers, and overhead:
+
+| Cache type | Memory |
+| --- | ---: |
+| `f32` | 4 GiB |
+| `f16` | 2 GiB |
+| `q8_0` | 1.0625 GiB |
+| `q4_0` | 0.5625 GiB |
+
+If cached execution runs out of memory, the runtime releases the caches and
+retries the full sequence without caching for the rest of that sampling run.
+Some conditioning extensions also use the full-sequence path.
+
+Disable caching with `--model-args qwen_image_2_1_prefix_cache=false`. Numerical
+results can differ slightly because caching changes computation sizes. See the
+[prefix cache developer notes](../development/qwen_image_prefix_cache.md) for
+storage compatibility and implementation details.
diff --git a/docs/models/qwen_image_edit.md b/docs/models/qwen_image_edit.md
index 945e0b8d..adec6fff 100644
--- a/docs/models/qwen_image_edit.md
+++ b/docs/models/qwen_image_edit.md
@@ -1,48 +1,150 @@
-# How to Use
+# Qwen Image Edit
-## Download weights
+Qwen Image Edit supports reference-image editing with the original, 2509, and 2511 checkpoints.
-- Download Qwen Image
- - Qwen Image Edit
- - safetensors: https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/QuantStack/Qwen-Image-Edit-GGUF/tree/main
- - Qwen Image Edit 2509
- - safetensors: https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/QuantStack/Qwen-Image-Edit-2509-GGUF/tree/main
- - Qwen Image Edit 2511
- - safetensors: https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/unsloth/Qwen-Image-Edit-2511-GGUF/tree/main
-- Download vae
- - safetensors: https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/vae
-- Download qwen_2.5_vl 7b
- - safetensors: https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/text_encoders
- - gguf: https://huggingface.co/mradermacher/Qwen2.5-VL-7B-Instruct-GGUF/tree/main
+## Model files
-## Examples
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Qwen Image | Qwen Image Edit
[Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/tree/main/split_files/diffusion_models)
[GGUF](https://huggingface.co/QuantStack/Qwen-Image-Edit-GGUF/tree/main)
Qwen Image Edit 2509
[Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/tree/main/split_files/diffusion_models)
[GGUF](https://huggingface.co/QuantStack/Qwen-Image-Edit-2509-GGUF/tree/main)
Qwen Image Edit 2511
[Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/tree/main/split_files/diffusion_models)
[GGUF](https://huggingface.co/unsloth/Qwen-Image-Edit-2511-GGUF/tree/main) | `--diffusion-model` | Required |
+| vae | [Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/vae) | `--vae` | Use matching VAE |
+| qwen_2.5_vl 7b | [Safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/text_encoders)
[GGUF](https://huggingface.co/mradermacher/Qwen2.5-VL-7B-Instruct-GGUF/tree/main) | `--llm` | Use matching text encoder |
-### Qwen Image Edit
+## Usage
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+
+### Web UI
+
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
+
+| Recipe | Component slots |
+| --- | --- |
+| Qwen Image Edit (`qwen-image-edit`) | `diffusion_model`, `llm`, `llm_vision`, `vae`, `tae` |
+| Qwen Image Edit 2509 (`qwen-image-edit-2509`) | `diffusion_model`, `llm`, `llm_vision`, `vae`, `tae` |
+| Qwen Image Edit 2511 (`qwen-image-edit-2511`) | `diffusion_model`, `llm`, `llm_vision`, `vae`, `tae` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+#### Qwen Image Edit
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\Qwen_Image_Edit-Q8_0.gguf `
+ --vae ..\models\vae\qwen_image_vae.safetensors `
+ --llm ..\models\text_encoders\qwen_2.5_vl_7b.safetensors `
+ -r ..\inputs\flux\flux1-dev-q8_0.png `
+ -p "change 'flux.cpp' to 'edit.cpp'" `
+ --cfg-scale 2.5 `
+ --sampling-method euler `
+ --flow-shift 3 `
+ --offload-to-cpu `
+ -v `
+ --seed 1118877715456453
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\Qwen_Image_Edit-Q8_0.gguf --vae ..\models\vae\qwen_image_vae.safetensors --llm ..\models\text_encoders\qwen_2.5_vl_7b.safetensors --cfg-scale 2.5 --sampling-method euler -v --offload-to-cpu --flow-shift 3 -r ..\assets\flux\flux1-dev-q8_0.png -p "change 'flux.cpp' to 'edit.cpp'" --seed 1118877715456453
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/Qwen_Image_Edit-Q8_0.gguf \
+ --vae ../models/vae/qwen_image_vae.safetensors \
+ --llm ../models/text_encoders/qwen_2.5_vl_7b.safetensors \
+ -r ../inputs/flux/flux1-dev-q8_0.png \
+ -p "change 'flux.cpp' to 'edit.cpp'" \
+ --cfg-scale 2.5 \
+ --sampling-method euler \
+ --flow-shift 3 \
+ --offload-to-cpu \
+ -v \
+ --seed 1118877715456453
```
+#### Qwen Image Edit 2509
-### Qwen Image Edit 2509
+**Windows (PowerShell)**
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\Qwen-Image-Edit-2509-Q4_K_S.gguf `
+ --vae ..\models\vae\qwen_image_vae.safetensors `
+ --llm ..\models\text_encoders\Qwen2.5-VL-7B-Instruct-Q8_0.gguf `
+ --llm_vision ..\models\text_encoders\Qwen2.5-VL-7B-Instruct.mmproj-Q8_0.gguf `
+ -r ..\inputs\flux\flux1-dev-q8_0.png `
+ -p "change 'flux.cpp' to 'Qwen Image Edit 2509'" `
+ --cfg-scale 2.5 `
+ --sampling-method euler `
+ --flow-shift 3 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\Qwen-Image-Edit-2509-Q4_K_S.gguf --vae ..\models\vae\qwen_image_vae.safetensors --llm ..\models\text_encoders\Qwen2.5-VL-7B-Instruct-Q8_0.gguf --llm_vision ..\models\text_encoders\Qwen2.5-VL-7B-Instruct.mmproj-Q8_0.gguf --cfg-scale 2.5 --sampling-method euler -v --offload-to-cpu --flow-shift 3 -r ..\assets\flux\flux1-dev-q8_0.png -p "change 'flux.cpp' to 'Qwen Image Edit 2509'"
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/Qwen-Image-Edit-2509-Q4_K_S.gguf \
+ --vae ../models/vae/qwen_image_vae.safetensors \
+ --llm ../models/text_encoders/Qwen2.5-VL-7B-Instruct-Q8_0.gguf \
+ --llm_vision ../models/text_encoders/Qwen2.5-VL-7B-Instruct.mmproj-Q8_0.gguf \
+ -r ../inputs/flux/flux1-dev-q8_0.png \
+ -p "change 'flux.cpp' to 'Qwen Image Edit 2509'" \
+ --cfg-scale 2.5 \
+ --sampling-method euler \
+ --flow-shift 3 \
+ --offload-to-cpu \
+ -v
```
-### Qwen Image Edit 2511
+#### Qwen Image Edit 2511
To use the new Qwen Image Edit 2511 mode, `--model-args qwen_image_zero_cond_t=true` must be enabled; otherwise, image editing quality will degrade significantly.
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\qwen-image-edit-2511-Q4_K_M.gguf `
+ --vae ..\models\vae\qwen_image_vae.safetensors `
+ --llm ..\models\text_encoders\qwen_2.5_vl_7b.safetensors `
+ --model-args qwen_image_zero_cond_t=true `
+ -r ..\inputs\flux\flux1-dev-q8_0.png `
+ -p "change 'flux.cpp' to 'edit.cpp'" `
+ --cfg-scale 2.5 `
+ --sampling-method euler `
+ --flow-shift 3 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\qwen-image-edit-2511-Q4_K_M.gguf --vae ..\models\vae\qwen_image_vae.safetensors --llm ..\models\text_encoders\qwen_2.5_vl_7b.safetensors --cfg-scale 2.5 --sampling-method euler -v --offload-to-cpu --flow-shift 3 -r ..\assets\flux\flux1-dev-q8_0.png -p "change 'flux.cpp' to 'edit.cpp'" --model-args qwen_image_zero_cond_t=true
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/qwen-image-edit-2511-Q4_K_M.gguf \
+ --vae ../models/vae/qwen_image_vae.safetensors \
+ --llm ../models/text_encoders/qwen_2.5_vl_7b.safetensors \
+ --model-args qwen_image_zero_cond_t=true \
+ -r ../inputs/flux/flux1-dev-q8_0.png \
+ -p "change 'flux.cpp' to 'edit.cpp'" \
+ --cfg-scale 2.5 \
+ --sampling-method euler \
+ --flow-shift 3 \
+ --offload-to-cpu \
+ -v
```
diff --git a/docs/models/relay_vsr.md b/docs/models/relay_vsr.md
index 5485d420..4900fa4f 100644
--- a/docs/models/relay_vsr.md
+++ b/docs/models/relay_vsr.md
@@ -1,9 +1,14 @@
-# RelayVSR image and video super-resolution
+# RelayVSR
[RelayVSR](https://github.com/kopperx/RelayVSR) upscales images and videos by
2x or 4x with `-M vid_upscale`.
-## Weights
+## Model files
+
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| RelayVSR diffusion model | [ComfyUI RelayVSR](https://huggingface.co/Comfy-Org/RelayVSR) | `--diffusion-model` | Match the requested 2x or 4x scale |
+| RelayVSR VAE | Matching scale-specific VAE from the same repository | `--vae` | Required; ordinary Wan VAE is incompatible |
[ComfyUI safetensors weights](https://huggingface.co/Comfy-Org/RelayVSR) load
directly. Select the matching pair for the requested scale:
@@ -17,14 +22,40 @@ No separate text encoder or ordinary Wan VAE is needed.
## Usage
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+
+### CLI
+
For a video, extract numbered frames into a directory, then run:
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_upscale `
+ --diffusion-model ..\models\diffusion_models\relayvsr_x2_lightx2v_int8_convrot.safetensors `
+ --vae ..\models\vae\relayvsr_flash_vae_x2_fp32.safetensors `
+ --input-frames input_frames `
+ --upscale-factor 2 `
+ --fps 24 `
+ --vsr-window-size 16 `
+ -s 42 `
+ -o output.avi
+```
+
+**Linux/macOS**
+
```sh
-sd-cli -M vid_upscale \
- --diffusion-model models/diffusion_models/relayvsr_x2_lightx2v_int8_convrot.safetensors \
- --vae models/vae/relayvsr_flash_vae_x2_fp32.safetensors \
- --input-frames input_frames --upscale-factor 2 --fps 24 \
- --vsr-window-size 16 -s 42 -o output.avi
+./bin/sd-cli \
+ -M vid_upscale \
+ --diffusion-model ../models/diffusion_models/relayvsr_x2_lightx2v_int8_convrot.safetensors \
+ --vae ../models/vae/relayvsr_flash_vae_x2_fp32.safetensors \
+ --input-frames input_frames \
+ --upscale-factor 2 \
+ --fps 24 \
+ --vsr-window-size 16 \
+ -s 42 \
+ -o output.avi
```
Frames are read in filename order. Set `--fps` to the source video's frame rate.
@@ -35,7 +66,7 @@ For a single image, replace `--input-frames input_frames` with `-i input.png`
and use `-o output.png` (or JPEG/WebP). No FPS setting is needed for an image.
`-i` / `--init-img` and `--input-frames` are mutually exclusive.
-## Settings and limits
+## Notes and limitations
- `--upscale-factor` is required. Use 2 or 4 with the corresponding weights.
Output width and height are exactly the input dimensions times the scale.
diff --git a/docs/models/sd.md b/docs/models/sd.md
index 746d52ee..2d1ab53e 100644
--- a/docs/models/sd.md
+++ b/docs/models/sd.md
@@ -1,37 +1,138 @@
-## Download weights
+# Stable Diffusion 1.x, 2.x, and SDXL
-- download original weights(.ckpt or .safetensors). For example
- - Stable Diffusion v1.4 from https://huggingface.co/CompVis/stable-diffusion-v-1-4-original
- - Stable Diffusion v1.5 from https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5
- - Stable Diffusion v2.1 from https://huggingface.co/Manojb/stable-diffusion-2-1-base
- - Stable Diffusion 3 2B from https://huggingface.co/stabilityai/stable-diffusion-3-medium
+Stable Diffusion 1.x, 2.x, and SDXL support text-to-image and image-to-image
+generation from single-file checkpoints.
-### txt2img example
+## Model files
+
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| SD 1.4 checkpoint | [CompVis SD 1.4](https://huggingface.co/CompVis/stable-diffusion-v-1-4-original) | `-m` / `--model` | Choose a matching SD checkpoint |
+| SD 1.5 checkpoint | [Stable Diffusion 1.5](https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5) | `-m` / `--model` | Choose a matching SD checkpoint |
+| SD 2.1 checkpoint | [Stable Diffusion 2.1](https://huggingface.co/Manojb/stable-diffusion-2-1-base) | `-m` / `--model` | Choose a matching SD checkpoint |
+| SDXL checkpoint | `sd_xl_base_1.0.safetensors` from [SDXL](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0) | `-m` / `--model` | For SDXL examples |
+| SDXL VAE | [`sdxl_vae-fp16-fix.safetensors`](https://huggingface.co/madebyollin/sdxl-vae-fp16-fix) | `--vae` | Use an override when required by the checkpoint |
+
+## Usage
+
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+
+### Web UI
+
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
+
+| Recipe | Component slots |
+| --- | --- |
+| SD 1.x (`sd1-checkpoint`) | `model`, `vae`, `tae` |
+| SD 2.1 512 (`sd2-512-checkpoint`) | `model`, `vae`, `tae` |
+| SD 2.1 768 (`sd2-768-checkpoint`) | `model`, `vae`, `tae` |
+| SDXL (`sdxl-checkpoint`) | `model`, `vae`, `tae` |
+| SD Turbo (`sd-turbo`) | `model`, `vae`, `tae` |
+| SDXL Turbo (`sdxl-turbo`) | `model`, `vae`, `tae` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+#### SD 1.4
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe -m ..\models\checkpoints\sd-v1-4.ckpt -p "a lovely cat"
+```
+
+**Linux/macOS**
```sh
-./bin/sd-cli -m ../models/sd-v1-4.ckpt -p "a lovely cat"
-# ./bin/sd-cli -m ../models/v1-5-pruned-emaonly.safetensors -p "a lovely cat"
-# ./bin/sd-cli -m ../models/sd_xl_base_1.0.safetensors --vae ../models/sdxl_vae-fp16-fix.safetensors -H 1024 -W 1024 -p "a lovely cat" -v
-# ./bin/sd-cli -m ../models/sd3_medium_incl_clips_t5xxlfp16.safetensors -H 1024 -W 1024 -p 'a lovely cat holding a sign says \"Stable Diffusion CPP\"' --cfg-scale 4.5 --sampling-method euler -v --clip-on-cpu
-# ./bin/sd-cli --diffusion-model ../models/flux1-dev-q3_k.gguf --vae ../models/ae.sft --clip_l ../models/clip_l.safetensors --t5xxl ../models/t5xxl_fp16.safetensors -p "a lovely cat holding a sign says 'flux.cpp'" --cfg-scale 1.0 --sampling-method euler -v --clip-on-cpu
-# ./bin/sd-cli -m ..\models\sd3.5_large.safetensors --clip_l ..\models\clip_l.safetensors --clip_g ..\models\clip_g.safetensors --t5xxl ..\models\t5xxl_fp16.safetensors -H 1024 -W 1024 -p 'a lovely cat holding a sign says \"Stable diffusion 3.5 Large\"' --cfg-scale 4.5 --sampling-method euler -v --clip-on-cpu
+./bin/sd-cli -m ../models/checkpoints/sd-v1-4.ckpt -p "a lovely cat"
```
+#### SD 1.5
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe -m ..\models\checkpoints\v1-5-pruned-emaonly.safetensors -p "a lovely cat"
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli -m ../models/checkpoints/v1-5-pruned-emaonly.safetensors -p "a lovely cat"
+```
+
+#### SDXL
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -m ..\models\checkpoints\sd_xl_base_1.0.safetensors `
+ --vae ..\models\vae\sdxl_vae-fp16-fix.safetensors `
+ -p "a lovely cat" `
+ -H 1024 `
+ -W 1024 `
+ -v
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -m ../models/checkpoints/sd_xl_base_1.0.safetensors \
+ --vae ../models/vae/sdxl_vae-fp16-fix.safetensors \
+ -p "a lovely cat" \
+ -H 1024 \
+ -W 1024 \
+ -v
+```
+
+#### img2img example
+
+Use the image generated above as `./output.png`.
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -m ..\models\checkpoints\sd-v1-4.ckpt `
+ -p "cat with blue eyes" `
+ -i .\output.png `
+ --strength 0.4 `
+ -o .\img2img_output.png
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -m ../models/checkpoints/sd-v1-4.ckpt \
+ -p "cat with blue eyes" \
+ -i ./output.png \
+ --strength 0.4 \
+ -o ./img2img_output.png
+```
+
+
+
-
+
+## Options
+
+### Variant defaults
| Family | timestep_shift_alpha | steps | cfg-scale |
|---|---|---|---|
@@ -26,25 +176,3 @@ python3 scripts/convert_qwen3_vl.py
diff --git a/docs/models/sensenova_u1.md b/docs/models/sensenova_u1.md
index 57b22a4e..e77ab39e 100644
--- a/docs/models/sensenova_u1.md
+++ b/docs/models/sensenova_u1.md
@@ -1,37 +1,69 @@
-# How to Use
+# SenseNova U1.5
SenseNova U1.5 is an 8B MoT model that performs diffusion directly in RGB pixel
space. It does not require a separate text encoder or VAE.
-## Download weights
+## Model files
-- Download SenseNova U1.5 8B MoT
- - safetensors: https://huggingface.co/sensenova/SenseNova-U1.5-8B-MoT
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| SenseNova U1.5 8B MoT | [Safetensors](https://huggingface.co/sensenova/SenseNova-U1.5-8B-MoT) | `--model` | Required |
Pass the complete downloaded repository directory to `--model`. The directory
must contain `model.safetensors.index.json`, every referenced Safetensors shard,
and the tokenizer files.
-## Examples
+## Usage
-### CUDA
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
-```bash
-./bin/sd-cli \
- --model /path/to/SenseNova-U1.5-8B-MoT \
- --prompt "a red cube on a white background" \
- --width 2048 \
- --height 2048 \
- --steps 50 \
- --cfg-scale 4 \
- --flow-shift 3 \
- --seed 42 \
- --sampling-method euler \
- --rng cuda \
+### Web UI
+
+Follow the server instructions for
+[sharded checkpoints](../../examples/server/README.md#sharded-checkpoints).
+Pass the complete repository directory with `--model` when starting the server,
+using the same model path as the CLI examples below. The browser then uses
+**Command-line model (all features)** for that loaded checkpoint.
+
+### CLI
+
+#### CUDA
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --model ..\models\checkpoints\SenseNova-U1.5-8B-MoT `
+ --prompt "a red cube on a white background" `
+ --steps 50 `
+ --cfg-scale 4 `
+ --flow-shift 3 `
+ --sampling-method euler `
+ --width 2048 `
+ --height 2048 `
+ --rng cuda `
+ --seed 42 `
--output output.png
```
-## Notes
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --model ../models/checkpoints/SenseNova-U1.5-8B-MoT \
+ --prompt "a red cube on a white background" \
+ --steps 50 \
+ --cfg-scale 4 \
+ --flow-shift 3 \
+ --sampling-method euler \
+ --width 2048 \
+ --height 2048 \
+ --rng cuda \
+ --seed 42 \
+ --output output.png
+```
+
+## Notes and limitations
- To match the official non-thinking text-to-image pipeline, use 50 Euler
steps, CFG 4, flow shift 3, seed 42, CUDA RNG, and an empty negative prompt.
diff --git a/docs/models/taesd.md b/docs/models/taesd.md
index 8331f441..607c0b41 100644
--- a/docs/models/taesd.md
+++ b/docs/models/taesd.md
@@ -1,53 +1,130 @@
-## Using TAESD to faster decoding
+# TAESD and related tiny autoencoders
-You can use TAESD to accelerate the decoding of latent images by following these steps:
+Tiny autoencoders provide an alternative to full VAE encoding, decoding, or
+previews. Choose the file matching the base model.
-- Download the model [weights](https://huggingface.co/madebyollin/taesd/blob/main/diffusion_pytorch_model.safetensors).
+## Model files
-Or curl
-
-```bash
-curl -L -O https://huggingface.co/madebyollin/taesd/resolve/main/diffusion_pytorch_model.safetensors
-```
-
-- Specify the model path using the `--taesd PATH` parameter. example:
-
-```bash
-sd-cli -m ../models/v1-5-pruned-emaonly.safetensors -p "a lovely cat" --taesd ../models/diffusion_pytorch_model.safetensors
-```
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| TAESD | [Safetensors weights](https://huggingface.co/madebyollin/taesd/blob/main/diffusion_pytorch_model.safetensors) | `--taesd` / `--tae` | For compatible SD 1.x models |
+| TAEHV for Wan 2.1 | [taew2_1.safetensors](https://github.com/madebyollin/taehv/blob/main/safetensors/taew2_1.safetensors) | `--taesd` / `--tae` | Qwen Image, Wan 2.1, and Wan 2.2 A14B |
+| TAEHV for Wan 2.2 5B | [taew2_2.safetensors](https://github.com/madebyollin/taehv/blob/main/safetensors/taew2_2.safetensors) | `--taesd` / `--tae` | Wan 2.2 TI2V 5B only |
+| TAEQI2.1 | [taeqi2_1.safetensors](https://huggingface.co/madebyollin/taeqi2_1/blob/main/taeqi2_1.safetensors) | `--taesd` / `--tae` | Qwen Image 2.1, including RGBA |
### Qwen-Image and wan (TAEHV)
-sd.cpp also supports [TAEHV](https://github.com/madebyollin/taehv) (#937), which can be used for Qwen-Image and wan.
-
-- For **Qwen-Image and wan2.1 and wan2.2-A14B**, download the wan2.1 tae [safetensors weights](https://github.com/madebyollin/taehv/blob/main/safetensors/taew2_1.safetensors)
-
- Or curl
-
- ```bash
- curl -L -O https://github.com/madebyollin/taehv/raw/refs/heads/main/safetensors/taew2_1.safetensors
- ```
-
-- For **wan2.2-TI2V-5B**, use the wan2.2 tae [safetensors weights](https://github.com/madebyollin/taehv/blob/main/safetensors/taew2_2.safetensors)
-
- Or curl
-
- ```bash
- curl -L -O https://github.com/madebyollin/taehv/raw/refs/heads/main/safetensors/taew2_2.safetensors
- ```
-
-Then simply replace the `--vae xxx.safetensors` with `--tae xxx.safetensors` in the commands. If it still out of VRAM, add `--vae-conv-direct` to your command though might be slower.
+[TAEHV](https://github.com/madebyollin/taehv) provides tiny autoencoders for the
+model families in the table. Replace `--vae PATH` with `--taesd PATH` using the
+matching file. A tiny autoencoder can reduce VAE memory requirements, with a
+possible quality tradeoff.
### Qwen Image 2.1 (TAEQI2.1)
-For Qwen Image 2.1, use [taeqi2_1](https://github.com/madebyollin/taesd), which supports 64-channel latents, 16x spatial scaling, and RGBA images.
+[TAEQI2.1](https://github.com/madebyollin/taesd) supports Qwen Image 2.1 RGBA
+images. Download the official file directly; conversion is unnecessary. Replace
+`--vae PATH` with `--taesd taeqi2_1.safetensors` in the
+[Qwen Image 2.1 examples](qwen_image_2.1.md).
-Download the official [safetensors weights](https://huggingface.co/madebyollin/taeqi2_1/blob/main/taeqi2_1.safetensors) directly; no conversion is needed:
+### Download commands
-```bash
-curl -L -o taeqi2_1.safetensors https://huggingface.co/madebyollin/taeqi2_1/resolve/main/taeqi2_1.safetensors
+Save the files under the repository's `models/vae/` directory. From the build
+directory, create it if needed:
+
+**Windows (PowerShell)**
+
+```powershell
+New-Item -ItemType Directory -Force ..\models\vae | Out-Null
```
-Replace `--vae PATH` with `--taesd taeqi2_1.safetensors` in the [Qwen Image 2.1 examples](qwen_image_2.1.md) to use it for encoding and decoding. For previews only, keep `--vae PATH` and add `--taesd taeqi2_1.safetensors --taesd-preview-only --preview tae`.
+**Linux/macOS**
-`sd-server` accepts the same `--taesd` and `--taesd-preview-only` options; the preview method is selected per request instead of via `--preview`.
+```sh
+mkdir -p ../models/vae
+```
+
+**Windows (PowerShell)**
+
+```powershell
+curl.exe -L -o ..\models\vae\diffusion_pytorch_model.safetensors https://huggingface.co/madebyollin/taesd/resolve/main/diffusion_pytorch_model.safetensors
+```
+
+**Linux/macOS**
+
+```sh
+curl -L -o ../models/vae/diffusion_pytorch_model.safetensors https://huggingface.co/madebyollin/taesd/resolve/main/diffusion_pytorch_model.safetensors
+```
+
+**Windows (PowerShell)**
+
+```powershell
+curl.exe -L -o ..\models\vae\taew2_1.safetensors https://github.com/madebyollin/taehv/raw/refs/heads/main/safetensors/taew2_1.safetensors
+```
+
+**Linux/macOS**
+
+```sh
+curl -L -o ../models/vae/taew2_1.safetensors https://github.com/madebyollin/taehv/raw/refs/heads/main/safetensors/taew2_1.safetensors
+```
+
+**Windows (PowerShell)**
+
+```powershell
+curl.exe -L -o ..\models\vae\taew2_2.safetensors https://github.com/madebyollin/taehv/raw/refs/heads/main/safetensors/taew2_2.safetensors
+```
+
+**Linux/macOS**
+
+```sh
+curl -L -o ../models/vae/taew2_2.safetensors https://github.com/madebyollin/taehv/raw/refs/heads/main/safetensors/taew2_2.safetensors
+```
+
+**Windows (PowerShell)**
+
+```powershell
+curl.exe -L -o ..\models\vae\taeqi2_1.safetensors https://huggingface.co/madebyollin/taeqi2_1/resolve/main/taeqi2_1.safetensors
+```
+
+**Linux/macOS**
+
+```sh
+curl -L -o ../models/vae/taeqi2_1.safetensors https://huggingface.co/madebyollin/taeqi2_1/resolve/main/taeqi2_1.safetensors
+```
+
+## Usage
+
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+
+### Web UI
+
+Use a compatible base model recipe that offers the `tae` slot, and select the
+tiny autoencoder matching that model. See [Web UI guide](../../examples/server/README.md#web-ui).
+
+### CLI
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -m ..\models\checkpoints\v1-5-pruned-emaonly.safetensors `
+ --taesd ..\models\vae\diffusion_pytorch_model.safetensors `
+ -p "a lovely cat"
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -m ../models/checkpoints/v1-5-pruned-emaonly.safetensors \
+ --taesd ../models/vae/diffusion_pytorch_model.safetensors \
+ -p "a lovely cat"
+```
+
+## Options
+
+For previews only, keep the full `--vae PATH` and add
+`--taesd PATH --taesd-preview-only --preview tae`.
+
+`sd-server` accepts `--taesd` and `--taesd-preview-only` at startup; choose the
+preview method in each request. For device placement and convolution settings,
+see [backend selection](../guides/backend.md).
diff --git a/docs/models/wan.md b/docs/models/wan.md
index ac0f4b94..1b469553 100644
--- a/docs/models/wan.md
+++ b/docs/models/wan.md
@@ -1,120 +1,364 @@
-# How to Use
+# Wan
-Wan models require `-M vid_gen`, including single-frame generation. `--video-frames` alone does not select video mode. Library callers must use `generate_video()` instead of `generate_image()`.
+Wan 2.1 and 2.2 support video generation with task-specific checkpoints for text,
+images, audio, and VACE conditioning.
-## Download weights
+## Model files
-- Download Wan
- - Wan2.1
- - Wan2.1 T2V 1.3B
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models
- - Wan2.1 T2V 14B
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/city96/Wan2.1-T2V-14B-gguf/tree/main
- - Wan2.1 I2V 14B 480P
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/tree/main
- - Wan2.1 I2V 14B 720P
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/city96/Wan2.1-I2V-14B-720P-gguf/tree/main
- - Wan2.1 FLF2V 14B 720P
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/city96/Wan2.1-FLF2V-14B-720P-gguf/tree/main
- - Wan2.1 VACE 1.3B
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/calcuis/wan-1.3b-gguf/tree/main
- - Wan2.1 VACE 14B
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/QuantStack/Wan2.1_14B_VACE-GGUF/tree/main
- - Wan2.2
- - Wan2.2 TI2V 5B
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/QuantStack/Wan2.2-TI2V-5B-GGUF/tree/main
- - Wan2.2 T2V A14B
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/QuantStack/Wan2.2-T2V-A14B-GGUF/tree/main
- - Wan2.2 I2V A14B
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/QuantStack/Wan2.2-I2V-A14B-GGUF/tree/main
- - Wan2.2 S2V 14B
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/tree/main/split_files/diffusion_models
- - gguf: https://huggingface.co/QuantStack/Wan2.2-S2V-14B-GGUF/tree/main
- - int8_convrot safetensors: https://huggingface.co/noctrex/Wan2.2-S2V-14B-int8_convrot
- - Wan2.2 VACE-Fun A14B
- - safetensors: https://huggingface.co/alibaba-pai/Wan2.2-VACE-Fun-A14B
- - gguf: https://huggingface.co/QuantStack/Wan2.2-VACE-Fun-A14B-GGUF/tree/main
-- Download vae
- - wan_2.1_vae (for all the wan model except Wan2.2 TI2V 5B)
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/vae/wan_2.1_vae.safetensors
- - wan_2.2_vae (for Wan2.2 TI2V 5B only)
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/blob/main/split_files/vae/wan2.2_vae.safetensors
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| Wan2.1 T2V 1.3B | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models) | `--diffusion-model` | Match the task and variant |
+| Wan2.1 T2V 14B | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models)
[gguf](https://huggingface.co/city96/Wan2.1-T2V-14B-gguf/tree/main) | `--diffusion-model` | Match the task and variant |
+| Wan2.1 I2V 14B 480P | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models)
[gguf](https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/tree/main) | `--diffusion-model` | Match the task and variant |
+| Wan2.1 I2V 14B 720P | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models)
[gguf](https://huggingface.co/city96/Wan2.1-I2V-14B-720P-gguf/tree/main) | `--diffusion-model` | Match the task and variant |
+| Wan2.1 FLF2V 14B 720P | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models)
[gguf](https://huggingface.co/city96/Wan2.1-FLF2V-14B-720P-gguf/tree/main) | `--diffusion-model` | Match the task and variant |
+| Wan2.1 VACE 1.3B | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models)
[gguf](https://huggingface.co/calcuis/wan-1.3b-gguf/tree/main) | `--diffusion-model` | Match the task and variant |
+| Wan2.1 VACE 14B | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/tree/main/split_files/diffusion_models)
[gguf](https://huggingface.co/QuantStack/Wan2.1_14B_VACE-GGUF/tree/main) | `--diffusion-model` | Match the task and variant |
+| Wan2.2 TI2V 5B | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/tree/main/split_files/diffusion_models)
[gguf](https://huggingface.co/QuantStack/Wan2.2-TI2V-5B-GGUF/tree/main) | `--diffusion-model` | Match the task and variant |
+| Wan2.2 T2V A14B | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/tree/main/split_files/diffusion_models)
[gguf](https://huggingface.co/QuantStack/Wan2.2-T2V-A14B-GGUF/tree/main) | `--diffusion-model` | Match the task and variant |
+| Wan2.2 I2V A14B | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/tree/main/split_files/diffusion_models)
[gguf](https://huggingface.co/QuantStack/Wan2.2-I2V-A14B-GGUF/tree/main) | `--diffusion-model` | Match the task and variant |
+| Wan2.2 S2V 14B | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/tree/main/split_files/diffusion_models)
[gguf](https://huggingface.co/QuantStack/Wan2.2-S2V-14B-GGUF/tree/main)
[int8_convrot safetensors](https://huggingface.co/noctrex/Wan2.2-S2V-14B-int8_convrot) | `--diffusion-model` | Match the task and variant |
+| Wan2.2 VACE-Fun A14B | [safetensors](https://huggingface.co/alibaba-pai/Wan2.2-VACE-Fun-A14B)
[gguf](https://huggingface.co/QuantStack/Wan2.2-VACE-Fun-A14B-GGUF/tree/main) | `--diffusion-model` | Match the task and variant |
+| wan_2.1_vae (for all the wan model except Wan2.2 TI2V 5B) | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/vae/wan_2.1_vae.safetensors) | `--vae` | Match the model family |
+| wan_2.2_vae (for Wan2.2 TI2V 5B only) | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/blob/main/split_files/vae/wan2.2_vae.safetensors) | `--vae` | Match the model family |
+| umt5_xxl | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/text_encoders/umt5_xxl_fp16.safetensors)
[gguf](https://huggingface.co/city96/umt5-xxl-encoder-gguf/tree/main) | `--t5xxl` | Required for the indicated task |
+| clip_vison_h (for Wan2.1 I2V/FLF2V only) | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/clip_vision/clip_vision_h.safetensors) | `--clip_vision` | Required for the indicated task |
+| audio_encoder (for Wan2.2 S2V only) | [safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/blob/main/split_files/audio_encoders/wav2vec2_large_english_fp16.safetensors) | `--audio-encoder` | Required for the indicated task |
- > Wan models vae requires really much VRAM! If you do not have enough VRAM, please try tae instead, though the results may be poorer. For tae usage, please refer to [taesd](taesd.md)
+Use the Wan 2.2 VAE only for TI2V 5B; other variants use the matching Wan 2.1
+VAE shown above. Wan 2.2 A14B T2V/I2V use separate high-noise and low-noise
+transformers; load both, using `--high-noise-diffusion-model` for the high-noise
+file. For lower VAE memory use, see [tiny autoencoders](taesd.md).
-- Download umt5_xxl
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/text_encoders/umt5_xxl_fp16.safetensors
- - gguf: https://huggingface.co/city96/umt5-xxl-encoder-gguf/tree/main
+## Usage
-- Download clip_vison_h (for Wan2.1 I2V/FLF2V only)
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/clip_vision/clip_vision_h.safetensors
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
-- Download audio_encoder (for Wan2.2 S2V only)
- - safetensors: https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/blob/main/split_files/audio_encoders/wav2vec2_large_english_fp16.safetensors
+### Web UI
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
-## Examples
+| Recipe | Component slots |
+| --- | --- |
+| Wan 2.1 T2V (`wan21-t2v`) | `diffusion_model`, `t5xxl`, `vae`, `tae` |
+| Wan 2.1 I2V (`wan21-i2v`) | `diffusion_model`, `t5xxl`, `vae`, `tae`, `clip_vision` |
+| Wan 2.1 FLF2V 14B (`wan21-flf2v`) | `diffusion_model`, `t5xxl`, `clip_vision`, `vae`, `tae` |
+| Wan 2.1 VACE 1.3B / 14B (`wan21-vace`) | `diffusion_model`, `t5xxl`, `vae`, `tae` |
+| Wan 2.2 T2V A14B (`wan22-t2v`) | `diffusion_model`, `high_noise_diffusion_model`, `t5xxl`, `vae`, `tae` |
+| Wan 2.2 I2V A14B (`wan22-i2v`) | `diffusion_model`, `high_noise_diffusion_model`, `t5xxl`, `vae`, `tae` |
+| Wan 2.2 S2V 14B (`wan22-s2v`) | `diffusion_model`, `t5xxl`, `audio_encoder`, `vae`, `tae` |
+| Wan 2.2 TI2V 5B (`wan22-ti2v-5b`) | `diffusion_model`, `t5xxl`, `vae`, `tae` |
-### Wan2.1 T2V 1.3B
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+### CLI
+
+#### Wan2.1 T2V 1.3B
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --diffusion-model ..\models\diffusion_models\wan2.1_t2v_1.3B_fp16.safetensors `
+ --vae ..\models\vae\wan_2.1_vae.safetensors `
+ --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf `
+ -p "a lovely cat" `
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部, 畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" `
+ --cfg-scale 6.0 `
+ --sampling-method euler `
+ --flow-shift 3.0 `
+ -W 832 `
+ -H 480 `
+ --video-frames 33 `
+ -v
```
-.\bin\Release\sd-cli.exe -M vid_gen --diffusion-model ..\models\diffusion_models\wan2.1_t2v_1.3B_fp16.safetensors --vae ..\models\vae\wan_2.1_vae.safetensors --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf -p "a lovely cat" --cfg-scale 6.0 --sampling-method euler -v -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部, 畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" -W 832 -H 480 --video-frames 33 --flow-shift 3.0
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -M vid_gen \
+ --diffusion-model ../models/diffusion_models/wan2.1_t2v_1.3B_fp16.safetensors \
+ --vae ../models/vae/wan_2.1_vae.safetensors \
+ --t5xxl ../models/text_encoders/umt5-xxl-encoder-Q8_0.gguf \
+ -p "a lovely cat" \
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部, 畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" \
+ --cfg-scale 6.0 \
+ --sampling-method euler \
+ --flow-shift 3.0 \
+ -W 832 \
+ -H 480 \
+ --video-frames 33 \
+ -v
```
-### Wan2.1 T2V 14B
+#### Wan2.1 T2V 14B
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --diffusion-model ..\models\diffusion_models\wan2.1-t2v-14b-Q8_0.gguf `
+ --vae ..\models\vae\wan_2.1_vae.safetensors `
+ --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf `
+ -p "a lovely cat" `
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" `
+ --cfg-scale 6.0 `
+ --sampling-method euler `
+ --flow-shift 3.0 `
+ -W 832 `
+ -H 480 `
+ --video-frames 33 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe -M vid_gen --diffusion-model ..\models\diffusion_models\wan2.1-t2v-14b-Q8_0.gguf --vae ..\models\vae\wan_2.1_vae.safetensors --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf -p "a lovely cat" --cfg-scale 6.0 --sampling-method euler -v -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" -W 832 -H 480 --offload-to-cpu --video-frames 33 --flow-shift 3.0
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -M vid_gen \
+ --diffusion-model ../models/diffusion_models/wan2.1-t2v-14b-Q8_0.gguf \
+ --vae ../models/vae/wan_2.1_vae.safetensors \
+ --t5xxl ../models/text_encoders/umt5-xxl-encoder-Q8_0.gguf \
+ -p "a lovely cat" \
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" \
+ --cfg-scale 6.0 \
+ --sampling-method euler \
+ --flow-shift 3.0 \
+ -W 832 \
+ -H 480 \
+ --video-frames 33 \
+ --offload-to-cpu \
+ -v
```
+#### Wan2.1 I2V 14B
+**Windows (PowerShell)**
-### Wan2.1 I2V 14B
-
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --diffusion-model ..\models\diffusion_models\wan2.1-i2v-14b-480p-Q8_0.gguf `
+ --vae ..\models\vae\wan_2.1_vae.safetensors `
+ --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf `
+ --clip_vision ..\models\clip_vision\clip_vision_h.safetensors `
+ -p "a lovely cat" `
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" `
+ -i ..\inputs\cat_with_sd_cpp_42.png `
+ --cfg-scale 6.0 `
+ --sampling-method euler `
+ --flow-shift 3.0 `
+ -W 480 `
+ -H 832 `
+ --video-frames 33 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe -M vid_gen --diffusion-model ..\models\diffusion_models\wan2.1-i2v-14b-480p-Q8_0.gguf --vae ..\models\vae\wan_2.1_vae.safetensors --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf --clip_vision ..\models\clip_vision\clip_vision_h.safetensors -p "a lovely cat" --cfg-scale 6.0 --sampling-method euler -v -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" -W 480 -H 832 --video-frames 33 --offload-to-cpu -i ..\assets\cat_with_sd_cpp_42.png --flow-shift 3.0
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -M vid_gen \
+ --diffusion-model ../models/diffusion_models/wan2.1-i2v-14b-480p-Q8_0.gguf \
+ --vae ../models/vae/wan_2.1_vae.safetensors \
+ --t5xxl ../models/text_encoders/umt5-xxl-encoder-Q8_0.gguf \
+ --clip_vision ../models/clip_vision/clip_vision_h.safetensors \
+ -p "a lovely cat" \
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" \
+ -i ../inputs/cat_with_sd_cpp_42.png \
+ --cfg-scale 6.0 \
+ --sampling-method euler \
+ --flow-shift 3.0 \
+ -W 480 \
+ -H 832 \
+ --video-frames 33 \
+ --offload-to-cpu \
+ -v
```
-### Wan2.2 T2V A14B
+#### Wan2.2 T2V A14B
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --diffusion-model ..\models\diffusion_models\Wan2.2-T2V-A14B-LowNoise-Q8_0.gguf `
+ --high-noise-diffusion-model ..\models\diffusion_models\Wan2.2-T2V-A14B-HighNoise-Q8_0.gguf `
+ --vae ..\models\vae\wan_2.1_vae.safetensors `
+ --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf `
+ -p "a lovely cat" `
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" `
+ --cfg-scale 3.5 `
+ --sampling-method euler `
+ --steps 10 `
+ --high-noise-cfg-scale 3.5 `
+ --high-noise-sampling-method euler `
+ --high-noise-steps 8 `
+ --flow-shift 3.0 `
+ -W 832 `
+ -H 480 `
+ --video-frames 33 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe -M vid_gen --diffusion-model ..\models\diffusion_models\Wan2.2-T2V-A14B-LowNoise-Q8_0.gguf --high-noise-diffusion-model ..\models\diffusion_models\Wan2.2-T2V-A14B-HighNoise-Q8_0.gguf --vae ..\models\vae\wan_2.1_vae.safetensors --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf -p "a lovely cat" --cfg-scale 3.5 --sampling-method euler --steps 10 --high-noise-cfg-scale 3.5 --high-noise-sampling-method euler --high-noise-steps 8 -v -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" -W 832 -H 480 --offload-to-cpu --video-frames 33 --flow-shift 3.0
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -M vid_gen \
+ --diffusion-model ../models/diffusion_models/Wan2.2-T2V-A14B-LowNoise-Q8_0.gguf \
+ --high-noise-diffusion-model ../models/diffusion_models/Wan2.2-T2V-A14B-HighNoise-Q8_0.gguf \
+ --vae ../models/vae/wan_2.1_vae.safetensors \
+ --t5xxl ../models/text_encoders/umt5-xxl-encoder-Q8_0.gguf \
+ -p "a lovely cat" \
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" \
+ --cfg-scale 3.5 \
+ --sampling-method euler \
+ --steps 10 \
+ --high-noise-cfg-scale 3.5 \
+ --high-noise-sampling-method euler \
+ --high-noise-steps 8 \
+ --flow-shift 3.0 \
+ -W 832 \
+ -H 480 \
+ --video-frames 33 \
+ --offload-to-cpu \
+ -v
```
-### Wan2.2 I2V A14B
+#### Wan2.2 I2V A14B
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --diffusion-model ..\models\diffusion_models\Wan2.2-I2V-A14B-LowNoise-Q8_0.gguf `
+ --high-noise-diffusion-model ..\models\diffusion_models\Wan2.2-I2V-A14B-HighNoise-Q8_0.gguf `
+ --vae ..\models\vae\wan_2.1_vae.safetensors `
+ --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf `
+ -p "a lovely cat" `
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" `
+ -i ..\inputs\cat_with_sd_cpp_42.png `
+ --cfg-scale 3.5 `
+ --sampling-method euler `
+ --steps 10 `
+ --high-noise-cfg-scale 3.5 `
+ --high-noise-sampling-method euler `
+ --high-noise-steps 8 `
+ --flow-shift 3.0 `
+ -W 832 `
+ -H 480 `
+ --video-frames 33 `
+ --offload-to-cpu `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe -M vid_gen --diffusion-model ..\models\diffusion_models\Wan2.2-I2V-A14B-LowNoise-Q8_0.gguf --high-noise-diffusion-model ..\models\diffusion_models\Wan2.2-I2V-A14B-HighNoise-Q8_0.gguf --vae ..\models\vae\wan_2.1_vae.safetensors --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf -p "a lovely cat" --cfg-scale 3.5 --sampling-method euler --steps 10 --high-noise-cfg-scale 3.5 --high-noise-sampling-method euler --high-noise-steps 8 -v -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" -W 832 -H 480 --offload-to-cpu --video-frames 33 --offload-to-cpu -i ..\assets\cat_with_sd_cpp_42.png --flow-shift 3.0
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -M vid_gen \
+ --diffusion-model ../models/diffusion_models/Wan2.2-I2V-A14B-LowNoise-Q8_0.gguf \
+ --high-noise-diffusion-model ../models/diffusion_models/Wan2.2-I2V-A14B-HighNoise-Q8_0.gguf \
+ --vae ../models/vae/wan_2.1_vae.safetensors \
+ --t5xxl ../models/text_encoders/umt5-xxl-encoder-Q8_0.gguf \
+ -p "a lovely cat" \
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" \
+ -i ../inputs/cat_with_sd_cpp_42.png \
+ --cfg-scale 3.5 \
+ --sampling-method euler \
+ --steps 10 \
+ --high-noise-cfg-scale 3.5 \
+ --high-noise-sampling-method euler \
+ --high-noise-steps 8 \
+ --flow-shift 3.0 \
+ -W 832 \
+ -H 480 \
+ --video-frames 33 \
+ --offload-to-cpu \
+ --offload-to-cpu \
+ -v
```
-### Wan2.2 S2V 14B
+#### Wan2.2 S2V 14B
Audio-driven video (speech-to-video). The reference image (`-i`) is the speaker
portrait, `--audio` is the driving audio track and `--audio-encoder` is the
wav2vec2 audio encoder. Wan2.2 S2V requires the wan_2.1 vae (16 channel), not
the wan2.2 vae.
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --diffusion-model ..\models\diffusion_models\wan2.2_s2v-14B-Q8_0.gguf `
+ --audio-encoder ..\models\text_encoders\audio_encoders\wav2vec2_large_english_fp16.safetensors `
+ --vae ..\models\vae\wan_2.1_vae.safetensors `
+ --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf `
+ -p "a person is talking" `
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" `
+ -i ..\inputs\cat_with_sd_cpp_42.png `
+ --audio .\input\speech.wav `
+ --cfg-scale 6.0 `
+ --steps 20 `
+ --sampling-method euler `
+ --flow-shift 3.0 `
+ -W 832 `
+ -H 480 `
+ --video-frames 81 `
+ --offload-to-cpu `
+ --vae-tiling `
+ -v
```
-.\bin\Release\sd-cli.exe -M vid_gen --diffusion-model ..\models\diffusion_models\wan2.2_s2v-14B-Q8_0.gguf --audio-encoder ..\models\audio_encoders\wav2vec2_large_english_fp16.safetensors --vae ..\models\vae\wan_2.1_vae.safetensors --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf -p "a person is talking" --cfg-scale 6.0 --steps 20 --sampling-method euler -v -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" -W 832 -H 480 --offload-to-cpu --vae-tiling --video-frames 81 -i ..\assets\cat_with_sd_cpp_42.png --audio .\input\speech.wav --flow-shift 3.0
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ -M vid_gen \
+ --diffusion-model ../models/diffusion_models/wan2.2_s2v-14B-Q8_0.gguf \
+ --audio-encoder ../models/text_encoders/audio_encoders/wav2vec2_large_english_fp16.safetensors \
+ --vae ../models/vae/wan_2.1_vae.safetensors \
+ --t5xxl ../models/text_encoders/umt5-xxl-encoder-Q8_0.gguf \
+ -p "a person is talking" \
+ -n "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" \
+ -i ../inputs/cat_with_sd_cpp_42.png \
+ --audio ./input/speech.wav \
+ --cfg-scale 6.0 \
+ --steps 20 \
+ --sampling-method euler \
+ --flow-shift 3.0 \
+ -W 832 \
+ -H 480 \
+ --video-frames 81 \
+ --offload-to-cpu \
+ --vae-tiling \
+ -v
```
Notes:
@@ -140,146 +384,680 @@ Notes:
`--cfg-scale 1.0`. Use the **low_noise** variant;
the high_noise variant produces artifacts on S2V:
- ```
- --lora-model-dir ..\models\loras
- -p "...
-### Wan2.2 T2V 14B with Lora
+#### Wan2.2 T2V 14B with Lora
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ -M vid_gen `
+ --diffusion-model ..\models\diffusion_models\Wan2.2-T2V-A14B-LowNoise-Q8_0.gguf `
+ --high-noise-diffusion-model ..\models\diffusion_models\Wan2.2-T2V-A14B-HighNoise-Q8_0.gguf `
+ --vae ..\models\vae\wan_2.1_vae.safetensors `
+ --t5xxl ..\models\text_encoders\umt5-xxl-encoder-Q8_0.gguf `
+ --lora-model-dir ..\models\loras `
+ -p "a lovely cat
[GGUF](https://huggingface.co/leejet/Z-Image-Turbo-GGUF/tree/main) | `--diffusion-model` | Choose matching variant |
+| Z-Image | [Safetensors](https://huggingface.co/Comfy-Org/z_image/tree/main/split_files/diffusion_models)
[GGUF](https://huggingface.co/unsloth/Z-Image-GGUF/tree/main) | `--diffusion-model` | Choose matching variant |
+| vae | [Safetensors](https://huggingface.co/black-forest-labs/FLUX.1-schnell/tree/main) | `--vae` | Use matching VAE |
+| Qwen3 4b | [Safetensors](https://huggingface.co/Comfy-Org/z_image_turbo/tree/main/split_files/text_encoders)
[GGUF](https://huggingface.co/unsloth/Qwen3-4B-Instruct-2507-GGUF/tree/main) | `--llm` | Use matching text encoder |
-## Examples
+## Usage
-### Z-Image-Turbo
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+### Web UI
+
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
+
+| Recipe | Component slots |
+| --- | --- |
+| Z-Image (`z-image`) | `diffusion_model`, `llm`, `vae`, `tae` |
+| Z-Image Turbo (`z-image-turbo`) | `diffusion_model`, `llm`, `vae`, `tae` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+#### Z-Image-Turbo
+
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\z_image_turbo-Q3_K.gguf `
+ --vae ..\models\vae\ae.sft `
+ --llm ..\models\text_encoders\Qwen3-4B-Instruct-2507-Q4_K_M.gguf `
+ -p "A cinematic, melancholic photograph of a solitary hooded figure walking through a sprawling, rain-slicked metropolis at night. The city lights are a chaotic blur of neon orange and cool blue, reflecting on the wet asphalt. The scene evokes a sense of being a single component in a vast machine. Superimposed over the image in a sleek, modern, slightly glitched font is the philosophical quote: 'THE CITY IS A CIRCUIT BOARD, AND I AM A BROKEN TRANSISTOR.' -- moody, atmospheric, profound, dark academic" `
+ --cfg-scale 1.0 `
+ --steps 8 `
+ -H 1024 `
+ -W 512 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model z_image_turbo-Q3_K.gguf --vae ..\models\vae\ae.sft --llm ..\models\text_encoders\Qwen3-4B-Instruct-2507-Q4_K_M.gguf -p "A cinematic, melancholic photograph of a solitary hooded figure walking through a sprawling, rain-slicked metropolis at night. The city lights are a chaotic blur of neon orange and cool blue, reflecting on the wet asphalt. The scene evokes a sense of being a single component in a vast machine. Superimposed over the image in a sleek, modern, slightly glitched font is the philosophical quote: 'THE CITY IS A CIRCUIT BOARD, AND I AM A BROKEN TRANSISTOR.' -- moody, atmospheric, profound, dark academic" --cfg-scale 1.0 -v --offload-to-cpu -H 1024 -W 512 --steps 8
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/z_image_turbo-Q3_K.gguf \
+ --vae ../models/vae/ae.sft \
+ --llm ../models/text_encoders/Qwen3-4B-Instruct-2507-Q4_K_M.gguf \
+ -p "A cinematic, melancholic photograph of a solitary hooded figure walking through a sprawling, rain-slicked metropolis at night. The city lights are a chaotic blur of neon orange and cool blue, reflecting on the wet asphalt. The scene evokes a sense of being a single component in a vast machine. Superimposed over the image in a sleek, modern, slightly glitched font is the philosophical quote: 'THE CITY IS A CIRCUIT BOARD, AND I AM A BROKEN TRANSISTOR.' -- moody, atmospheric, profound, dark academic" \
+ --cfg-scale 1.0 \
+ --steps 8 \
+ -H 1024 \
+ -W 512 \
+ --offload-to-cpu \
+ -v
```
-### Z-Image-Base
+#### Z-Image-Base
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\z_image_bf16.safetensors `
+ --vae ..\models\vae\ae.sft `
+ --llm ..\models\text_encoders\qwen_3_4b.safetensors `
+ -p "A cinematic, melancholic photograph of a solitary hooded figure walking through a sprawling, rain-slicked metropolis at night. The city lights are a chaotic blur of neon orange and cool blue, reflecting on the wet asphalt. The scene evokes a sense of being a single component in a vast machine. Superimposed over the image in a sleek, modern, slightly glitched font is the philosophical quote: 'THE CITY IS A CIRCUIT BOARD, AND I AM A BROKEN TRANSISTOR.' -- moody, atmospheric, profound, dark academic" `
+ --cfg-scale 5.0 `
+ -H 1024 `
+ -W 512 `
+ --offload-to-cpu `
+ -v
```
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\z_image_bf16.safetensors --vae ..\models\vae\ae.sft --llm ..\models\text_encoders\qwen_3_4b.safetensors -p "A cinematic, melancholic photograph of a solitary hooded figure walking through a sprawling, rain-slicked metropolis at night. The city lights are a chaotic blur of neon orange and cool blue, reflecting on the wet asphalt. The scene evokes a sense of being a single component in a vast machine. Superimposed over the image in a sleek, modern, slightly glitched font is the philosophical quote: 'THE CITY IS A CIRCUIT BOARD, AND I AM A BROKEN TRANSISTOR.' -- moody, atmospheric, profound, dark academic" --cfg-scale 5.0 -v --offload-to-cpu -H 1024 -W 512
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/z_image_bf16.safetensors \
+ --vae ../models/vae/ae.sft \
+ --llm ../models/text_encoders/qwen_3_4b.safetensors \
+ -p "A cinematic, melancholic photograph of a solitary hooded figure walking through a sprawling, rain-slicked metropolis at night. The city lights are a chaotic blur of neon orange and cool blue, reflecting on the wet asphalt. The scene evokes a sense of being a single component in a vast machine. Superimposed over the image in a sleek, modern, slightly glitched font is the philosophical quote: 'THE CITY IS A CIRCUIT BOARD, AND I AM A BROKEN TRANSISTOR.' -- moody, atmospheric, profound, dark academic" \
+ --cfg-scale 5.0 \
+ -H 1024 \
+ -W 512 \
+ --offload-to-cpu \
+ -v
```
-## Comparison of Different Quantization Types
+#### Comparison of Different Quantization Types
| bf16 | q8_0 | q6_K | q5_0 | q4_K | q4_0 | q3_K | q2_K|
|---|---|---|---|---|---|---|---|
-|
|
|
|
|
|
|
|
|
\ No newline at end of file
+|
|
|
|
|
|
|
|
|
diff --git a/docs/models/z_image_l2p.md b/docs/models/z_image_l2p.md
index a7836f54..c572af8c 100644
--- a/docs/models/z_image_l2p.md
+++ b/docs/models/z_image_l2p.md
@@ -1,21 +1,72 @@
# Z-Image L2P
-[L2P](https://nju-pcalab.github.io/projects/L2P/) (Latent-to-Pixel) transfers Z-Image-Turbo to pixel space. The VAE is replaced by 16x16 patch tokenization on RGB pixels and a small convolutional local decoder that turns the last DiT hidden states back into pixels, so no VAE is needed. The text encoder is the Qwen3-4B used by Z-Image-Turbo.
+[L2P](https://nju-pcalab.github.io/projects/L2P/) (Latent-to-Pixel) generates images
+directly in pixel space using Z-Image-Turbo and Qwen3 4B. No VAE is required.
-## Download weights
+## Model files
-- Download L2P (1K)
- - safetensors: https://huggingface.co/zhen-nan/L2P/tree/main
-- Download Qwen3 4b
- - safetensors: https://huggingface.co/Comfy-Org/z_image_turbo/tree/main/split_files/text_encoders
- - gguf: https://huggingface.co/unsloth/Qwen3-4B-Instruct-2507-GGUF/tree/main
+| Component | Weights and downloads | CLI option | Requirement |
+| --- | --- | --- | --- |
+| L2P (1K) | [Safetensors](https://huggingface.co/zhen-nan/L2P/tree/main) | `--diffusion-model` | Required |
+| Qwen3 4b | [Safetensors](https://huggingface.co/Comfy-Org/z_image_turbo/tree/main/split_files/text_encoders)
[GGUF](https://huggingface.co/unsloth/Qwen3-4B-Instruct-2507-GGUF/tree/main) | `--llm` | Use matching text encoder |
-## Text-to-image
+## Usage
+
+CLI examples use the [shared path and shell conventions](README.md#example-conventions).
+
+### Web UI
+
+Follow the [Web UI guide](../../examples/server/README.md#web-ui) to start the
+server, then select the recipe matching your weights. Fill the component slots
+below and click **Load models**.
+Use the files and compatibility requirements in [Model files](#model-files).
+
+| Recipe | Component slots |
+| --- | --- |
+| Z-Image L2P (`z-image-l2p`) | `diffusion_model`, `llm` |
+
+Slot IDs correspond to CLI component options: `diffusion_model` uses
+`--diffusion-model`, `llm` uses `--llm`, and `model` uses `-m` / `--model`.
+Select optional components when required by your checkpoint or task.
+
+### CLI
+
+#### Text-to-image
Do not pass `--vae`. Image dimensions must be multiples of 16. The reference pipeline uses 30 steps with a CFG scale of 2.0.
The released checkpoint keeps part of the transformer in F32. Pass `--type bf16` to load it in BF16, as the reference pipeline runs it; this reduces the diffusion model from about 18.6 GB to 11.8 GB.
-```bash
-.\bin\Release\sd-cli.exe --diffusion-model ..\models\diffusion_models\model-1k-merge.safetensors --llm ..\models\text_encoders\qwen_3_4b.safetensors -p "an origami pig on fire in the middle of a dark room with a pentagram on the floor" --cfg-scale 2.0 --steps 30 --sampling-method euler -W 1024 -H 1024 --type bf16 -v -o z_image_l2p.png
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe `
+ --diffusion-model ..\models\diffusion_models\model-1k-merge.safetensors `
+ --llm ..\models\text_encoders\qwen_3_4b.safetensors `
+ --type bf16 `
+ -p "an origami pig on fire in the middle of a dark room with a pentagram on the floor" `
+ --cfg-scale 2.0 `
+ --steps 30 `
+ --sampling-method euler `
+ -W 1024 `
+ -H 1024 `
+ -v `
+ -o z_image_l2p.png
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-cli \
+ --diffusion-model ../models/diffusion_models/model-1k-merge.safetensors \
+ --llm ../models/text_encoders/qwen_3_4b.safetensors \
+ --type bf16 \
+ -p "an origami pig on fire in the middle of a dark room with a pentagram on the floor" \
+ --cfg-scale 2.0 \
+ --steps 30 \
+ --sampling-method euler \
+ -W 1024 \
+ -H 1024 \
+ -v \
+ -o z_image_l2p.png
```
diff --git a/examples/cli/README.md b/examples/cli/README.md
index 2072e1cb..78dd25ad 100644
--- a/examples/cli/README.md
+++ b/examples/cli/README.md
@@ -1,8 +1,16 @@
# Usage
-For detailed command-line arguments, run:
+From the build directory, show the full list of command-line arguments:
-```bash
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe -h
+```
+
+**Linux/macOS**
+
+```sh
./bin/sd-cli -h
```
@@ -37,13 +45,50 @@ input defaults, downstream model processing, mask alignment, and examples.
Metadata mode inspects PNG, JPEG, WebP (including animated WebP), AVI, WebM, and Matroska
container metadata without loading any model. Use `--image` for both images and videos:
-```bash
+**Windows (PowerShell)**
+
+```powershell
+.\bin\Release\sd-cli.exe -M metadata --image .\output.png
+.\bin\Release\sd-cli.exe `
+ -M metadata `
+ --image .\output.jpg `
+ --metadata-format json
+.\bin\Release\sd-cli.exe -M metadata --image .\output.webm
+.\bin\Release\sd-cli.exe `
+ -M metadata `
+ --image .\output.avi `
+ --metadata-format json
+.\bin\Release\sd-cli.exe `
+ -M metadata `
+ --image .\output.png `
+ --metadata-raw
+.\bin\Release\sd-cli.exe `
+ -M metadata `
+ --image .\output.png `
+ --metadata-all
+```
+
+**Linux/macOS**
+
+```sh
./bin/sd-cli -M metadata --image ./output.png
-./bin/sd-cli -M metadata --image ./output.jpg --metadata-format json
+./bin/sd-cli \
+ -M metadata \
+ --image ./output.jpg \
+ --metadata-format json
./bin/sd-cli -M metadata --image ./output.webm
-./bin/sd-cli -M metadata --image ./output.avi --metadata-format json
-./bin/sd-cli -M metadata --image ./output.png --metadata-raw
-./bin/sd-cli -M metadata --image ./output.png --metadata-all
+./bin/sd-cli \
+ -M metadata \
+ --image ./output.avi \
+ --metadata-format json
+./bin/sd-cli \
+ -M metadata \
+ --image ./output.png \
+ --metadata-raw
+./bin/sd-cli \
+ -M metadata \
+ --image ./output.png \
+ --metadata-all
```
For completely black or white images or videos, NaNs, and the `--linear-scale` /
diff --git a/examples/server/README.md b/examples/server/README.md
index 33b256eb..6b6e7505 100644
--- a/examples/server/README.md
+++ b/examples/server/README.md
@@ -1,70 +1,74 @@
-# Model selection
+# stable-diffusion.cpp Server
-Start without model arguments to select models in the web UI:
+`sd-server` provides a Web UI for image and video generation, model management,
+and HTTP APIs. Download or build the server before starting; see the
+[build guide](../../docs/build.md) and [frontend build instructions](#build-with-frontend).
-```sh
-sd-server --model-dir ./models
-```
+- [Web UI](#web-ui): start the server, load a model, and generate.
+- [Model management](#model-management): model directories, recipes, and startup models.
+- [Server configuration](#server-configuration): launcher settings, network, logging, and help.
+- [API](#api): native and compatibility endpoints.
+- [Frontend development](#frontend-development): build or customize the Web UI.
-From a source checkout, you can also use `sh ./start-server.sh` on Linux/macOS
-or `.\start-server.bat` on Windows. The launchers look for the server relative
-to the script: beside the script, then in `bin/Release/`, `bin/`,
-`build/bin/Release/`, and `build/bin/`, in that order.
-For a different build directory, set `SD_SERVER_PATH` to the executable path:
+## Web UI
-```sh
-SD_SERVER_PATH="./build_vulkan/bin/sd-server" sh ./start-server.sh --listen-port 8080
-```
+### Start the server
+
+From the repository root, start the launcher. It finds the server executable
+and uses the repository's `models/` directory:
+
+**Windows (PowerShell)**
```powershell
-$env:SD_SERVER_PATH = ".\build_vulkan\bin\Release\sd-server.exe"
-.\start-server.bat --listen-port 8080
+.\start-server.bat
```
-Binary release archives include both launchers. Keep the launchers under version
-control and put personal settings in a separate file beside them:
+You can also double-click `start-server.bat` in File Explorer to start the
+server. Keep the console window open while using the Web UI.
-- Windows batch: `start-server.local.bat`
-- Linux/macOS: `start-server.local.sh`
-
-These local files are ignored by Git and excluded from release archives. They
-are loaded automatically after the launcher's defaults. They can override
-`SD_SERVER_PATH`, `MODEL_DIR`, and `COMMANDLINE_ARGS`; there is no need to edit
-the tracked launchers. For example:
-
-```bat
-@echo off
-set "MODEL_DIR=D:\stable-diffusion-webui\models"
-set "COMMANDLINE_ARGS=--listen-port 8080 --offload-to-cpu"
-```
+**Linux/macOS**
```sh
-MODEL_DIR="/data/stable-diffusion-webui/models"
-COMMANDLINE_ARGS="--listen-port 8080 --offload-to-cpu"
+sh ./start-server.sh
```
-Each launcher prints the resolved command before execution and forwards the
-server's exit code.
+To start the executable directly instead, run from the build directory:
-`SD_SERVER_PATH` inherits the environment value by default; leave it empty for
-automatic discovery, or set it in the local file to select another executable.
-Settings are applied in this order: launcher defaults, local configuration,
-then invocation arguments. Repeated `--model-dir` arguments add roots, so they
-do not replace the `MODEL_DIR` root. Local configuration files are shell scripts
-and use the corresponding shell's syntax.
+**Windows (PowerShell)**
-The launchers preserve the current working directory, so the default
-`MODEL_DIR="./models"` is relative to where you start the launcher. Arguments
-passed when invoking the launcher follow these defaults. Repeated `--model-dir`
-arguments add search roots rather than replacing `MODEL_DIR`; set `MODEL_DIR` in
-the local configuration to change the first root. Other single-value options can override the defaults.
-In the shell script, `COMMANDLINE_ARGS` is a
-whitespace-separated list; pass values containing spaces as quoted arguments
-when invoking the script. `MODEL_DIR` itself supports spaces in both scripts.
-A leading `--version` bypasses the configured defaults. An explicit
-`SD_SERVER_PATH` is used without falling back to another build if it is invalid.
+```powershell
+.\bin\Release\sd-server.exe --model-dir ..\models
+```
+
+**Linux/macOS**
+
+```sh
+./bin/sd-server --model-dir ../models
+```
+
+The Windows path above is for a Visual Studio Release build. Adjust the path
+for another build configuration or an extracted release archive. Open
+