| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The Qwen converter dropped per-module `.alpha` when keys were already named lora_A/lora_B, so LoRAs with alpha != rank loaded at the wrong strength (e.g. e-n-v-y/Qwen-Image-2.1-Fix-v2.0 at about a third). Fold it into the weights as the lora_down/lora_up path already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Hi @dkackman, thanks for the PR! It does not appear to link an issue it fixes. If this PR addresses an existing issue, please add a closing keyword (e.g. Fixes #1234) to the PR description so the issue is linked. See the contribution guide for more details. If this PR intentionally does not fix a tracked issue, a maintainer can add the no-issue-needed label to silence this reminder. Please note that PRs without a linked issue are likely to be automatically closed 10 days after this notice. Once the PR links an issue (or gets the no-issue-needed label), you can ignore this message — it stays here as a comment, but it no longer applies. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What does this PR do?
Fixes #14938
When a Qwen-Image LoRA's keys are already named lora_A/lora_B, the converter threw away the per-module .alpha. LoRAs trained with alpha ≠ rank therefore loaded at the wrong strength. For example, e-n-v-y/Qwen-Image-2.1-Fix-v2.0 loads at about a third of its intended strength. ai-toolkit and ComfyUI LoRAs commonly use this layout.
This PR folds the alpha into the weights, the same way the converter's lora_down/lora_up path and the Z-Image converter already do.
Behaviour changes:
LoRAs saved with lora_down/lora_up keys are unaffected, because alpha was already applied there. That includes the lightx2v/Qwen-Image-Lightning LoRAs used in the docs.
Related: #14932. Both PRs edit _convert_non_diffusers_qwen_lora_to_diffusers, so whichever merges second needs a small rebase.
Self-review notes
I ran the self-review skill. It found no blocking issues. Left for review:
Before submitting
Who can review?
@sayakpaul
🤖 Generated with Claude Code