Menu

Scaling PyTorch Across Cloud TPU Slices & Pods: SimpleFSDP, DTensor TP, Pallas RDMA & vLLM (Part 5)
πŸ“°

Scaling PyTorch Across Cloud TPU Slices & Pods: SimpleFSDP, DTensor TP, Pallas RDMA & vLLM (Part 5)

DEV Community: pytorchΒ·Ahmed ElnaggarΒ·1 day ago
#SdLqUcO3
#devtopytorch#devto#dev#torchtpu#slice
Long article (1396 words) β€” no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.