Load more than one LoRA with --lora, fix a bug

This commit is contained in:
oobabooga 2023-04-25 22:58:48 -03:00
parent 15940e762e
commit f39c99fa14
4 changed files with 4 additions and 4 deletions

View file

@ -913,7 +913,7 @@ if __name__ == "__main__":
# Load the model
shared.model, shared.tokenizer = load_model(shared.model_name)
if shared.args.lora:
add_lora_to_model([shared.args.lora])
add_lora_to_model(shared.args.lora)
# Force a character to be loaded
if shared.is_chat():