Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/prime-rl-configs/src/prime_rl/configs/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,9 @@ class MuonConfig(BaseOptimizerConfig):
mu: float = Field(0.95, ge=0)
"""Momentum factor for the Muon algorithm."""

nesterov: bool = True
"""Nesterov momentum for the Muon updates."""

betas1: float = Field(0.9, ge=0)
"""β1 for the AdamW/Lion sub-optimizer used on non-Muon params."""

Expand Down
1 change: 1 addition & 0 deletions src/prime_rl/trainer/optim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def muon_enabled(n, p):
matrix_partitions=matrix_partitions,
lr=lr,
mu=config.mu,
nesterov=config.nesterov,
betas=(config.betas1, config.betas2),
weight_decay=config.weight_decay,
adjust_lr="rms_norm",
Expand Down
Loading