Skip to content

Commit

Permalink
make sure to set lora_model_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Jan 28, 2024
1 parent b9721c8 commit 27a524c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/axolotl/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def train(
resume_from_checkpoint = cfg.resume_from_checkpoint

if cfg.adapter and cfg.resume_from_checkpoint and not cfg.lora_model_dir:
LOG.info("")
LOG.info(f"setting lora_model_dir to use {cfg.resume_from_checkpoint}")
cfg.lora_model_dir = cfg.resume_from_checkpoint

# Load the model and tokenizer
msg = "loading model"
Expand Down

0 comments on commit 27a524c

Please sign in to comment.