Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Mar 17, 2023
1 parent 7da742e commit f0b2645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/LoRA.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ def add_lora_to_model(lora_name):
print("Reloading the model to remove the LoRA...")
shared.model, shared.tokenizer = load_model(shared.model_name)
else:
# Why doesn't this work in 16-bit mode?
print(f"Adding the LoRA {lora_name} to the model...")
shared.model = PeftModel.from_pretrained(shared.model, Path(f"loras/{lora_name}"))

0 comments on commit f0b2645

Please sign in to comment.