pub enum LayerKind {
LinearAttention,
FullAttention,
Mamba,
Moe,
}Expand description
2026-09-28: A decoder layer’s kind, as ModelConfig::layer_type reports it.
Variants§
LinearAttention
2026-09-28: A GatedDeltaNet layer.
FullAttention
2026-09-28: A softmax attention layer.
Mamba
2026-09-29: A Mamba2 layer (Nemotron-H mamba).
Moe
2026-09-29: A layer whose only mixer is a MoE FFN (Nemotron-H moe).
Implementations§
Trait Implementations§
Source§impl Ord for LayerKind
impl Ord for LayerKind
Source§impl PartialOrd for LayerKind
impl PartialOrd for LayerKind
impl Copy for LayerKind
impl Eq for LayerKind
impl StructuralPartialEq for LayerKind
Auto Trait Implementations§
impl Freeze for LayerKind
impl RefUnwindSafe for LayerKind
impl Send for LayerKind
impl Sync for LayerKind
impl Unpin for LayerKind
impl UnwindSafe for LayerKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.