#[repr(u8)]pub enum HlaMode {
Standard = 0,
Hla = 1,
Ahla = 2,
}Expand description
Attention mode for HLA (Higher-order Linear Attention).
Standard: SDPA with KV cache (default, backward-compatible).Hla: Symmetric second-order linear attention — O(1) per-token memory.Ahla: Asymmetric second-order linear attention — lower state cost than symmetric.
Variants§
Standard = 0
Hla = 1
Symmetric second-order: SK, CQV, mQ accumulators.
Ahla = 2
Asymmetric second-order: PKV, mK accumulators.
Trait Implementations§
impl Copy for HlaMode
impl Eq for HlaMode
impl StructuralPartialEq for HlaMode
Auto Trait Implementations§
impl Freeze for HlaMode
impl RefUnwindSafe for HlaMode
impl Send for HlaMode
impl Sync for HlaMode
impl Unpin for HlaMode
impl UnsafeUnpin for HlaMode
impl UnwindSafe for HlaMode
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more