Instructions to use lightx2v/Qwen-Image-Lightning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lightx2v/Qwen-Image-Lightning with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("lightx2v/Qwen-Image-Lightning") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Compatibility issues between Qwen-Image-Edit-2509 and existing Lightning Lora in ComfyUI (or local environments).
(Note: I'm not very good at English, so I'm using machine translation. Also, this is a re-edited version of something I wrote on Reddit's Stable Diffusion board.(https://www.reddit.com/r/StableDiffusion/comments/1no70uo/compatibility_issues_between_qwenimageedit2509/))
I was trying out the new Qwen-Image-Edit-2509's multiple image input feature in ComfyUI.
The test involved inputting images of a plate and a box separately, asking it to place the box on top of the plate.
However, when outputting without applying Lightning Lora and setting KSampler to 20 steps and 2.5CFG, it produced the first image (which is generally the result I expected). But when applying Lightning Lora and setting KSampler to 4 steps and 1.0CFG, it produced the second image instead. (Please disregard the image quality, as it likely stems from using GGUF's 4-bit quantized version. The Qwen Chat version performs very well.)
Based on this, I suspect the 2509 version may lack compatibility with existing Lora implementations. What do you think?
(This text was machine translated using DeepL.)
Below is the original text.
ComfyUI(あるいはローカル環境)におけるQwen-Image-Edit-2509と既存のLightning Loraの互換性の問題。
(注:英語があまり得意ではないので、機械翻訳を使用しています。また、この文章はRedditのStable Diffusion板に書いたものの再編集版です(https://www.reddit.com/r/StableDiffusion/comments/1no70uo/compatibility_issues_between_qwenimageedit2509/))
私は新しく出たQwen-Image-Edit-2509の複数画像入力をComfyUIで試していました。
テストの内容は皿の画像と箱の画像をそれぞれ入力し、皿の上に箱を載せてもらう。というものです。
しかし、Lightning Loraを適用せずKSamplerの設定を20ステップと2.5CFGとして出力すると1枚目の画像(概ね期待した通りの結果です)が出力されるのに対し、Lightning Loraを適用しKSamplerの設定を4ステップと1.0CFGにすると2枚目の画像のようになってしまいます。(画質についてはGGUFの4ビット量子化版を使ったからだと思われるので気にしないでください。Qwen Chat版はとても良く働いてくれます)
このことから、2509版は既存のLoraとの互換性を欠いている可能性があると思うのですがどうでしょうか?
(この文章はDeepLを使って機械翻訳されました)
do you have update ComfyUI to latest version, some node has been upgraded.
best wishes to you.
A volunteer informed me that “Qwen-Image-Lightning-4steps-V2.0 series Lora outputs correctly,” so I verified it and successfully reproduced the issue in my own environment.
The V2.0 Lora with “Edit” should still be in development, and I don't understand why the non-“Edit” Lora works fine, but at least I'm glad I could confirm this solution works.
I hope this helps other users experiencing similar issues.
(This text was machine translated using DeepL.)
Image with workflow.
Below is the original text.
ある有志が「Qwen-Image-Lightning-4steps-V2.0系のLoraなら正常に出力してくれる」と伝えてくれたので検証してみたところ、自分の環境でも無事再現できました。
Editが付く方のV2.0版Loraは開発途中のはずですし、なぜEditが付かない方のLoraで上手く行くのか自分にはわかりませんが、とりあえずこれでどうにか出来ると確認できてよかったです。
似た症状に悩まされている他のユーザーなどの助けになれば幸いです。
