pub enum KvCacheType {
Contiguous,
Paged,
Tree,
}Expand description
KV Cache implementation types
Variants§
Contiguous
Simple contiguous memory allocation
Paged
Paged attention with block-based allocation
Tree
Tree-based cache for prefix sharing
Trait Implementations§
Source§impl Clone for KvCacheType
impl Clone for KvCacheType
Source§fn clone(&self) -> KvCacheType
fn clone(&self) -> KvCacheType
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 KvCacheType
impl Debug for KvCacheType
Source§impl<'de> Deserialize<'de> for KvCacheType
impl<'de> Deserialize<'de> for KvCacheType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for KvCacheType
impl Serialize for KvCacheType
impl Copy for KvCacheType
Auto Trait Implementations§
impl Freeze for KvCacheType
impl RefUnwindSafe for KvCacheType
impl Send for KvCacheType
impl Sync for KvCacheType
impl Unpin for KvCacheType
impl UnsafeUnpin for KvCacheType
impl UnwindSafe for KvCacheType
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