Skip to content

Commit 7c945cf

Browse files
committed
Don't include PeftModel every time
1 parent 86b9900 commit 7c945cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/LoRA.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from pathlib import Path
22

3-
from peft import PeftModel
4-
53
import modules.shared as shared
64
from modules.models import load_model
75

86

97
def add_lora_to_model(lora_name):
108

9+
from peft import PeftModel
10+
1111
# Is there a more efficient way of returning to the base model?
1212
if lora_name == "None":
1313
print("Reloading the model to remove the LoRA...")

0 commit comments

Comments
 (0)