AutoParallel: Composable, PyTorch-Native Automatic Parallelism for Production Training
Kaijian Wang, Sanket Purandare, Aditya Venkataraman, Will Constable, Ivan Kobzarev, Elias Ellison, Simon Fan, Edward Z. Yang, Davide Italiano, Patrick Labatut, Yuke Wang, Francisco Massa
Abstract
Training large models requires multiple interacting forms of parallelism. As models and clusters scale, finding and maintaining efficient parallelization plans becomes essential for training performance. Diverse model architectures, workloads, and hardware topologies demand flexible strategies, yet production PyTorch systems typically rely on hand-written recipes that are costly to adapt and tend to reuse familiar patterns, which may be suboptimal for a given workload. We present AutoParallel, a PyTorch-native planner for distributed model training. AutoParallel searches parallelization choices jointly across the training computation, allowing established techniques to be combined and unconventional strategies to emerge. It expresses its decisions using native PyTorch abstractions and produces ordinary PyTorch programs, avoiding a separate execution runtime while composing directly with the PyTorch compilation and training stack. AutoParallel also composes automatic decisions with model-specific distributed code, allowing dynamic or specialized regions to remain under user control. Plans are inspectable and replayable artifacts. Across dense, hybrid, and mixture-of-experts models on meshes of up to four dimensions and 128 NVIDIA H100 GPUs, AutoParallel matches or exceeds expert-written TorchTitan recipes on most configurations, with throughput gains of up to 18.3%, and discovers plans that uniform expert recipes do not express.
Create a lesson
Related papers
MemX: Memory-Aware Automatic Parallelism for Cross-Vendor Heterogeneous GPU Training
Shared title terminology · Lin Meng, Yuzhong Sun, Jie Zhu
MCCL: Training Pytorch models across a fleet of Macs at Skywalker Sound
Shared title terminology · Kevin Sasso, Chris Fiegel, Francis Aitken et al.
Dugong: Composing Uncertified DAG Consensus
Shared title terminology · George Danezis, Lefteris Kokoris-Kogias, Alberto Sonnino
CTRL: Concurrent Training and Rollout for LLM Reinforcement Learning via GPU Co-Residency
Shared title terminology · Ruijia Yang, Ruikai Li, Zeyi Wen
StarMPI-SVD: Distributed-Memory Parallel Star-M Tensor SVD
Shared title terminology · Naman Pesricha, Grey Ballard, Srinivas Eswar et al.
Matching Architecture to Workload: Comparing RISC-V Parallel Accelerators for Energy-Efficient Embedded Computing
Shared title terminology · Luca Colombo, Luigi Ghionda, Amirhossein Kiamarzi et al.