Skip to content

Implement Muon CPU reference optimizer - #22

Merged
feitreim merged 1 commit into
mainfrom
feat/muon-cpu-reference
Jul 18, 2026
Merged

feitreim merged 1 commit into
mainfrom
feat/muon-cpu-reference

Conversation

@feitreim

Copy link
Copy Markdown
Owner

Summary

  • add the canonical Muon CPU reference with EMA momentum, Nesterov interpolation, quintic Newton–Schulz orthogonalization, aspect-ratio LR scaling, and decoupled weight decay
  • add statically typed LlamaMuon state and route hidden matrices through Muon while retaining AdamW for embeddings, norms, and the LM head
  • add polynomial, orthogonality, transpose, zero-update, routing, and tiny-Llama overfit coverage
  • update README/SPEC status while leaving GPU Newton–Schulz integration explicitly tracked as the remaining 7f work

Validation

  • cargo test --workspace --quiet
  • cargo clippy -p optim --all-targets -- -D warnings
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant