pub struct PromptCacheBlock {Show 14 fields
pub global_layer: usize,
pub representation: CacheRepresentation,
pub start: i64,
pub end: i64,
pub rank: Option<CacheRankIdentity>,
pub shard: String,
pub first_array: String,
pub second_array: String,
pub first_shape: Vec<i32>,
pub second_shape: Vec<i32>,
pub first_dtype: String,
pub second_dtype: String,
pub logical_bytes: u64,
pub payload_sha256: String,
}Expand description
One cache block catalog entry in a prompt-cache manifest.
Fields§
§global_layer: usizeArchitecture-global layer identity.
representation: CacheRepresentationStored attention representation.
start: i64Inclusive absolute token position.
end: i64Exclusive absolute token position.
rank: Option<CacheRankIdentity>Optional rank identity.
shard: StringSafe relative backend shard path.
first_array: StringFirst array name.
second_array: StringSecond array name.
first_shape: Vec<i32>First array shape.
second_shape: Vec<i32>Second array shape.
first_dtype: StringFirst array dtype.
second_dtype: StringSecond array dtype.
logical_bytes: u64Logical bytes in both arrays.
payload_sha256: StringSHA-256 of the exact payload bytes.
Trait Implementations§
Source§impl Clone for PromptCacheBlock
impl Clone for PromptCacheBlock
Source§fn clone(&self) -> PromptCacheBlock
fn clone(&self) -> PromptCacheBlock
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 moreSource§impl Debug for PromptCacheBlock
impl Debug for PromptCacheBlock
Source§impl<'de> Deserialize<'de> for PromptCacheBlock
impl<'de> Deserialize<'de> for PromptCacheBlock
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 PromptCacheBlock
Source§impl Hash for PromptCacheBlock
impl Hash for PromptCacheBlock
Source§impl PartialEq for PromptCacheBlock
impl PartialEq for PromptCacheBlock
Source§impl Serialize for PromptCacheBlock
impl Serialize for PromptCacheBlock
impl StructuralPartialEq for PromptCacheBlock
Auto Trait Implementations§
impl Freeze for PromptCacheBlock
impl RefUnwindSafe for PromptCacheBlock
impl Send for PromptCacheBlock
impl Sync for PromptCacheBlock
impl Unpin for PromptCacheBlock
impl UnsafeUnpin for PromptCacheBlock
impl UnwindSafe for PromptCacheBlock
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