---
title: Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend
canonical_url: "https://www.modelscope.cn/models/Wuli-Art/Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend"
md_url: "https://www.modelscope.cn/models/Wuli-Art/Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend.md"
repository: Wuli-Art/Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend
chinese_name: Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend
last_updated: 2026-08-14
license: apache-2.0
pipeline_tag: image-to-image
tasks:
  - image-to-image
base_model:
  - google/gemma-4-12B
base_model_relation: finetune
parameters: 24.0B
tensor_type:
  - F8_E4M3
  - BF16
  - U8
  - F32
library_name:
  - safetensors
language:
  - en
  - zh
downloads: 90
stars: 5
---

# Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend

> Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend - Wuli-Art 在 ModelScope 开源的模型。Prompt extend plays a critical role in image editing by helping models better understand editing intent and produce more accurate and stable results.

Wuli-Art/Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend 是 ModelScope 魔搭社区上的 24.0B 参数image-to-image模型，采用 apache-2.0 许可，基于 google/gemma-4-12B 构建。

- **Repository**: Wuli-Art/Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend
- **License**: apache-2.0
- **Tasks**: image-to-image
- **Parameters**: 24.0B
- **Base model**: google/gemma-4-12B
- **Downloads**: 90
- **Stars**: 5
- **Last updated**: 2026-08-14

Source: https://www.modelscope.cn/models/Wuli-Art/Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend

---

<div align="center">
<img src="https://img.alicdn.com/imgextra/i4/O1CN011xTzi6280yXyGmk9b_!!6000000007871-0-tps-3072-938.jpg" width=300 />
</div>

Prompt extend plays a critical role in image editing by helping models better understand editing intent and produce more accurate and stable results.

