Qwen Image Edit supports reference-image editing with the original, 2509, and 2511 checkpoints.
| Component | Weights and downloads | CLI option | Requirement |
|---|---|---|---|
| Qwen Image | Qwen Image Edit Safetensors GGUF Qwen Image Edit 2509 Safetensors GGUF Qwen Image Edit 2511 Safetensors GGUF |
--diffusion-model |
Required |
| vae | Safetensors | --vae |
Use matching VAE |
| qwen_2.5_vl 7b | Safetensors GGUF |
--llm |
Use matching text encoder |
Follow the Web UI guide 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.
| 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.
| Example | Description |
|---|---|
| Qwen Image Edit | Edit a reference image. |
| Qwen Image Edit 2509 | Use the 2509 checkpoint. |
| Qwen Image Edit 2511 | Use the 2511 checkpoint. |
Edit paths, prompts and settings in the script's var block, then run from
the build directory. Paths inside the script resolve from the working directory.
Windows (PowerShell)
.\bin\Release\sd-cli.exe -M dgl --script ..\docs\dgl\qwen_image_edit\qwen-image-edit.dglLinux/macOS
./bin/sd-cli -M dgl --script ../docs/dgl/qwen_image_edit/qwen-image-edit.dglChoose another script from the table to run a different task. Add --check
to validate syntax and types without loading weights. See the
shared run instructions for build paths
and the server's file-access rules.
CLI examples use the shared path and shell conventions.
Windows (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 1118877715456453Linux/macOS
./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 1118877715456453Windows (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 `
-vLinux/macOS
./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 \
-vTo 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)
.\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 `
-vLinux/macOS
./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 \
-vThe vision encoder uses a target area of 384 × 384 pixels for each reference
image, preserving its aspect ratio up to the encoder's patch alignment. VAE
reference latents use a separate resize based on the output size.


