transformers/examples/legacy
Matt 508a704055
No more Tuple, List, Dict (#38797)
* No more Tuple, List, Dict

* make fixup

* More style fixes

* Docstring fixes with regex replacement

* Trigger tests

* Redo fixes after rebase

* Fix copies

* [test all]

* update

* [test all]

* update

* [test all]

* make style after rebase

* Patch the hf_argparser test

* Patch the hf_argparser test

* style fixes

* style fixes

* style fixes

* Fix docstrings in Cohere test

* [test all]

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-06-17 19:37:18 +01:00
..
benchmarking Use Python 3.9 syntax in examples (#37279) 2025-04-07 12:52:21 +01:00
multiple_choice Fix typos in strings and comments (#37910) 2025-05-01 14:58:58 +01:00
pytorch-lightning Use Python 3.9 syntax in examples (#37279) 2025-04-07 12:52:21 +01:00
question-answering Use HF papers (#38184) 2025-06-13 11:07:09 +00:00
seq2seq No more Tuple, List, Dict (#38797) 2025-06-17 19:37:18 +01:00
token-classification Use Python 3.9 syntax in examples (#37279) 2025-04-07 12:52:21 +01:00
README.md Reorganize examples (#9010) 2020-12-11 10:07:02 -05:00
run_camembert.py Use Python 3.9 syntax in examples (#37279) 2025-04-07 12:52:21 +01:00
run_chinese_ref.py Use Python 3.9 syntax in examples (#37279) 2025-04-07 12:52:21 +01:00
run_language_modeling.py Use Python 3.9 syntax in examples (#37279) 2025-04-07 12:52:21 +01:00
run_openai_gpt.py Use Python 3.9 syntax in examples (#37279) 2025-04-07 12:52:21 +01:00
run_swag.py Use Python 3.9 syntax in examples (#37279) 2025-04-07 12:52:21 +01:00
run_transfo_xl.py Fix typos in strings and comments (#37910) 2025-05-01 14:58:58 +01: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.