We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a771982 commit 42bb6bcCopy full SHA for 42bb6bc
src/diffusers/utils/peft_utils.py
@@ -152,7 +152,7 @@ def get_peft_kwargs(
152
):
153
if load_with_metadata:
154
if "lora_metadata" not in peft_state_dict:
155
- raise ValueError("Couldn't find '_metadata' key in the `peft_state_dict`.")
+ raise ValueError("Couldn't find 'lora_metadata' key in the `peft_state_dict`.")
156
metadata = peft_state_dict["lora_metadata"]
157
if prefix is not None:
158
metadata = {k.replace(f"{prefix}.", ""): v for k, v in metadata.items()}
0 commit comments