Skip to content

Commit e98fb84

Browse files
committed
fix
1 parent 61d3708 commit e98fb84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/loaders/lora_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5195,7 +5195,7 @@ def load_lora_weights(
51955195
raise ValueError("PEFT backend is required for this method.")
51965196

51975197
low_cpu_mem_usage = kwargs.pop("low_cpu_mem_usage", _LOW_CPU_MEM_USAGE_DEFAULT_LORA)
5198-
load_with_metdata = kwargs.get("load_with_metdata", False)
5198+
load_with_metadata = kwargs.get("load_with_metadata", False)
51995199
if low_cpu_mem_usage and is_peft_version("<", "0.13.0"):
52005200
raise ValueError(
52015201
"`low_cpu_mem_usage=True` is not compatible with this `peft` version. Please update it with `pip install -U peft`."
@@ -5222,7 +5222,7 @@ def load_lora_weights(
52225222
adapter_name=adapter_name,
52235223
_pipeline=self,
52245224
low_cpu_mem_usage=low_cpu_mem_usage,
5225-
load_with_metadata=load_with_metdata,
5225+
load_with_metadata=load_with_metadata,
52265226
)
52275227

52285228
@classmethod

0 commit comments

Comments
 (0)