Skip to content

Commit

Permalink
Don't include PeftModel every time
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Mar 18, 2023
1 parent 86b9900 commit 7c945cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/LoRA.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from pathlib import Path

from peft import PeftModel

import modules.shared as shared
from modules.models import load_model


def add_lora_to_model(lora_name):

from peft import PeftModel

# Is there a more efficient way of returning to the base model?
if lora_name == "None":
print("Reloading the model to remove the LoRA...")
Expand Down

0 comments on commit 7c945cf

Please sign in to comment.