Instruction-based image editing with Alibaba's Qwen-Image-Edit, loaded as a 4-bit GGUF transformer so it runs on consumer GPUs. Give it one image and a text instruction and it returns edited image(s) — strong at novel viewpoints (rotate an object to show its back/side), style changes, object add/remove, and background swaps.
Apache 2.0 and ungated — no HuggingFace login, no token, no license click. The download just works.
Qwen-Image-Edit is a 20B model with a separate ~7B text encoder. The transformer is loaded as a low-bit GGUF, the text encoder is 4-bit, and model CPU offload swaps them on/off the GPU. The Transformer Quant is your main VRAM knob — model offload puts the whole transformer on the GPU during denoising, so it has to fit:
System RAM matters as much as VRAM — offloaded weights live there. 32GB+ is strongly recommended; with less you may hit out-of-memory or heavy swapping.
gguf loader, and bitsandbytes into an isolated venv).calcuis/qwen-image-edit-gguf) and the decoder bundle (callgg/image-edit-decoder, which holds the text encoder + VAE).If the model fails to load with a from_single_file error, your diffusers is too old for Qwen GGUF loading — update it in the extension venv (pip install -U diffusers) and retry. This is bleeding-edge; the first run on a given machine sometimes needs that bump.
rotate the object 180 degrees to show the back, three-quarter side view, change the background to a sunset beach).Number of Outputs = 1 emits a single image (same as the text-to-image node). Set 2–4 for multiple variations in one run (each uses a different seed); the node then emits a list of images.
Qwen-Image-Edit follows explicit instructions well and preserves the subject's identity. Describe the change directly, make one change at a time, and for viewpoints be specific ("rotate 90° left", "view from above").
| Parameter | Default | Notes |
|---|---|---|
| Memory Mode | Auto | Offload strategy (see below) |
| Transformer Quant | Q3_K_M | Main VRAM knob — pick to fit your GPU (see VRAM reality) |
| Steps | 40 | 40–50 is typical; higher = slower |
| CFG Scale | 4.0 | Prompt adherence (true_cfg_scale); ~2.5–4 works well |
| Number of Outputs | 1 | 1–4 variations per run |
| Seed | 0 | 0 = random each run; fixed = reproducible |
Changing the Transformer Quant downloads that GGUF file the next time you run (the ~15GB decoder bundle is shared and isn't re-downloaded).
| Mode | What it does | Rough VRAM |
|---|---|---|
| Auto / Offload | 4-bit text encoder + model CPU offload | depends on quant (≈ quant size + a few GB) |
| Max Speed | Everything on the GPU, no offload | big GPUs only (24GB+) |
Both modes 4-bit the text encoder via bitsandbytes (installed at setup). If it's missing, it falls back to the bf16 encoder, which needs a much larger GPU. Note: GGUF transformers are not compatible with per-layer (sequential) CPU offload, so that mode was removed — model offload is the working path.
qwen-image-edit-iq4_nl.gguf, it's ~11.6GB and too big for 12GB — you can delete that file from the model folder to reclaim space.Extension code is MIT — see LICENSE. The Qwen-Image-Edit weights it downloads are Apache 2.0 (Alibaba's Qwen team), which permits commercial use. This is an independent community extension, not affiliated with Alibaba, Hugging Face, or Modly; each user is responsible for complying with the model license and for whatever they generate. Provided "as is", without warranty.
4 commits
Python
100.0%
Instruction-based image editing with Alibaba's Qwen-Image-Edit, loaded as a 4-bit GGUF transformer so it runs on consumer GPUs. Give it one image and a text instruction and it returns edited image(s) — strong at novel viewpoints (rotate an object to show its back/side), style changes, object add/remove, and background swaps.
Apache 2.0 and ungated — no HuggingFace login, no token, no license click. The download just works.
Qwen-Image-Edit is a 20B model with a separate ~7B text encoder. The transformer is loaded as a low-bit GGUF, the text encoder is 4-bit, and model CPU offload swaps them on/off the GPU. The Transformer Quant is your main VRAM knob — model offload puts the whole transformer on the GPU during denoising, so it has to fit:
System RAM matters as much as VRAM — offloaded weights live there. 32GB+ is strongly recommended; with less you may hit out-of-memory or heavy swapping.
gguf loader, and bitsandbytes into an isolated venv).calcuis/qwen-image-edit-gguf) and the decoder bundle (callgg/image-edit-decoder, which holds the text encoder + VAE).If the model fails to load with a from_single_file error, your diffusers is too old for Qwen GGUF loading — update it in the extension venv (pip install -U diffusers) and retry. This is bleeding-edge; the first run on a given machine sometimes needs that bump.
rotate the object 180 degrees to show the back, three-quarter side view, change the background to a sunset beach).Number of Outputs = 1 emits a single image (same as the text-to-image node). Set 2–4 for multiple variations in one run (each uses a different seed); the node then emits a list of images.
Qwen-Image-Edit follows explicit instructions well and preserves the subject's identity. Describe the change directly, make one change at a time, and for viewpoints be specific ("rotate 90° left", "view from above").
| Parameter | Default | Notes |
|---|---|---|
| Memory Mode | Auto | Offload strategy (see below) |
| Transformer Quant | Q3_K_M | Main VRAM knob — pick to fit your GPU (see VRAM reality) |
| Steps | 40 | 40–50 is typical; higher = slower |
| CFG Scale | 4.0 | Prompt adherence (true_cfg_scale); ~2.5–4 works well |
| Number of Outputs | 1 | 1–4 variations per run |
| Seed | 0 | 0 = random each run; fixed = reproducible |
Changing the Transformer Quant downloads that GGUF file the next time you run (the ~15GB decoder bundle is shared and isn't re-downloaded).
| Mode | What it does | Rough VRAM |
|---|---|---|
| Auto / Offload | 4-bit text encoder + model CPU offload | depends on quant (≈ quant size + a few GB) |
| Max Speed | Everything on the GPU, no offload | big GPUs only (24GB+) |
Both modes 4-bit the text encoder via bitsandbytes (installed at setup). If it's missing, it falls back to the bf16 encoder, which needs a much larger GPU. Note: GGUF transformers are not compatible with per-layer (sequential) CPU offload, so that mode was removed — model offload is the working path.
qwen-image-edit-iq4_nl.gguf, it's ~11.6GB and too big for 12GB — you can delete that file from the model folder to reclaim space.Extension code is MIT — see LICENSE. The Qwen-Image-Edit weights it downloads are Apache 2.0 (Alibaba's Qwen team), which permits commercial use. This is an independent community extension, not affiliated with Alibaba, Hugging Face, or Modly; each user is responsible for complying with the model license and for whatever they generate. Provided "as is", without warranty.
4 commits
Python
100.0%