Skip to content

Commit

Permalink
feat(merge): save tokenizer on merge (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoCode012 committed Aug 12, 2023
1 parent 35c8b90 commit 289d5c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def train(
if cfg.local_rank == 0:
LOG.info("saving merged model")
model.save_pretrained(str(Path(cfg.output_dir) / "merged"))
tokenizer.save_pretrained(str(Path(cfg.output_dir) / "merged"))
return

if cfg.inference:
Expand Down

0 comments on commit 289d5c4

Please sign in to comment.