Skip to content

Commit 8b050ea

Browse files
committed
proper peft version for lora_bias
1 parent 49c0242 commit 8b050ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/diffusers/loaders/lora_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2542,7 +2542,7 @@ def load_lora_into_text_encoder(
25422542
if lora_config_kwargs["lora_bias"]:
25432543
if is_peft_version("<=", "0.13.2"):
25442544
raise ValueError(
2545-
"You need `peft` 0.13.3 at least to use `bias` in LoRAs. Please upgrade your installation of `peft`."
2545+
"You need `peft` 0.14.0 at least to use `bias` in LoRAs. Please upgrade your installation of `peft`."
25462546
)
25472547
else:
25482548
if is_peft_version("<=", "0.13.2"):

src/diffusers/loaders/peft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def load_lora_adapter(self, pretrained_model_name_or_path_or_dict, prefix="trans
293293
if lora_config_kwargs["lora_bias"]:
294294
if is_peft_version("<=", "0.13.2"):
295295
raise ValueError(
296-
"You need `peft` 0.13.3 at least to use `lora_bias` in LoRAs. Please upgrade your installation of `peft`."
296+
"You need `peft` 0.14.0 at least to use `lora_bias` in LoRAs. Please upgrade your installation of `peft`."
297297
)
298298
else:
299299
if is_peft_version("<=", "0.13.2"):

0 commit comments

Comments
 (0)