transformers/examples/legacy
Sylvain Gugger bf2e0cf70b
Trainer push to hub (#11328)
* Initial support for upload to hub

* push -> upload

* Fixes + examples

* Fix torchhub test

* Torchhub test I hate you

* push_model_to_hub -> push_to_hub

* Apply mixin to other pretrained models

* Remove ABC inheritance

* Add tests

* Typo

* Run tests

* Install git-lfs

* Change approach

* Add push_to_hub to all

* Staging test suite

* Typo

* Maybe like this?

* More deps

* Cache

* Adapt name

* Quality

* MOAR tests

* Put it in testing_utils

* Docs + torchhub last hope

* Styling

* Wrong method

* Typos

* Update src/transformers/file_utils.py

Co-authored-by: Julien Chaumond <julien@huggingface.co>

* Address review comments

* Apply suggestions from code review

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>

Co-authored-by: Julien Chaumond <julien@huggingface.co>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
2021-04-23 09:17:37 -04:00
..
multiple_choice Improve pytorch examples for fp16 (#9796) 2021-01-26 04:47:07 -05:00
pytorch-lightning [RAG] Add Ray implementation for distributed retrieval (#9197) 2020-12-21 10:39:30 +01:00
question-answering fix: The 'warn' method is deprecated (#11105) 2021-04-07 09:20:06 -04:00
seq2seq Close open files to suppress ResourceWarning (#11240) 2021-04-14 10:31:04 -04:00
text-classification Trainer push to hub (#11328) 2021-04-23 09:17:37 -04:00
token-classification [file_utils] do not gobble certain kinds of requests.ConnectionError (#10235) 2021-03-18 12:37:45 -04:00
README.md Reorganize examples (#9010) 2020-12-11 10:07:02 -05:00
run_camembert.py [examples] make run scripts executable (#10037) 2021-02-05 15:51:18 -08:00
run_chinese_ref.py [examples] make run scripts executable (#10037) 2021-02-05 15:51:18 -08:00
run_language_modeling.py [examples] make run scripts executable (#10037) 2021-02-05 15:51:18 -08:00
run_openai_gpt.py [examples] make run scripts executable (#10037) 2021-02-05 15:51:18 -08:00
run_swag.py [examples] make run scripts executable (#10037) 2021-02-05 15:51:18 -08:00
run_transfo_xl.py [examples] make run scripts executable (#10037) 2021-02-05 15:51:18 -08:00

Legacy examples

This folder contains examples which are not actively maintained (mostly contributed by the community).

Using these examples together with a recent version of the library usually requires to make small (sometimes big) adaptations to get the scripts working.