Skip to content

SMART-Sharding: Scaling Per-tensor Sharding Search in LLM Training with Symbolic Dynamic Programming

Kimia Noorbakhsh, Samuel Kushnir, Kavya Sreedhar, Suvinay Subramanian, Mohammad Alizadeh

cs.DC

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 2.1×10342.1 \times 10^{34} 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×\times over the best conventional strategies and identifies feasible plans on topologies where conventional approaches fail.

Create a lesson

Metadata

Comments
16 pages