Skip to content

Commit

Permalink
Use model.save_pretrained() to save model at the end of training
Browse files Browse the repository at this point in the history
  • Loading branch information
yukw777 committed Apr 5, 2023
1 parent c7164ee commit 51ca51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def train() -> None:
),
)
trainer.train()
trainer.save_model()
model.save_pretrained(training_args.output_dir)


if __name__ == "__main__":
Expand Down

0 comments on commit 51ca51d

Please sign in to comment.