Companion GitHub Repository: agemagician/torchtpu-zero-to-hero
One Unbroken FX Graph Across SimpleFSDP + DTensor Tensor Parallelism β From 1-Chip Colab to Multi-Slice TPU Pods
Welcome to the finale of TorchTPU: Zero to Hero ! Over Parts 1β4, we went from torch.device("tpu") inference ( 36.25x speedup) through scratch pre-training, LoRA SFT ( 20,511 tok/s ), DPO, live online GRPO RL ( 0.0% -> 96.9% ), and VMEM-tiled splash_sdpa ( 19.8x less HBM at 4K).
Now we scale out : across Cloud TPU Slices connected via optical/copper 2D/3D torus Inter-Chip Interconnect (ICI) and Multi-Slice TPU Pods connected across slices via Data Center Network (DCN) β plus high-throughput production serving with vllm-torchtpu .
Every worker script we build and execute in Part 5 ( scripts/train_pod.py , scripts/pallas_rdma_demo.py , and scripts/serve_vllm_tpu.py ) runs unmodified from WORLD_SIZE=1 Google Colab up to 32+ chip Trillium ( v6e ) and Ironwood ( v7x ) TPU Pods!
Series Roadmap
1. TPU Slice vs.β¦