pub struct Mamba3SsdInput<B: Backend> {
pub v_bnlrhp: Tensor<B, 6>,
pub da_bnlh: Tensor<B, 4>,
pub b_bnlrhn: Tensor<B, 6>,
pub c_bnlrhn: Tensor<B, 6>,
pub initial_state_bhpr: Tensor<B, 4>,
pub init_state_hpr: Option<Tensor<B, 3>>,
}Expand description
MIMO-first SSD input.
All tensors are pre-processed: B/C are already QK-normed, RoPE-applied, bias-added, and
expanded to per-head (not per-group). V is already scaled by the trapezoidal coefficient
(γ or β). The combined log-decay da = Δ·A is pre-computed. D skip is handled by the caller.
Fields§
§v_bnlrhp: Tensor<B, 6>Value tensor, already scaled by trapezoidal coefficient (γ or β).
§Shape
- [batch, nchunks, chunk_len, mimo_rank, nheads, per_head_dim]
da_bnlh: Tensor<B, 4>§b_bnlrhn: Tensor<B, 6>Key/B tensor: QK-normed, RoPE-applied, bias-added, expanded to per-head, per-rank.
§Shape
- [batch, nchunks, chunk_len, mimo_rank, nheads, state_rank]
c_bnlrhn: Tensor<B, 6>Query/C tensor: same processing as B.
§Shape
- [batch, nchunks, chunk_len, mimo_rank, nheads, state_rank]
initial_state_bhpr: Tensor<B, 4>§init_state_hpr: Option<Tensor<B, 3>>Implementations§
Source§impl<B: Backend> Mamba3SsdInput<B>
impl<B: Backend> Mamba3SsdInput<B>
Auto Trait Implementations§
impl<B> Freeze for Mamba3SsdInput<B>
impl<B> RefUnwindSafe for Mamba3SsdInput<B>where
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B> Send for Mamba3SsdInput<B>
impl<B> Sync for Mamba3SsdInput<B>
impl<B> Unpin for Mamba3SsdInput<B>
impl<B> UnsafeUnpin for Mamba3SsdInput<B>where
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::QuantizedTensorPrimitive: UnsafeUnpin,
impl<B> UnwindSafe for Mamba3SsdInput<B>where
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: UnwindSafe,
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