transformers/examples/legacy
Arthur 651408a077
[Styling] stylify using ruff (#27144)
* try to stylify using ruff

* might need to remove these changes?

* use ruf format andruff check

* use isinstance instead of type comparision

* use # fmt: skip

* use # fmt: skip

* nits

* soem styling changes

* update ci job

* nits isinstance

* more files update

* nits

* more nits

* small nits

* check and format

* revert wrong changes

* actually use formatter instead of checker

* nits

* well docbuilder is overwriting this commit

* revert notebook changes

* try to nuke docbuilder

* style

* fix feature exrtaction test

* remve `indent-width = 4`

* fixup

* more nits

* update the ruff version that we use

* style

* nuke docbuilder styling

* leve the print for detected changes

* nits

* Remove file I/O

Co-authored-by: charliermarsh
 <charlie.r.marsh@gmail.com>

* style

* nits

* revert notebook changes

* Add # fmt skip when possible

* Add # fmt skip when possible

* Fix

* More `  # fmt: skip` usage

* More `  # fmt: skip` usage

* More `  # fmt: skip` usage

* NIts

* more fixes

* fix tapas

* Another way to skip

* Recommended way

* Fix two more fiels

* Remove asynch
Remove asynch

---------

Co-authored-by: charliermarsh <charlie.r.marsh@gmail.com>
2023-11-16 17:43:19 +01: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 Add many missing spaces in adjacent strings (#26751) 2023-10-12 10:28:40 +02:00
seq2seq remove SharedDDP as it is deprecated (#25702) 2023-10-06 16:03:11 +02: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.