SMART-Sharding: Scaling Per-tensor Sharding Search in LLM Training with Symbolic Dynamic Programming
Kimia Noorbakhsh, Samuel Kushnir, Kavya Sreedhar, Suvinay Subramanian, Mohammad Alizadeh
Abstract
Distributed training of frontier large language models partitions weights and activations across thousands of chips, with sharding decisions dictating communication costs and training efficiency under strict memory limits. Conventional frameworks bind network axes to static parallelism roles (e.g., FSDP, TP, EP) across a layer, excluding potentially faster partitioning strategies. We present SMART-Sharding, an automated framework that makes cluster-scale per-tensor sharding search tractable. SMART-Sharding compiles local roofline formulas into reusable symbolic cost tables and executes memory-aware dynamic programming to find the minimum-time feasible plan without enumerating complete plans. On a modeled 32,768-chip TPU cluster, SMART-Sharding builds these cost tables once in 206 seconds, then searches candidates per 3D-torus topology in a median of 92 seconds on CPUs. Across five frontier MoE models, it achieves predicted per-layer speedups of 1.22-1.78 over the best conventional strategies and identifies feasible plans on topologies where conventional approaches fail.
Create a lesson
Metadata
- Comments
- 16 pages
Related papers
Generalized Tensor Parallelism: Powering Trillion-Parameter LLM Training at 10+ EFLOP/s
Shared title terminologycs.DCShiqing Fan, Deepak Narayanan, Jimmy Zhang et al.
When Does a GPU Shorten All-Pairs Genome Comparison? End-to-End Modelling and Scaling with cuDDL
Shared title terminologycs.DCTim Dortmann, Markus Vieth, Bertil Schmidt
Preserving Optimizer Updates When Experts Move in MoE Training
Shared title terminologycs.DCYanming Lai, Yi Qin, Yongxin Hu et al.
ASHE: Asynchronous Stage-owned Heterogeneous Elastic-averaging for Pipeline-Parallel Training
Shared title terminologycs.DCHamin Jung, Sookwang Lee, Shinyoung Ahn et al.
Multi-Tier Autonomic Resource Orchestration Framework for Dynamic Service Elasticity across Federated Cloud Environments
Shared title terminologycs.DCNitin Sikri
Half a Bit per Parameter: How Much Optimizer State Does Training Need to Survive a Failed GPU?
Shared title terminologycs.DCZiyang Lin, Zixuan Sun