Skip to content

Commit 0a7be77

Browse files
Update src/diffusers/loaders/lora_conversion_utils.py
Co-authored-by: Sayak Paul <[email protected]>
1 parent 5284a9c commit 0a7be77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/loaders/lora_conversion_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ def get_alpha_scales(down_weight, alpha_key):
18711871
if has_alpha:
18721872
down_weight = original_state_dict.pop(original_key_A)
18731873
up_weight = original_state_dict.pop(original_key_B)
1874-
scale_down, scale_up = get_alpha_scales(down_weight, f"blocks.{i}.self_attn.{o}.alpha")
1874+
scale_down, scale_up = get_alpha_scales(down_weight, alpha_key)
18751875
converted_state_dict[converted_key_A] = down_weight * scale_down
18761876
converted_state_dict[converted_key_B] = up_weight * scale_up
18771877

0 commit comments

Comments
 (0)