Skip to content

Commit 3bc882f

Browse files
authored
Fix Muon optimizer module path (deepspeedai#7802)
Update the Muon optimizer import to its current location under deepspeed.runtime.zero.muon, so it’s correctly registered as a supported ZeRO optimizer. This prevents the “untested optimizer” assertion from firing. Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
1 parent 5aa2d17 commit 3bc882f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepspeed/runtime/zero/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ZeRORuntimeException(Exception):
4747

4848
# Add MuonWithAuxAdam to supported list if muon is installed
4949
try:
50-
from deepspeed.runtime.muon_optimizer import MuonWithAuxAdam
50+
from deepspeed.runtime.zero.muon.muon_optimizer import MuonWithAuxAdam
5151
ZERO_SUPPORTED_OPTIMIZERS.append(MuonWithAuxAdam)
5252
except ImportError:
5353
pass

0 commit comments

Comments
 (0)