pub struct SsmConfig {
pub batch_size: usize,
pub sequence_length: usize,
pub num_heads: usize,
pub num_groups: usize,
pub head_dim: usize,
pub state_size: usize,
pub num_rope_angles: usize,
pub mimo_rank: usize,
pub has_z: bool,
pub has_d: bool,
pub has_output_norm: bool,
}Fields§
§batch_size: usizeBatch size.
sequence_length: usizeSequence length.
num_heads: usizeNumber of value heads.
num_groups: usizeNumber of shared Q/K groups, or zero for num_heads.
head_dim: usizeValue width per head.
state_size: usizeSelective recurrent state width.
num_rope_angles: usizeNumber of rotary pairs in the state axis.
mimo_rank: usizeMIMO rank; SISO callers use one.
has_z: boolApply the SiLU z gate.
has_d: boolApply the learned D skip.
has_output_norm: boolApply MIMO output normalization; SISO requires false.
Trait Implementations§
impl Copy for SsmConfig
impl Eq for SsmConfig
impl StructuralPartialEq for SsmConfig
Auto Trait Implementations§
impl Forget for SsmConfig
impl Freeze for SsmConfig
impl Move for SsmConfig
impl RefUnwindSafe for SsmConfig
impl Send for SsmConfig
impl Sync for SsmConfig
impl Unpin for SsmConfig
impl UnsafeUnpin for SsmConfig
impl UnwindSafe for SsmConfig
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