Skip to content

Commit 2cc8c85

Browse files
Merge pull request #5 from fsherry/main
Explicitly save model after training (to deal with bug in transformers 4.29.2)
2 parents d3fcf01 + a694636 commit 2cc8c85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scOT/train.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ def get_statistics(errors):
407407
)
408408

409409
trainer.train(resume_from_checkpoint=params.resume_training)
410-
410+
trainer.save_model(train_config.output_dir)
411+
411412
if (RANK == 0 or RANK == -1) and params.push_to_hf_hub is not None:
412413
model.push_to_hub(params.push_to_hf_hub)
413414

0 commit comments

Comments
 (0)