transformers/examples/legacy
Yitong Huang 873d9bb3cc
Make torch xla available on GPU (#29334)
* add USE_TORCH_XLA env

* rename torch_tpu to torch_xla

* better is_torch_xla_available; fix some fsdp and performance issues

* fix format

* fix bug when pjrt_device is cpu

* fix bug

* fix the deprecation handling

---------

Co-authored-by: anw90 <ang868@gmail.com>
Co-authored-by: wangang.wa <wangang.wa@alibaba-inc.com>
2024-03-11 14:07:16 +00:00
..
benchmarking Update all references to canonical models (#29001) 2024-02-16 08:16:58 +01:00
multiple_choice Add many missing spaces in adjacent strings (#26751) 2023-10-12 10:28:40 +02:00
pytorch-lightning change version (#29097) 2024-02-19 22:08:44 +08:00
question-answering Update all references to canonical models (#29001) 2024-02-16 08:16:58 +01:00
seq2seq Make torch xla available on GPU (#29334) 2024-03-11 14:07:16 +00:00
token-classification Update all references to canonical models (#29001) 2024-02-16 08:16:58 +01:00
README.md Reorganize examples (#9010) 2020-12-11 10:07:02 -05:00
run_camembert.py Update all references to canonical models (#29001) 2024-02-16 08:16:58 +01:00
run_chinese_ref.py Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
run_language_modeling.py Add many missing spaces in adjacent strings (#26751) 2023-10-12 10:28:40 +02:00
run_openai_gpt.py Update all references to canonical models (#29001) 2024-02-16 08:16:58 +01:00
run_swag.py [Docs] Fix spelling and grammar mistakes (#28825) 2024-02-02 08:45:00 +01:00
run_transfo_xl.py Update all references to canonical models (#29001) 2024-02-16 08:16:58 +01:00

README.md

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.