Specify PyTorch versions for examples (#4710)

This commit is contained in:
Lysandre Debut
2020-06-02 04:29:28 -04:00
committed by GitHub
parent d3ef14f931
commit 88762a2f8c
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
## Examples
Version 2.9 of `transformers` introduces a new [`Trainer`](https://github.com/huggingface/transformers/blob/master/src/transformers/trainer.py) class for PyTorch, and its equivalent [`TFTrainer`](https://github.com/huggingface/transformers/blob/master/src/transformers/trainer_tf.py) for TF 2.
Running the examples requires PyTorch 1.3.1+ or TensorFlow 2.0+.
Here is the list of all our examples:
- **grouped by task** (all official examples work for multiple models)