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

Fine-tune Transformers with AWS Trainium

Training on AWS Trainium is as simple as in Transformers:

  • You need to replace the Transformers’ Trainer class with the NeuronTrainer class.

You can find several examples in the official repository for the following tasks:

  • language modeling,

  • question answering,

  • summarization,

  • text classification,

  • translation,

  • image classification,

  • audio classification,

  • speech recognition,

  • contrastive image-text training.

If you want go through an step-by-step example check out the getting started with AWS Trainium and Hugging Face Transformers guide.

PreviousNeuron model cacheNextExport a model to Inferentia

Last updated 1 year ago