Google Cloud Trainium & Inferentia
  • 🌍Optimum Neuron
  • 🌍Installation
  • 🌍Quickstart
  • 🌍TUTORIALS
    • Overview
    • Fine-tune BERT for Text Classification on AWS Trainium
  • 🌍HOW-TO GUIDES
    • Overview
    • Set up AWS Trainium instance
    • Neuron model cache
    • Fine-tune Transformers with AWS Trainium
    • Export a model to Inferentia
    • Neuron models for inference
    • Inference pipelines with AWS Neuron
  • 🌍REFERENCE
    • Neuron Trainer
    • Neuron Exporter
    • Neuron Models
Powered by GitBook
On this page
  1. HOW-TO GUIDES

Fine-tune Transformers with AWS Trainium

PreviousNeuron model cacheNextExport a model to Inferentia

Last updated 1 year ago

Fine-tune Transformers with AWS Trainium

Training on AWS Trainium is as simple as in Transformers:

  • You need to replace the Transformers’ class with the 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 guide.

🌍
Trainer
NeuronTrainer
language modeling
question answering
summarization
text classification
translation
image classification
audio classification
speech recognition
contrastive image-text training
getting started with AWS Trainium and Hugging Face Transformers