Skip to content

Commit

Permalink
🔇🐛Fixed fit
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed Oct 14, 2024
1 parent a3d4865 commit 7c8f874
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/learn/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,13 @@ def fit(
else:
final_score = self.final_results.final_score
self.save_checkpoint(final_score)
console.debug("finalizing training")
if self.is_local_rank_0:
console.debug("finalizing training")
for callback in self.callbacks:
callback.finalize(self)
console.debug("finished training")
if self.is_local_rank_0:
console.debug("finished training")
self.accelerator.wait_for_everyone()
return self

## checkpointing
Expand Down

0 comments on commit 7c8f874

Please sign in to comment.