Google TPUs documentation
Training on a Google Cloud TPU instance
Optimum-TPU
🤗 Optimum-TPUSupported ModelsInstallationOptimum TPU Containers
Tutorials
First TPU Setup on Google CloudFirst TPU Inference on Google CloudFirst TPU Training on Google Cloud
How-To Guides
Deploying and Connecting to Google TPU Instances via GCloud CLIDeploying a TGI server on a Google Cloud TPU instanceTraining on a Google Cloud TPU instanceHow to Deploy a Model on Inference Endpoint for Serving using TPUsAdvanced TGI Server ConfigurationInstalling Optimum-TPU inside a Docker ContainerGemma Fine-Tuning ExampleLlama Fine-Tuning ExampleFind More Examples on the Optimum-TPU GitHub Repository
Conceptual Guides
Reference
Contributing
Training on a Google Cloud TPU instance
Welcome to the 🤗 Optimum-TPU training guide! This section covers how to fine-tune models using Google Cloud TPUs.
Supported Models
See Supported Models.
Getting Started
Prerequisites
Before starting the training process, ensure you have:
- A configured Google Cloud TPU instance (see Deployment Guide)
- Optimum-TPU installed with PyTorch/XLA support:
pip install optimum-tpu -f https://storage.googleapis.com/libtpu-releases/index.html
Example Training Scripts
You can now follow one of our several example scripts to get started:
Gemma Fine-tuning:
- See our Gemma fine-tuning notebook for a step-by-step guide
LLaMA Fine-tuning:
- Check our LLaMA fine-tuning notebook for detailed instructions