Optimizers #
Optimizer configuration records and runtime optimizer constructors.
The default trainer config exposes self-contained core update rules for SGD, momentum SGD, AdaGrad, RMSProp, Adam, AdamW, and Adadelta. Runtime-only extension points live here too:
- Muon is an optimizer, but
optim.muon.optimizerrequires an explicit orthogonalization backend. The identity backend is available for proofs and fallback behavior. - GaLore is exposed as gradient-projection machinery around a base update. The public name is
therefore
optim.galore.sgd, which says exactly which update rule owns the state.
Check the supplied configuration and its representation in the selected runtime scalar.
Float32 and IEEE32 reject overflow, positive stabilizers rounded to zero, and averaging
coefficients rounded to one. Float retains binary64 domains. Custom scalar instances may supply
Runtime.FromFloat.roundForValidation; its default retains the input-domain checks.
Instances For
Name written to logs and summaries.
Instances For
Configure the selected algorithm with its command-line learning rate and defaults.
Instances For
Runtime Muon-style optimizer for module-level training.
Muon is public at the runtime layer because a meaningful Muon run needs an orthogonalization backend. The default identity backend supports proofs and fallback behavior; production Muon should pass a matrix-shaped orthogonalizer.
Instances For
Projected-SGD runtime constructor for GaLore-style gradient projection.
This is a projection strategy wrapped around an SGD update. Full GaLore also needs a policy that constructs and refreshes low-rank projectors for matrix parameters; this constructor exposes the verified update boundary once a same-shape projector is supplied.