transformers/examples/legacy
Peter Pan ce31508134
docs: replace torch.distributed.run by torchrun (#27528)
* docs: replace torch.distributed.run by torchrun

 `transformers` now officially support pytorch >= 1.10.
 The entrypoint `torchrun`` is present from 1.10 onwards.

Signed-off-by: Peter Pan <Peter.Pan@daocloud.io>

* Update src/transformers/trainer.py

with @ArthurZucker's suggestion

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>

---------

Signed-off-by: Peter Pan <Peter.Pan@daocloud.io>
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
2023-11-27 16:26:33 +00:00
..
benchmarking moving example of benchmarking to legacy dir (#27337) 2023-11-08 09:27:37 +01:00
multiple_choice Add many missing spaces in adjacent strings (#26751) 2023-10-12 10:28:40 +02:00
pytorch-lightning [Styling] stylify using ruff (#27144) 2023-11-16 17:43:19 +01:00
question-answering docs: replace torch.distributed.run by torchrun (#27528) 2023-11-27 16:26:33 +00:00
seq2seq docs: replace torch.distributed.run by torchrun (#27528) 2023-11-27 16:26:33 +00:00
text-classification Black preview (#17217) 2022-05-12 16:25:55 -04:00
token-classification Fix quality due to ruff release 2023-03-22 20:45:08 -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 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 Apply ruff flake8-comprehensions (#21694) 2023-02-22 09:14:54 +01:00
run_swag.py Add many missing spaces in adjacent strings (#26751) 2023-10-12 10:28:40 +02:00
run_transfo_xl.py remove extra white space from log format (#12360) 2021-06-25 13:20:14 -07: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.