Integrating TorchTPU into TorchTitan and Optimizing Models for TPU
Blog post from Google Cloud
TorchTitan TPU is a Google-maintained adaptation of Meta’s PyTorch-based TorchTitan framework that enables large-scale dense, mixture-of-experts, and diffusion-model training on Google Cloud TPUs through the native TorchTPU backend, avoiding major model-code rewrites or reliance on legacy torch_xla. It combines plain PyTorch model definitions with configurable TPU-specific execution features, including SimpleFSDP for compiler-visible parameter sharding, Graph Trainer for capturing full training steps as XLA programs, activation offloading, scan and graph-splitting techniques for very large models, and Pallas-based kernels for attention, fused cross-entropy, and MoE operations. The accompanying optimization playbook emphasizes progressing from eager execution to compiled or full-graph training, tuning sharding, precision, memory usage, batch size, kernels, compiler settings, and communication based on profiling. Reported TPU v7x results include roughly 57% model FLOPs utilization for Llama 3 405B on up to 1,024 chips, about 32% for Qwen3 235B MoE at scale, 43.4% for Muse Glimmer 30B, and near-parity with JAX MaxDiffusion for FLUX.1. The project also offers a Hugging Face Transformers backend for broadly onboarding supported models, agent-assisted porting guidance, and plans for improved production tooling, float8 support, future TPU hardware, expert parallelism, long-context training, and larger MoE architectures.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| TPUs | 47 | 243 | 11 | 7 | +200% |
| Reinforcement learning | 2 | 107 | 62 | 27 | -33% |
| LLM | 1 | 3,838 | 757 | 183 | -36% |
| Vector Search | 1 | 1,255 | 252 | 101 | -22% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.