[Trainer] Report both steps and num samples per second (#11818)
* [Trainer] Report both steps and num samples per second * Fix batch number * Update src/transformers/trainer_utils.py Co-authored-by: Stas Bekman <stas00@users.noreply.github.com> * Address review comments Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>
This commit is contained in:
@@ -316,6 +316,8 @@ class TrainerIntegrationCommon:
|
||||
_ = log1.pop("train_runtime", None)
|
||||
_ = log.pop("train_samples_per_second", None)
|
||||
_ = log1.pop("train_samples_per_second", None)
|
||||
_ = log.pop("train_steps_per_second", None)
|
||||
_ = log1.pop("train_steps_per_second", None)
|
||||
self.assertEqual(log, log1)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user