Training on AWS Trainium is as simple as in Transformers:
Trainer
class with the NeuronTrainer
class.You can find several examples in the official repository for the following tasks:
If you want go through an step-by-step example check out the getting started with AWS Trainium and Hugging Face Transformers guide.