DMuon-2: Scaling Matrix Optimizers in Data Parallelism with Topology-Aware Matrix Ownership and Communication
Starrick Liu, Ruizhi Chengze, Lufang Chen, Michael Zhao, Ran Yu, Xiaofan Li, Dance Kuzi, Yue Zhang, Zijuan Lin, SongAo Han, YongHua Chen, Ruyi Gan, Hao Wang
Abstract
Matrix optimizers such as Muon update whole weight matrices, which conflicts with the element- or row-wise sharding of data-parallel runtimes. Once parameters are sharded as well, matrix optimizers incur extra communication or repeated computation. We present DMuon, a matrix-granular optimizer runtime for PyTorch FSDP (ZeRO-2/3) and HSDP. DMuon assigns each matrix a unique owner, which performs the Newton--Schulz (NS) iteration and optimizer update on the full matrix, and balances the load across owners by computational cost. On HSDP, ownership is global across replicas, so the cluster keeps a single copy of gradients and optimizer state, and updated parameters are published across nodes as soon as they are ready, overlapping subsequent computation. This layout makes every collective sparse and variable in length, so DMuon schedules these collectives as their data becomes ready and routes them along the cluster's two-level network. On up to 256 H100 GPUs, across three dense LLMs and two VLA models, DMuon matches or exceeds the training throughput of PyTorch FSDP2 with AdamW, reaching 1.05× that of FSDP2 with AdamW at the median on 256 GPUs. The optimized parameter gathering and gradient reduction absorb the extra communication and computation a matrix optimizer requires. Against a gather-then-replicate Muon baseline, DMuon's throughput is 2.1 times as high at the median.
Create a lesson
Related papers
Network Contention State Aware Dynamic Optimizer for Accelerator Collective Communication Libraries
Shared title terminology · Rajat Bisht, Tevfik Kosar, Anthony Skjellum et al.
SS-HSDP: Efficient and Flexible Sharded Data Parallelism via Runtime-Update Decoupling
Shared title terminology · Chendong Xiang, Pengle Zhang, Jinliang Li et al.
Parallel Computing Systems for the Optimal Selection of Process Equipment
Shared title terminology · Andrey B. Borisenko
GC-MoE on SM120: Overlapping Expert-Parallel Token Dispatch with Warp-Level FP8xFP4 Block-Scaled MMA on Consumer Blackwell
Shared title terminology · Yong Li, Haoyu Wang, Kan Liu et al.
Parallel Sparse Identification of Nonlinear Dynamics in Python: Task- and Data-Parallel SINDy with Numba, OpenMP, Threads and Multiprocessing for the Lorenz and Rössler Systems
Shared title terminology · Pablo Guillen-Rondon
LiquidCP: Decoupling Attention Tasks from Communication and Kernel Boundaries in Context Parallelism
Shared title terminology · Hongyu Chen, Yikang Ruan, Yuhai Long et al.