We employ block causal attention to improve inference speed of Qwen-Image-Edit-2511.
- Feb 15, 2026: 👋 Release Qwen-Image-Edit-Causal-V1.0.
- Qwen-Image-Edit-Causal
- Qwen-Image-Edit-Interactive (multi-turn edit)
The figure below illustrates the core design of Qwen-Image-Edit-Causal: reference-image queries attend only to their own keys and values, which reduces training-time computation and decouples the attention of reference images from the number of inference steps.
The test enviroment: H100 GPU, SDPA attention backend. All tests are conducted with image size fixed at 1024 x 1024. Please refer to Run Speed Test to reproduce the results.
| Method | 1 Ref Img | 2 Ref Img | 3 Ref Img |
|---|---|---|---|
| Qwen-Image-Edit-2511 80 NFE | 37.001 s | 63.300 s | 93.586 s |
| Qwen-Image-Edit-2511-Lightning 4 NFE | 1.847 s | 3.160 s | 4.664 s |
| Qwen-Image-Edit-Causal 4 NFE | 1.274 s | 1.684 s | 2.088 s |
Install python environment with uv
git clone https://github.com/ModelTC/Qwen-Image-Edit-Causal.git
cd Qwen-Image-Edit-Causal
uv venv
uv sync
source .venv/bin/activatepython generate_with_diffusers.py \
--model_name lightx2v/Qwen-Image-Edit-Causal \
--prompt_list_file examples/prompt_list.txt \
--image_path_list_file examples/image_path_list.txt \
--out_dir results/Qwen-Image-Edit-Causal \
--base_seed 0 --steps 4 --cfg 1.0# Qwen-Image-Edit-Causal
python test_inference_speed.py \
--model_name lightx2v/Qwen-Image-Edit-Causal \
--is_causal 1 --steps 4 --cfg 1
# Qwen-Image-Edit-2511-Lightning
python test_inference_speed.py \
--model_name Qwen/Qwen-Image-Edit-2511 \
--is_causal 0 --steps 4 --cfg 1
# Qwen-Image-Edit-2511
python test_inference_speed.py \
--model_name Qwen/Qwen-Image-Edit-2511 \
--is_causal 0 --steps 40 --cfg 4The models in this repository are licensed under the Apache 2.0 License. We claim no rights over your generated contents, granting you the freedom to use them while ensuring that your usage complies with the provisions of this license. You are fully accountable for your use of the models, which must not involve sharing any content that violates applicable laws, causes harm to individuals or groups, disseminates personal information intended for harm, spreads misinformation, or targets vulnerable populations. For a complete list of restrictions and details regarding your rights, please refer to the full text of the license.
We built upon and reused code from the following projects: Qwen-Image, Qwen-Image-Lightning, licensed under the Apache License 2.0.
The evaluation text prompts are from Qwen-Image, Qwen-Image Blog and Qwen-Image-Service.
The test cases for Image Editing are from Qwen-Image-Edit-api, reddit and Chat-Qwen-AI























