Skip to content

[Bugfix] Crash prevention in .down.alpha layers. - #2415

Open
Symbiomatrix wants to merge 1 commit into
kohya-ss:mainfrom
Symbiomatrix:bugfix3
Open

[Bugfix] Crash prevention in .down.alpha layers.#2415
Symbiomatrix wants to merge 1 commit into
kohya-ss:mainfrom
Symbiomatrix:bugfix3

Conversation

@Symbiomatrix

@Symbiomatrix Symbiomatrix commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

I've encountered a lora (now deleted) that has layers diffusion_model.blocks.0.mlp.down.alpha/lora_down.weight/lora_up.weight. Checking the last two parts causes mlp.down.alpha to be detected as a down layer (instead of lora_down.weight as intended), which then crashes in old_rank = lora_down_weight.size()[0].
Double checking the lack of .alpha key corrected this error and should have no downside since alpha is assumed to be reserved in another place.
Edit: Have encountered another one since by someone else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant