Files
HuggingFace_transformer/templates/adding_a_new_example_script
2019-11-14 20:38:02 +01:00
..
2019-10-30 11:31:56 +01:00
2019-10-30 11:31:56 +01:00

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.