pub enum MuonMomentumMode {
Sgd,
Ema,
}Expand description
Momentum convention. Checkpoint buffers are NOT interchangeable between modes.
Variants§
Sgd
Preserve RUDA’s existing SGD momentum (including first-step initialization).
Ema
Exponential moving average: m = beta*m + (1-beta)*g, starting at zero. Nesterov update is (1-beta)g + betam. Dampening must be zero.
Trait Implementations§
Source§impl Clone for MuonMomentumMode
impl Clone for MuonMomentumMode
impl Copy for MuonMomentumMode
Source§impl Debug for MuonMomentumMode
impl Debug for MuonMomentumMode
Source§impl Default for MuonMomentumMode
impl Default for MuonMomentumMode
Source§impl<'de> Deserialize<'de> for MuonMomentumMode
impl<'de> Deserialize<'de> for MuonMomentumMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MuonMomentumMode
Source§impl PartialEq for MuonMomentumMode
impl PartialEq for MuonMomentumMode
Source§impl Serialize for MuonMomentumMode
impl Serialize for MuonMomentumMode
impl StructuralPartialEq for MuonMomentumMode
Auto Trait Implementations§
impl Freeze for MuonMomentumMode
impl RefUnwindSafe for MuonMomentumMode
impl Send for MuonMomentumMode
impl Sync for MuonMomentumMode
impl Unpin for MuonMomentumMode
impl UnsafeUnpin for MuonMomentumMode
impl UnwindSafe for MuonMomentumMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.