AI Cloud Architect

We terminated a TPU mid-training and it recovered in seconds: Introduction to elastic training with MaxText

GoogleHow-to by Luke Baumann, Abhinav Singh and Ivan NardiniGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A walkthrough of elastic training on GKE: a TPU worker is force-killed mid-run and MaxText with Pathways recovers in place from the last Orbax checkpoint, with the authors reporting under two minutes of downtime.

Who it is for

Teams training large models on TPUs with MaxText on GKE who want recovery from slice failures without a full job restart.

Key points

  • Authors report about 1 min 50 s from kill to next step in their Qwen3-0.6B run on 3 TPU v5e-16 slices; most time was Kubernetes scheduling a replacement pod.
  • Pause and resume is the mode shown; replica resize is also available per the post.
  • Large checkpoints (Qwen3-4B, ~135 GiB) failed through the proxy; the post recommends ENABLE_PATHWAYS_PERSISTENCE=1.

The same at other vendors

Timeline

  1. This postWe terminated a TPU mid-training and it recovered in seconds: Introduction to elastic training with MaxText
  2. Read firstWhat is Pathways? Single-controller training for large models · Google · Blog post

Go deeper