Skip to content

Commit

Permalink
Merge pull request #5 from fsherry/main
Browse files Browse the repository at this point in the history
Explicitly save model after training (to deal with bug in transformers 4.29.2)
  • Loading branch information
maximilianherde authored Jun 20, 2024
2 parents d3fcf01 + a694636 commit 2cc8c85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scOT/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ def get_statistics(errors):
)

trainer.train(resume_from_checkpoint=params.resume_training)

trainer.save_model(train_config.output_dir)

if (RANK == 0 or RANK == -1) and params.push_to_hf_hub is not None:
model.push_to_hub(params.push_to_hf_hub)

Expand Down

0 comments on commit 2cc8c85

Please sign in to comment.