PartIR: Composing SPMD Partitioning Strategies for Machine Learning
Training modern large neural networks (NNs) requires a combination of parallelization strategies, including data, model, or optimizer sharding. To address the growing complexity of these strategies, we introduce PartIR, a hardware-and-runtime agnostic NN partitioning system. PartIR is: 1) Expressive: It allows for the composition of multiple sharding strategies, whether user-defined or automatically derived; 2) Decoupled: the strategies are separate from the ML implementation; and 3) Predictable: It follows a set of well-defined general rules to partition the NN. PartIR utilizes a schedule-like API that incrementally rewrites the ML program intermediate representation (IR) after each strategy, allowing simulators and users to verify the strategy's performance. PartIR has been successfully used both for training large models and across diverse model architectures, demonstrating its predictability, expressiveness, and performance.
Authors
- Adam Paszke (ORCID: https://orcid.org/0000-0002-7665-4559)
- Juliana Franco
- James Molloy (ORCID: https://orcid.org/0000-0002-9024-7618)
- Xiaoyue Pan
- Tamara Norman
- Dimitrios Vytiniotis
- Bart Chrzaszcz
- Norman A. Rink
- Dougal Maclaurin (ORCID: https://orcid.org/0000-0003-0122-1377)
- Tom Natan
- Michael Schaarschmidt
- Dominik Grewe
- Sami Alabed (ORCID: https://orcid.org/0000-0001-8716-526X)
- D. D. Belov
- Timur Sitdikov
- Agnieszka Swietlik
- Joel Wee
Institutions
- Google (United States) (US)
- Google DeepMind (United Kingdom) (GB)
- Google (United Kingdom) (GB)
Publication Details
- Published
- 2025-02-06
- DOI
- https://doi.org/10.1145/3669940.3707284
- Citations
- 4
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 9.08