adding templates

This commit is contained in:
thomwolf
2019-10-30 11:31:56 +01:00
parent 079bfb32fb
commit 7f4226f9e6
12 changed files with 3740 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
# How to add a new example script in 🤗Transformers
This folder provide a template for adding a new example script implementing a training or inference task with the models in the 🤗Transformers library.
Currently only examples for PyTorch are provided which are adaptations of the library's SQuAD examples which implement single-GPU and distributed training with gradient accumulation and mixed-precision (using NVIDIA's apex library) to cover a reasonable range of use cases.