pub struct AttnState {
pub m: Vec<f32>,
pub l: Vec<f32>,
pub o: Vec<f32>,
}Expand description
2026-09-25: Running state. m and l are [num_seqs, num_q_heads], o is
[num_seqs, num_q_heads, head_dim]; new sets m = -inf and l = o = 0.
Fields§
§m: Vec<f32>§l: Vec<f32>§o: Vec<f32>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttnState
impl RefUnwindSafe for AttnState
impl Send for AttnState
impl Sync for AttnState
impl Unpin for AttnState
impl UnwindSafe for AttnState
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