transformers/examples/research_projects
Thomas Bauwens 8f137b2427
Move DataCollatorForMultipleChoice from the docs to the package (#34763)
* Add implementation for DataCollatorForMultipleChoice based on docs.

* Add DataCollatorForMultipleChoice to import structure.

* Remove custom DataCollatorForMultipleChoice implementations from example scripts.

* Remove custom implementations of DataCollatorForMultipleChoice from docs in English, Spanish, Japanese and Korean.

* Refactor torch version of DataCollatorForMultipleChoice to be more easily understandable.

* Apply suggested changes and run make fixup.

* fix copies, style and fixup

* add missing documentation

* nits

* fix docstring

* style

* nits

* isort

---------

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
Co-authored-by: Arthur Zucker <arthur.zucker@gmail.com>
2025-02-13 12:01:28 +01:00
..
adversarial Bump transformers from 3.5.1 to 4.38.0 in /examples/research_projects/adversarial (#31320) 2024-06-07 19:28:45 +01:00
bert-loses-patience Bump transformers from 3.5.1 to 4.38.0 in /examples/research_projects/bert-loses-patience (#31291) 2024-06-07 16:45:54 +01:00
bertabs Refactor: Removed un-necessary object base class (#32230) 2024-07-26 10:33:02 +02:00
bertology Bump transformers from 3.5.1 to 4.38.0 in /examples/research_projects/bertology (#31256) 2024-06-06 12:42:40 +01:00
codeparrot Bump torch from 1.13.1 to 2.2.0 in /examples/research_projects/codeparrot (#33173) 2024-08-30 15:23:35 +02:00
decision_transformer Bump cryptography from 43.0.1 to 44.0.1 in /examples/research_projects/decision_transformer (#36142) 2025-02-12 13:34:52 +00:00
deebert Bump transformers from 3.5.1 to 4.38.0 in /examples/research_projects/deebert (#31244) 2024-06-05 11:12:58 +01:00
distillation fix: Fixed raising TypeError instead of ValueError for invalid type (#32111) 2024-07-22 17:46:17 +01:00
fsner Refactor: Removed un-necessary object base class (#32230) 2024-07-26 10:33:02 +02:00
information-gain-filtration Update all references to canonical models (#29001) 2024-02-16 08:16:58 +01:00
jax-projects Bump torch from 1.13.1 to 2.2.0 in /examples/research_projects/jax-projects/hybrid_clip (#33137) 2024-08-27 13:33:37 +02:00
layoutlmv3 🚨🚨🚨Deprecate evaluation_strategy to eval_strategy🚨🚨🚨 (#30190) 2024-04-18 12:49:43 -04:00
longform-qa Update all references to canonical models (#29001) 2024-02-16 08:16:58 +01:00
luke Replace accelerator.use_fp16 in examples (#33513) 2024-09-17 04:13:06 +02:00
lxmert Move DataCollatorForMultipleChoice from the docs to the package (#34763) 2025-02-13 12:01:28 +01:00
mlm_wwm Update all references to canonical models (#29001) 2024-02-16 08:16:58 +01:00
mm-imdb update ruff version (#30932) 2024-05-22 06:40:15 +02:00
movement-pruning Move DataCollatorForMultipleChoice from the docs to the package (#34763) 2025-02-13 12:01:28 +01:00
onnx/summarization update ruff version (#30932) 2024-05-22 06:40:15 +02:00
performer Refactor: Removed un-necessary object base class (#32230) 2024-07-26 10:33:02 +02:00
pplm Bump transformers from 3.5.1 to 4.38.0 in /examples/research_projects/pplm (#31352) 2024-06-10 18:59:46 +01:00
quantization-qdqbert update ruff version (#30932) 2024-05-22 06:40:15 +02:00
rag update ruff version (#30932) 2024-05-22 06:40:15 +02:00
rag-end2end-retriever update ruff version (#30932) 2024-05-22 06:40:15 +02:00
robust-speech-event layernorm_decay_fix (#35927) 2025-02-04 11:01:49 +01:00
self-training-text-classification Replace accelerator.use_fp16 in examples (#33513) 2024-09-17 04:13:06 +02:00
seq2seq-distillation Updated ruff to the latest version (#31926) 2024-07-23 17:07:31 +02:00
synthid_text Add SynthID (watermerking by Google DeepMind) (#34350) 2024-10-23 21:18:52 +01:00
tapex fix: Fixed raising TypeError instead of ValueError for invalid type (#32111) 2024-07-22 17:46:17 +01:00
token-healing Token healing (#30081) 2024-06-03 10:53:15 +02:00
visual_bert Move DataCollatorForMultipleChoice from the docs to the package (#34763) 2025-02-13 12:01:28 +01:00
vqgan-clip Bump transformers from 4.38.0 to 4.48.0 in /examples/research_projects/vqgan-clip (#36136) 2025-02-12 13:21:09 +00:00
wav2vec2 🚨🚨🚨Deprecate evaluation_strategy to eval_strategy🚨🚨🚨 (#30190) 2024-04-18 12:49:43 -04:00
xtreme-s update ruff version (#30932) 2024-05-22 06:40:15 +02:00
zero-shot-distillation [Docs] Add language identifiers to fenced code blocks (#28955) 2024-02-12 10:48:31 -08:00
README.md [Docs] Add language identifiers to fenced code blocks (#28955) 2024-02-12 10:48:31 -08:00

Research projects

This folder contains various research projects using 🤗 Transformers. They are not maintained and require a specific version of 🤗 Transformers that is indicated in the requirements file of each folder. Updating them to the most recent version of the library will require some work.

To use any of them, just run the command

pip install -r requirements.txt

inside the folder of your choice.

If you need help with any of those, contact the author(s), indicated at the top of the README of each folder.