#[repr(i32)]pub enum LlamaFlashAttnType {
Auto = -1,
Disabled = 0,
Enabled = 1,
}Expand description
Flash-attention enablement policy for the context.
Maps to llama_context_params.flash_attn_type. LlamaFlashAttnType::Auto
lets llama.cpp pick based on model architecture and active backend.
Variants§
Auto = -1
Let llama.cpp decide based on model and backend.
Disabled = 0
Force flash attention off.
Enabled = 1
Force flash attention on.
Trait Implementations§
Source§impl Clone for LlamaFlashAttnType
impl Clone for LlamaFlashAttnType
Source§fn clone(&self) -> LlamaFlashAttnType
fn clone(&self) -> LlamaFlashAttnType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LlamaFlashAttnType
Source§impl Debug for LlamaFlashAttnType
impl Debug for LlamaFlashAttnType
impl Eq for LlamaFlashAttnType
Source§impl From<LlamaFlashAttnType> for i32
impl From<LlamaFlashAttnType> for i32
Source§fn from(value: LlamaFlashAttnType) -> Self
fn from(value: LlamaFlashAttnType) -> Self
Converts to this type from the input type.
Source§impl From<i32> for LlamaFlashAttnType
impl From<i32> for LlamaFlashAttnType
Source§impl PartialEq for LlamaFlashAttnType
impl PartialEq for LlamaFlashAttnType
Source§fn eq(&self, other: &LlamaFlashAttnType) -> bool
fn eq(&self, other: &LlamaFlashAttnType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LlamaFlashAttnType
Auto Trait Implementations§
impl Freeze for LlamaFlashAttnType
impl RefUnwindSafe for LlamaFlashAttnType
impl Send for LlamaFlashAttnType
impl Sync for LlamaFlashAttnType
impl Unpin for LlamaFlashAttnType
impl UnsafeUnpin for LlamaFlashAttnType
impl UnwindSafe for LlamaFlashAttnType
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