Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Mar 17, 2023
1 parent a717fd7 commit 614dad0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion modules/LoRA.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def add_lora_to_model(lora_name):

# Is there a more efficient way of returning to the base model?
if lora_name == "None":
print(f"Reloading the model to remove the LoRA...")
print("Reloading the model to remove the LoRA...")
shared.model, shared.tokenizer = load_model(shared.model_name)
else:
print(f"Adding the LoRA {lora_name} to the model...")
Expand Down
1 change: 0 additions & 1 deletion modules/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import torch
import transformers
from accelerate import infer_auto_device_map, init_empty_weights
from peft import PeftModel
from transformers import (AutoConfig, AutoModelForCausalLM, AutoTokenizer,
BitsAndBytesConfig)

Expand Down

0 comments on commit 614dad0

Please sign in to comment.