We are excited to release the distilled version of Qwen-Image. It preserves the capability of complex text rendering.
- Aug 28, 2025: 👋 Release workflows for
Qwen-Image-Edit-Lightning
. - Aug 24, 2025: 👋 Release Qwen-Image-Edit-Lightning-4steps-V1.0 and its bf16 version.
- Aug 23, 2025: 👋 Release Qwen-Image-Edit-Lightning-8steps-V1.0 and its bf16 version.
- Aug 12, 2025: 👋 Release Qwen-Image-Lightning-8steps-V1.1.
- Aug 12, 2025: 👋 Upload the bf16 version of the 8-step model Qwen-Image-Lightning-8steps-V1.1-bf16 and 4-step model Qwen-Image-Lightning-4steps-V1.0-bf16.
- Aug 11, 2025: 👋 Release Qwen-Image-Lightning-4steps-V1.0.
- Aug 08, 2025: 👋 Release Qwen-Image-Lightning-8steps-V1.0.
- Diffusers now supports loading Qwen-Image-Lightning within the Qwen-Image pipeline. Please check their documentation for details.
- ComfyUI provides native workflows for Qwen-Image and Qwen-Image-Edit, including Lightning LoRA weights.
- Nunchaku has released 4-bit Qwen-Image lightning. Try their example script to reduce inference GPU memory usage.
- Qwen-Image-Lightning-8steps-V1.1
- Qwen-Image-Lightning-8steps-V1.0
- Qwen-Image-Lightning-4steps-V1.0
- ComfyUI Workflow
- Improve Quality
- Qwen-Image-Edit-Lightning-8steps-V1.0
- Qwen-Image-Edit-Lightning-4steps-V1.0
- Qwen Edit ComfyUI Workflow
To assess the distilled models' performance characteristics, including their strengths and limitations, we compare the performance of the three models, i.e., Qwen-Image
, Qwen-Image-Lightning-8steps-V1.1
, and Qwen-Image-Lightning-4steps-V1.0
, in different scenarios. The results can be reproduced following the section below.
Compared to the base model, the distilled models (8-step and 4-step) deliver a 12–25× speed improvement with no significant loss in performance in most cases.
In scenarios involving dense or small text, the base model is more likely to produce better results.
In scenes containing hair-like details, the base model demonstrates superior rendering fidelity, whereas the distilled models may yield outputs that appear either noticeably blurred or excessively sharpened.
Prompt | Base NFE=100 | 8steps-V1.1 NFE=8 | 4steps-V1.0 NFE=4 |
---|---|---|---|
A capybara wearing a suit holding a sign that reads Hello World. | ![]() |
![]() |
![]() |
In highly complex scenes, all three models may fail to produce satisfactory results.
Test results may vary across different cases. In certain test instances, the base model may perform better, whereas in others, the distilled models may achieve superior results. Even for the same prompt at different resolutions, the relative performance ranking of the models may differ substantially.
We compare the performance of the three models, i.e., Qwen-Image-Edit-Diffusers
, Qwen-Image-Edit-Lightning-8steps-V1.0
, and Qwen-Image-Edit-Lightning-4steps-V1.0
, in different scenarios. The results can be reproduced following the section below.
Please follow Qwen-Image to install the Python Environment, e.g., diffusers v0.35.1, and download the Base Model.
Download models using huggingface-cli:
pip install "huggingface_hub[cli]"
huggingface-cli download lightx2v/Qwen-Image-Lightning --local-dir ./Qwen-Image-Lightning
# 8 steps, cfg 1.0
python generate_with_diffusers.py \
--prompt_list_file examples/prompt_list.txt \
--out_dir test_lora_8_step_results \
--lora_path Qwen-Image-Lightning/Qwen-Image-Lightning-8steps-V1.0.safetensors \
--base_seed 42 --steps 8 --cfg 1.0
# 4 steps, cfg 1.0
python generate_with_diffusers.py \
--prompt_list_file examples/prompt_list.txt \
--out_dir test_lora_4_step_results \
--lora_path Qwen-Image-Lightning/Qwen-Image-Lightning-4steps-V1.0.safetensors \
--base_seed 42 --steps 4 --cfg 1.0
# 50 steps, cfg 4.0
python generate_with_diffusers.py \
--prompt_list_file examples/prompt_list.txt \
--out_dir test_base_results \
--base_seed 42 --steps 50 --cfg 4.0
# 8 steps, cfg 1.0
python generate_with_diffusers.py \
--prompt_list_file examples/edit_prompt_list.txt \
--image_path_list_file examples/image_path_list.txt \
--model_name Qwen/Qwen-Image-Edit \
--out_dir test_lora_8_step_edit_results \
--lora_path Qwen-Image-Lightning/Qwen-Image-Edit-Lightning-8steps-V1.0.safetensors \
--base_seed 42 --steps 8 --cfg 1.0
# 4 steps, cfg 1.0
python generate_with_diffusers.py \
--prompt_list_file examples/edit_prompt_list.txt \
--image_path_list_file examples/image_path_list.txt \
--model_name Qwen/Qwen-Image-Edit \
--out_dir test_lora_4_step_edit_results \
--lora_path Qwen-Image-Lightning/Qwen-Image-Edit-Lightning-4steps-V1.0.safetensors \
--base_seed 42 --steps 4 --cfg 1.0
# 50 steps, cfg 4.0
python generate_with_diffusers.py \
--prompt_list_file examples/edit_prompt_list.txt \
--image_path_list_file examples/image_path_list.txt \
--model_name Qwen/Qwen-Image-Edit \
--out_dir test_base_edit_results \
--base_seed 42 --steps 50 --cfg 4.0
ComfyUI workflow is available in the workflows/
directory.
-
The Qwen-Image workflow is based on the Qwen-Image ComfyUI tutorial and has been verified with ComfyUI repository at commit ID
37d620a6b85f61b824363ed8170db373726ca45a
. -
The Qwen-Image-Edit workflow is based on the Qwen-Image-Edit ComfyUI tutorial. We noticed a gap in performance compared to diffusers inference, which may stem from differences in how ComfyUI and diffusers handle the processing.
workflows/qwen-image-8steps.json
- 8-step lightning workflow for Qwen-Imageworkflows/qwen-image-4steps.json
- 4-step lightning workflow for Qwen-Imageworkflows/qwen-image-edit-8steps.json
- 8-step lightning workflow for Qwen-Image-Editworkflows/qwen-image-edit-4steps.json
- 4-step lightning workflow for Qwen-Image-Edit
- Install ComfyUI following the official instructions
- Download and place the Qwen-Image or Qwen-Image-Edit base model following the Qwen-Image ComfyUI tutorial, Qwen-Image-Edit ComfyUI tutorial (include UNet/CLIP/VAE files into proper ComfyUI folders)
- For Qwen Image workflows:
- 8-step: Load
workflows/qwen-image-8steps.json
, putQwen-Image-Lightning-8steps-V1.0.safetensors
intoComfyUI/models/loras/
, and setKSampler
steps to 8 - 4-step: Load
workflows/qwen-image-4steps.json
, putQwen-Image-Lightning-4steps-V1.0.safetensors
intoComfyUI/models/loras/
, and setKSampler
steps to 4
- 8-step: Load
- For Qwen Image Edit workflows:
- 8-step: Load
workflows/qwen-image-edit-8steps.json
, putQwen-Image-Edit-Lightning-8steps-V1.0.safetensors
intoComfyUI/models/loras/
, and setKSampler
steps to 8 - 4-step: Load
workflows/qwen-image-edit-4steps.json
, putQwen-Image-Edit-Lightning-4steps-V1.0.safetensors
intoComfyUI/models/loras/
, and setKSampler
steps to 4
- 8-step: Load
- Run the workflow to generate images
The 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, 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 and reddit.