pub enum CacheKind {
Contiguous,
Paged,
}Expand description
Which KVCache implementation to instantiate.
Variants§
Contiguous
Per-layer contiguous K/V, cat per step (baseline).
Paged
Paged arena with a page table (default).
Trait Implementations§
impl Copy for CacheKind
impl Eq for CacheKind
impl StructuralPartialEq for CacheKind
Auto Trait Implementations§
impl Freeze for CacheKind
impl RefUnwindSafe for CacheKind
impl Send for CacheKind
impl Sync for CacheKind
impl Unpin for CacheKind
impl UnsafeUnpin for CacheKind
impl UnwindSafe for CacheKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.