#[repr(C, align(64))]pub struct Q42KvPageHeader {Show 26 fields
pub magic: [u8; 4],
pub version: u16,
pub flags: u16,
pub model_hash: [u8; 32],
pub token_start: u64,
pub token_count: u32,
pub manifold_idx_start: u32,
pub manifold_idx_count: u32,
pub kv_heads: u16,
pub head_dim: u16,
pub kv_dtype: u16,
pub quant_codec: u16,
pub compression_flags: u32,
pub payload_offset: u64,
pub payload_length: u64,
pub parent_page_id: u64,
pub next_page_id: u64,
pub semantic_index_off: u64,
pub manifold_index_off: u64,
pub sketch_offset: u64,
pub entropy_score: f32,
pub attention_score: f32,
pub recency_score: f32,
pub confidence_score: f32,
pub _reserved1: [u8; 80],
pub checksum: [u8; 32],
}Expand description
The root header for a KV cache page.
Precisely padded to 256 bytes for optimal CPU cache line (DOD) performance.
Fields§
§magic: [u8; 4]§version: u16§flags: u16§model_hash: [u8; 32]§token_start: u64§token_count: u32§manifold_idx_start: u32§manifold_idx_count: u32§kv_heads: u16§head_dim: u16§kv_dtype: u16§quant_codec: u16§compression_flags: u32§payload_offset: u64§payload_length: u64§parent_page_id: u64§next_page_id: u64§semantic_index_off: u64§manifold_index_off: u64§sketch_offset: u64§entropy_score: f32§attention_score: f32§recency_score: f32§confidence_score: f32§_reserved1: [u8; 80]§checksum: [u8; 32]Implementations§
Trait Implementations§
Source§impl Clone for Q42KvPageHeader
impl Clone for Q42KvPageHeader
Source§fn clone(&self) -> Q42KvPageHeader
fn clone(&self) -> Q42KvPageHeader
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 Q42KvPageHeader
impl Debug for Q42KvPageHeader
Source§impl Default for Q42KvPageHeader
impl Default for Q42KvPageHeader
impl Copy for Q42KvPageHeader
Auto Trait Implementations§
impl Freeze for Q42KvPageHeader
impl RefUnwindSafe for Q42KvPageHeader
impl Send for Q42KvPageHeader
impl Sync for Q42KvPageHeader
impl Unpin for Q42KvPageHeader
impl UnsafeUnpin for Q42KvPageHeader
impl UnwindSafe for Q42KvPageHeader
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.