pub enum AttentionType {
Standard,
Mla,
}Expand description
Attention architecture family.
Variants§
Standard
Standard multi-head or grouped-query attention (Qwen3.5, Llama, etc.)
Mla
Multi-head Latent Attention — compressed KV via low-rank projection. (Mistral Small 4, DeepSeek-V2/V3)
Trait Implementations§
Source§impl Clone for AttentionType
impl Clone for AttentionType
Source§fn clone(&self) -> AttentionType
fn clone(&self) -> AttentionType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttentionType
impl Debug for AttentionType
Source§impl PartialEq for AttentionType
impl PartialEq for AttentionType
impl Copy for AttentionType
impl Eq for AttentionType
impl StructuralPartialEq for AttentionType
Auto Trait Implementations§
impl Freeze for AttentionType
impl RefUnwindSafe for AttentionType
impl Send for AttentionType
impl Sync for AttentionType
impl Unpin for AttentionType
impl UnwindSafe for AttentionType
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> 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.