+3
-1
@@ -272,7 +272,9 @@ class LoRAModel(AdapterModel):
|
||||
f" target modules in {expected_lora_modules}"
|
||||
f" but received {unexpected_modules}."
|
||||
f" Please verify that the loaded LoRA module is correct")
|
||||
tensors = torch.load(lora_bin_file_path, map_location=device)
|
||||
tensors = torch.load(lora_bin_file_path,
|
||||
map_location=device,
|
||||
weights_only=True)
|
||||
else:
|
||||
raise ValueError(f"{lora_dir} doesn't contain tensors")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user