Migrate Trainer from `Repository` to `upload_folder` (#25095)
* First draft
* Deal with progress bars
* Update src/transformers/utils/hub.py
Co-authored-by: Lucain <lucainp@gmail.com>
* Address review comments
* Forgot one
* Pin hf_hub
* Add argument for push all and fix tests
* Fix tests
* Address review comments
---------
Co-authored-by: Lucain <lucainp@gmail.com>