Training on AWS Trainium is as simple as in Transformers:
You need to replace the Transformers’ Trainerarrow-up-right class with the NeuronTrainerarrow-up-right class.
Trainer
NeuronTrainer
You can find several examples in the official repository for the following tasks:
language modelingarrow-up-right,
question answeringarrow-up-right,
summarizationarrow-up-right,
text classificationarrow-up-right,
translationarrow-up-right,
image classificationarrow-up-right,
audio classificationarrow-up-right,
speech recognitionarrow-up-right,
contrastive image-text trainingarrow-up-right.
If you want go through an step-by-step example check out the getting started with AWS Trainium and Hugging Face Transformersarrow-up-right guide.
Last updated 2 years ago