pub enum CacheRepresentation {
KeyValue,
CompressedLatentRotary,
}Expand description
Representation stored atomically in one cache block.
Variants§
KeyValue
Standard attention keys and values.
CompressedLatentRotary
Compressed latent state and rotary keys.
Trait Implementations§
Source§impl Clone for CacheRepresentation
impl Clone for CacheRepresentation
Source§fn clone(&self) -> CacheRepresentation
fn clone(&self) -> CacheRepresentation
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 CacheRepresentation
Source§impl Debug for CacheRepresentation
impl Debug for CacheRepresentation
Source§impl<'de> Deserialize<'de> for CacheRepresentation
impl<'de> Deserialize<'de> for CacheRepresentation
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
impl Eq for CacheRepresentation
Source§impl Hash for CacheRepresentation
impl Hash for CacheRepresentation
Source§impl Ord for CacheRepresentation
impl Ord for CacheRepresentation
Source§fn cmp(&self, other: &CacheRepresentation) -> Ordering
fn cmp(&self, other: &CacheRepresentation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CacheRepresentation
impl PartialEq for CacheRepresentation
Source§impl PartialOrd for CacheRepresentation
impl PartialOrd for CacheRepresentation
Source§impl Serialize for CacheRepresentation
impl Serialize for CacheRepresentation
impl StructuralPartialEq for CacheRepresentation
Auto Trait Implementations§
impl Freeze for CacheRepresentation
impl RefUnwindSafe for CacheRepresentation
impl Send for CacheRepresentation
impl Sync for CacheRepresentation
impl Unpin for CacheRepresentation
impl UnsafeUnpin for CacheRepresentation
impl UnwindSafe for CacheRepresentation
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