Pull down to go back
Introducing AutoMuon, a one line drop in for AdamW

Introducing AutoMuon, a one line drop in for AdamW

AutoMuon:只需一行程式碼,直接替換 AdamW 優化器

Hey everyone, I've been working on a small Python package called AutoMuon that makes the Muon optimizer usable as a drop-in replacement for AdamW in arbitrary PyTorch training pipelines. The core idea is relatively simple: Muon works primarily on 2D weight matrices (linear projections, conv layers) on hidden states, but you still need AdamW for embeddings, norms, and biases, etc. AutoMuon scans your model at init, figures out the right optimizer for each parameter automatically.