File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5195,7 +5195,7 @@ def load_lora_weights(
5195
5195
raise ValueError ("PEFT backend is required for this method." )
5196
5196
5197
5197
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 )
5199
5199
if low_cpu_mem_usage and is_peft_version ("<" , "0.13.0" ):
5200
5200
raise ValueError (
5201
5201
"`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(
5222
5222
adapter_name = adapter_name ,
5223
5223
_pipeline = self ,
5224
5224
low_cpu_mem_usage = low_cpu_mem_usage ,
5225
- load_with_metadata = load_with_metdata ,
5225
+ load_with_metadata = load_with_metadata ,
5226
5226
)
5227
5227
5228
5228
@classmethod
You can’t perform that action at this time.
0 commit comments