This model is fine-tuned from [gemma-4-12B-it](https://huggingface.co/google/gemma-4-12B-it) for prompt extend with [Qwen Image Edit 2511](https://huggingface.co/Qwen/Qwen-Image-Edit-2511). It takes an editing prompt together with input images and generates an enhanced editing prompt. The model is trained with Prompt Extend Reinforcement Learning (PERL) using [ROLL](https://github.com/alibaba/ROLL), with [Kimi K2.6](https://huggingface.co/moonshotai/Kimi-K2.6) serving as the reward worker to evaluate editing results.

<div align="center">
<img src="https://img.alicdn.com/imgextra/i2/O1CN01EwAJvGc1D4D3OTaP_!!6000000001034-2-tps-1672-941.png" width=600 />
</div>

In real-world scenarios, this model delivers better and more stable editing results across a wide range of complex edit prompts. For now, we recommend using this model together with the Qwen Image Edit 2511 8steps LoRA from [lightx2v](https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/blob/main/Qwen-Image-Edit-2511-Lightning-8steps-V1.0-bf16.safetensors) for end-to-end image editing. Please refer to the provided ComfyUI workflow for more details.

# ComfyUI Workflow

A ready-to-use ComfyUI workflow is provided [here](<https://wuli-ai.oss-cn-zhangjiakou.aliyuncs.com/image/public/qwen_image_edit_2511_gemma_pe.json>).

## Model Download

For models provided by Comfy-Org, you may use any compatible precision or quantized variant. This guide uses the original BF16 version for demonstration.

Download the required model files and place each one in the corresponding ComfyUI directory listed below.

| Component | Model file | Source | ComfyUI directory |
| --- | --- | --- | --- |
| Prompt extension model | `gemma4_12b_qwen_image_edit_2511_pe.safetensors` / `gemma4_12b_qwen_image_edit_2511_pe_fp8_scaled.safetensors` | [ModelScope](https://www.modelscope.cn/models/Wuli-Art/Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend) / [HuggingFace](https://huggingface.co/Wuli-art/Gemma-4-for-Qwen-Image-Edit-2511-Prompt-Extend) | `ComfyUI/models/text_encoders/` |
| Text encoder | `qwen_2.5_vl_7b.safetensors` | [Comfy-Org/Qwen-Image_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/text_encoders) | `ComfyUI/models/text_encoders/` |
| VAE | `qwen_image_vae.safetensors` | [Comfy-Org/Qwen-Image_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/vae) | `ComfyUI/models/vae/` |
| DiT | `qwen_image_edit_2511_bf16.safetensors` | [Comfy-Org/Qwen-Image-Edit_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main/split_files/diffusion_models) | `ComfyUI/models/diffusion_models/` |
| Lightning LoRA | `Qwen-Image-Edit-2511-Lightning-8steps-V1.0-bf16.safetensors` | [lightx2v/Qwen-Image-Edit-2511-Lightning](https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/blob/main/Qwen-Image-Edit-2511-Lightning-8steps-V1.0-bf16.safetensors) | `ComfyUI/models/loras/` |

Once downloaded, your ComfyUI model directory should have the following structure:

```text
ComfyUI/
└── models/
    ├── text_encoders/
    │   ├── gemma4_12b_qwen_image_edit_2511_pe.safetensors
    │   └── qwen_2.5_vl_7b.safetensors
    ├── vae/
    │   └── qwen_image_vae.safetensors
    ├── diffusion_models/
    │   └── qwen_image_edit_2511_bf16.safetensors
    └── loras/
        └── Qwen-Image-Edit-2511-Lightning-8steps-V1.0-bf16.safetensors
```

## Usage

1. Download all required model files and place them in the directories shown above.
2. Restart ComfyUI or refresh the model list.
3. Download the workflow JSON file and drag it onto the ComfyUI canvas.
4. Make sure each loader node points to the corresponding downloaded model.
5. Load one or more input images.
6. Enter the original editing instruction.
7. Run the workflow to obtain the extended prompt.

# Result Visualization

The table below presents editing results of Qwen Image Edit 2511 based on four different prompt extend methods: 
* No prompt extend
* Use Qwen3.7 Plus from [Bailian](https://bailian.console.aliyun.com/cn-beijing#/home)
* Use the original gemma-4-12B-it
* Use the fine-tuned gemma-4-12B-it in this repo

All prompt extend methods use the same system prompt from the official [GitHub Repo](https://github.com/QwenLM/Qwen-Image/blob/main/src/examples/tools/prompt_utils.py#L182).

| <span style="display:inline-block;width:100px">Original Prompt</span> | Input Images | No Prompt Extend | Qwen3.7 Plus | Gemma Base | Ours |
| --- | --- | --- | --- | --- | --- |
| <span style="display:inline-block;width:100px">Refer to the goji-berry water cup design in Image 2 and place it on the desk next to the mouse</span> | <img src="https://gw.alicdn.com/imgextra/i3/O1CN01sHXBNibKx7F1chua_!!6000000003833-0-tps-800-800.jpg" width="160" alt="Input image 1"><br><img src="https://gw.alicdn.com/imgextra/i2/O1CN01PJboIXew47J21stE_!!6000000003704-0-tps-1000-1000.jpg" width="160" alt="Input image 2"> | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01spU8T0jzPTK24uCu_!!6000000000438-2-tps-1024-1024.png" width="160" alt="No Prompt Extend result"> | <img src="https://gw.alicdn.com/imgextra/i3/O1CN01VrlcVtiPs4H24uCu_!!6000000003738-2-tps-1024-1024.png" width="160" alt="Qwen3.7 Plus result"> | <img src="https://gw.alicdn.com/imgextra/i3/O1CN01L3OL3LaeS6F24uCu_!!6000000001934-2-tps-1024-1024.png" width="160" alt="Gemma Base result"> | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01WGupowSQWzB24uCu_!!6000000000921-2-tps-1024-1024.png" width="160" alt="Ours result"> |
| <span style="display:inline-block;width:100px">Help me generate a half-body image of this person</span> | <img src="https://gw.alicdn.com/imgextra/i3/O1CN01XLbtqxbmDmJ2WLmU_!!6000000004406-0-tps-1242-1656.jpg" width="160" alt="Input image"> | <img src="https://gw.alicdn.com/imgextra/i2/O1CN01sdqKA7B3QuI1onFw_!!6000000007974-2-tps-896-1184.png" width="160" alt="No Prompt Extend result"> | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01uCITd1a3AUJ1onFw_!!6000000007907-2-tps-896-1184.png" width="160" alt="Qwen3.7 Plus result"> | <img src="https://gw.alicdn.com/imgextra/i4/O1CN01wZvNPSQetiH1onFw_!!6000000001400-2-tps-896-1184.png" width="160" alt="Gemma Base result"> | <img src="https://gw.alicdn.com/imgextra/i1/O1CN016o1wUFhldrG1onFw_!!6000000006836-2-tps-896-1184.png" width="160" alt="Ours result"> |
| <span style="display:inline-block;width:100px">Keep the main subject unchanged and generate a three-view sheet from different angles</span> | <img src="https://gw.alicdn.com/imgextra/i2/O1CN01RFRbkTViukK1tZrB_!!6000000003288-0-tps-934-1279.jpg" width="160" alt="Input image"> | <img src="https://gw.alicdn.com/imgextra/i2/O1CN0109D9Hx91dcL1klVY_!!6000000006284-2-tps-864-1184.png" width="160" alt="No Prompt Extend result"> | <img src="https://gw.alicdn.com/imgextra/i3/O1CN01hgCphpaf9zJ1klVY_!!6000000001825-2-tps-864-1184.png" width="160" alt="Qwen3.7 Plus result"> | <img src="https://gw.alicdn.com/imgextra/i4/O1CN01wHNbGmUG0fE1klVY_!!6000000004226-2-tps-864-1184.png" width="160" alt="Gemma Base result"> | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01y4jK7933f5H1klVY_!!6000000007945-2-tps-864-1184.png" width="160" alt="Ours result"> |
| <span style="display:inline-block;width:100px">Generate a high-altitude, top-down view of the ground from Image 1</span> | <img src="https://gw.alicdn.com/imgextra/i2/O1CN01XiiT3ZqExlF1Kpka_!!6000000001054-0-tps-658-1170.jpg" width="160" alt="Input image"> | <img src="https://gw.alicdn.com/imgextra/i1/O1CN012ElXBEDjuiH1RNd0_!!6000000006027-2-tps-710-1312.png" width="160" alt="No Prompt Extend result"> | <img src="https://gw.alicdn.com/imgextra/i2/O1CN01JPWQa8UghSI1YgJU_!!6000000006869-2-tps-768-1376.png" width="160" alt="Qwen3.7 Plus result"> | <img src="https://gw.alicdn.com/imgextra/i2/O1CN01xUu8uA0dXyI1YgJU_!!6000000003699-2-tps-768-1376.png" width="160" alt="Gemma Base result"> | <img src="https://gw.alicdn.com/imgextra/i2/O1CN01CqgrSjDyTNC1YgJU_!!6000000002740-2-tps-768-1376.png" width="160" alt="Ours result"> |
| <span style="display:inline-block;width:100px">Generate a CAD drawing of this image.</span> | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01VHr7ao8TvZC2R3rs_!!6000000001433-0-tps-1200-1200.jpg" width="160" alt="Input image"> | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01C5q2cVtafyG24uCu_!!6000000007924-2-tps-1024-1024.png" width="160" alt="No Prompt Extend result"> | <img src="https://gw.alicdn.com/imgextra/i4/O1CN01eAaInEKBKGI24uCu_!!6000000000555-2-tps-1024-1024.png" width="160" alt="Qwen3.7 Plus result"> | <img src="https://gw.alicdn.com/imgextra/i2/O1CN01BSjcnV3kIuE2miJM_!!6000000005120-2-tps-1372-1380.png" width="160" alt="Gemma Base result"> | <img src="https://gw.alicdn.com/imgextra/i1/O1CN01XkXluZmMB8B24uCu_!!6000000003374-2-tps-1024-1024.png" width="160" alt="Ours result"> |
