Prerequisites
Minimum requirements:- Ubuntu Version 22.04
- Python 3.12
- Tensorflow >= 2.12.0
Running on Cloud TPUs
Create and SSH to a single-host TPU
Create a single-host TPU (v6-8) using the following command:Then SSH into your TPU:We recommend using the base VM image “v2-alpha-tpuv6e”, which meets the version requirements.
Find zones that support v6 (Trillium) TPUs in the regions and zones documentation.
Install dependencies
Within the root directory of the MaxDiffusion git repo, install dependencies:The setup script will:
- Install system dependencies
- Install JAX for TPU
- Install MaxDiffusion and its requirements
Next steps
After completing the setup, you can:- Run inference on various models (Flux, SDXL, Stable Diffusion)
- Train models on your single-host TPU
- Scale to multihost deployment when needed