Only log total_flos at the end of training (#7981)
* Only log total_flos at the end of training * Fix test
This commit is contained in:
@@ -125,7 +125,7 @@ class TrainerCallbackTest(unittest.TestCase):
|
||||
expected_events.append("on_epoch_end")
|
||||
if trainer.args.evaluation_strategy == EvaluationStrategy.EPOCH:
|
||||
expected_events += evaluation_events.copy()
|
||||
expected_events.append("on_train_end")
|
||||
expected_events += ["on_log", "on_train_end"]
|
||||
return expected_events
|
||||
|
||||
def test_init_callback(self):
|
||||
|
||||
Reference in New Issue
Block a user