refactor: extract composite optimizer helpers and unify naming
- add astrai/optim/composite.py with shared step/zero_grad/state_dict/param_groups helpers and OptimizerFactory - rename MuonMix to MuonAdamW (matches registered name muon_adamw) and file to muon_adamw.py - use @OptimizerFactory.register decorator in each optimizer module instead of post-import registration in __init__ - fix closure being invoked once per sub-optimizer in MuonAdamW.step (now exactly once via composite_step) - NoraNAdamW.step now forwards closure correctly
This commit is contained in:
@@ -56,7 +56,7 @@ under DTensor sharding and rejects layouts sharded along the last dimension.
|
||||
| `--nora_weight_decay` | Nora matrix weight decay | 0.0 |
|
||||
|
||||
Optimizer identity and hyperparameters are saved in checkpoint metadata. Optimizer
|
||||
states are intentionally not interchangeable: resume older MuonMix checkpoints
|
||||
states are intentionally not interchangeable: resume older MuonAdamW checkpoints
|
||||
with `--optimizer=muon_adamw`.
|
||||
|
||||
### Data Loading
|
||||
|
||||
Reference in New Issue
Block a user