Add `tgs` speed metrics (#25858)
* Add tgs metrics
* bugfix and black formatting
* workaround for tokens counting
* formating and bugfix
* Fix
* Add opt-in for tgs metrics
* make style and fix error
* Fix doc
* fix docbuild
* hf-doc-build
* fix
* test
* Update src/transformers/training_args.py
renaming
Co-authored-by: Zach Mueller <muellerzr@gmail.com>
* Update src/transformers/training_args.py
renaming
Co-authored-by: Zach Mueller <muellerzr@gmail.com>
* Fix some symbol
* test
* Update src/transformers/trainer_utils.py
match nameing patterns
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* Update src/transformers/training_args.py
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* Update src/transformers/trainer.py
nice
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* Fix reviews
* Fix
* Fix black
---------
Co-authored-by: Zach Mueller <muellerzr@gmail.com>
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>