transformers/examples/legacy
Andrea Cappelli 10e5f28212
Improve pytorch examples for fp16 (#9796)
* Pad to 8x for fp16 multiple choice example (#9752)

* Pad to 8x for fp16 squad trainer example (#9752)

* Pad to 8x for fp16 ner example (#9752)

* Pad to 8x for fp16 swag example (#9752)

* Pad to 8x for fp16 qa beam search example (#9752)

* Pad to 8x for fp16 qa example (#9752)

* Pad to 8x for fp16 seq2seq example (#9752)

* Pad to 8x for fp16 glue example (#9752)

* Pad to 8x for fp16 new ner example (#9752)

* update script template #9752

* Update examples/multiple-choice/run_swag.py

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* Update examples/question-answering/run_qa.py

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* Update examples/question-answering/run_qa_beam_search.py

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* improve code quality #9752

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2021-01-26 04:47:07 -05: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 Improve pytorch examples for fp16 (#9796) 2021-01-26 04:47:07 -05:00
token-classification Improve pytorch examples for fp16 (#9796) 2021-01-26 04:47:07 -05:00
README.md Reorganize examples (#9010) 2020-12-11 10:07:02 -05:00
run_camembert.py Reorganize examples (#9010) 2020-12-11 10:07:02 -05:00
run_chinese_ref.py Reorganize examples (#9010) 2020-12-11 10:07:02 -05:00
run_language_modeling.py Reorganize examples (#9010) 2020-12-11 10:07:02 -05:00
run_openai_gpt.py Reorganize examples (#9010) 2020-12-11 10:07:02 -05:00
run_swag.py Reorganize examples (#9010) 2020-12-11 10:07:02 -05:00
run_transfo_xl.py Reorganize examples (#9010) 2020-12-11 10:07:02 -05: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.