pub struct PromptCacheManifest {Show 21 fields
pub schema_version: u32,
pub model_family: String,
pub effective_model_type: String,
pub checkpoint_fingerprint: String,
pub prefix_content_fingerprint: String,
pub architecture_fingerprint: String,
pub layer_count: usize,
pub global_layer_start: usize,
pub global_layer_end: usize,
pub block_size_tokens: i32,
pub batch_size: usize,
pub total_prefix_tokens: usize,
pub prefix_sha256: String,
pub layer_layout: LayerSchedule<LayerCachePolicy>,
pub layer_prefix_offsets: Vec<i32>,
pub state_segments: Vec<PromptCacheStateSegment>,
pub sink_tokens: usize,
pub topology: PromptCacheTopology,
pub application_namespace: Option<String>,
pub blocks: Vec<PromptCacheBlock>,
pub state_tensors: Vec<PromptCacheStateTensor>,
}Expand description
Versioned metadata inspectable without loading backend arrays.
Fields§
§schema_version: u32Persistence schema version.
model_family: StringModel architecture family.
effective_model_type: StringEffective normalized model type.
checkpoint_fingerprint: StringCaller-selected checkpoint identity.
prefix_content_fingerprint: StringIdentity of all content that produced this prefix.
architecture_fingerprint: StringCache-relevant architecture identity.
layer_count: usizeTotal model layer count.
global_layer_start: usizeInclusive first global layer represented locally.
global_layer_end: usizeExclusive global layer boundary represented locally.
block_size_tokens: i32Block size used by the producer.
batch_size: usizePrefix batch size.
total_prefix_tokens: usizeExact prefix token count.
prefix_sha256: StringSHA-256 over little-endian prefix token IDs.
layer_layout: LayerSchedule<LayerCachePolicy>Ordered cache layout for the owned layer range.
layer_prefix_offsets: Vec<i32>Per-layer processed-token delta relative to the prefix.
state_segments: Vec<PromptCacheStateSegment>Architecture-declared named ranges in the ordered state layout.
sink_tokens: usizePinned prefix or sink token count.
topology: PromptCacheTopologyDistributed rank-local representation.
application_namespace: Option<String>Optional non-authoritative application grouping label.
blocks: Vec<PromptCacheBlock>Ordered immutable cache blocks.
state_tensors: Vec<PromptCacheStateTensor>Ordered fixed-size state tensors.
Implementations§
Source§impl PromptCacheManifest
impl PromptCacheManifest
Sourcepub fn validate(&self) -> Result<(), PromptCacheError>
pub fn validate(&self) -> Result<(), PromptCacheError>
Validates all backend-independent schema, geometry, and coverage rules.
Sourcepub fn validate_compatibility(
&self,
expected: &PromptCacheDescriptor,
prefix_token_ids: &[u32],
) -> Result<(), PromptCacheError>
pub fn validate_compatibility( &self, expected: &PromptCacheDescriptor, prefix_token_ids: &[u32], ) -> Result<(), PromptCacheError>
Validates compatibility with a caller descriptor and exact prefix IDs.
Trait Implementations§
Source§impl Clone for PromptCacheManifest
impl Clone for PromptCacheManifest
Source§fn clone(&self) -> PromptCacheManifest
fn clone(&self) -> PromptCacheManifest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more