Trainer - huggingface.co
https://huggingface.co/docs/transformers/main_classes/trainerTrainer The Trainer class provides an API for feature-complete training in PyTorch for most standard use cases. It’s used in most of the example scripts.. Before instantiating your Trainer, create a TrainingArguments to access all the points of customization during training.. The API supports distributed training on multiple GPUs/TPUs, mixed precision through NVIDIA Apex …