Skip to content

Commit 42bb6bc

Browse files
committed
smol update
1 parent a771982 commit 42bb6bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/utils/peft_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def get_peft_kwargs(
152152
):
153153
if load_with_metadata:
154154
if "lora_metadata" not in peft_state_dict:
155-
raise ValueError("Couldn't find '_metadata' key in the `peft_state_dict`.")
155+
raise ValueError("Couldn't find 'lora_metadata' key in the `peft_state_dict`.")
156156
metadata = peft_state_dict["lora_metadata"]
157157
if prefix is not None:
158158
metadata = {k.replace(f"{prefix}.", ""): v for k, v in metadata.items()}

0 commit comments

Comments
 (0)