Expand description
Aggregate ownership and admission for backend-managed live caches. Portable cache/state policy and prompt-cache schemas.
Runtime ownership, admission, storage transitions, and backing-store
scheduling live in eredu-runtime so this crate remains declarative.
Structs§
- Cache
Block Id - Stable identity for one immutable sealed cache block.
- Cache
Rank Identity - Optional rank identity included in a stable cache block identifier.
- Prompt
Cache Block - One cache block catalog entry in a prompt-cache manifest.
- Prompt
Cache Descriptor - Caller-supplied identity and geometry for a reusable prefix cache.
- Prompt
Cache Manifest - Versioned metadata inspectable without loading backend arrays.
- Prompt
Cache Model Identity - Cache-relevant structure derived from a prepared model.
- Prompt
Cache Options - Explicit publication behavior for a reusable prefix cache.
- Prompt
Cache State Segment - One named contiguous state range in a portable prompt-cache identity.
- Prompt
Cache State Tensor - One independently validated fixed-size state tensor catalog entry.
- Prompt
Cache Topology - Rank-local topology recorded in a prompt-cache manifest.
- State
Component Policy - Symbolic geometry and persistence behavior of one named state component.
- State
Tensor Policy - Exact semantic role, symbolic shape, and dtype contract for a state tensor.
Enums§
- Cache
Policy Error - Invalid cache geometry or state-residency contract.
- Cache
Representation - Representation stored atomically in one cache block.
- Cache
Tier - Logical location of a sealed cache block.
- Layer
Cache Policy - Exact state kind, attention policy, and tensor geometry for one decoder layer.
- Mutable
State Residency - Residency behaviors valid for mutable fixed-state tensors.
- Pooling
State Component - Semantic component of one append-only pooling stream.
- Prompt
Cache Error - Invalid reusable prompt-cache identity, schema, or catalog.
- State
Component Role - Stable semantic identity for one independently managed runtime component.
- State
Residency Class - Runtime ownership behavior for live model state.
- State
Tensor Dimension - One dimension in a persisted fixed-state tensor.
- State
Tensor Dtype - Accepted dtype family for one fixed-state tensor.
- State
Tensor Owner - Owner of one persisted non-attention state tensor.
- State
Tensor Presence - Condition under which a state tensor must be materialized.
- State
Tensor Role - Semantic role of one non-attention cache tensor.
Constants§
- PROMPT_
CACHE_ SCHEMA_ VERSION - Current reusable prompt-cache schema version.
Functions§
- derive_
prompt_ cache_ architecture_ fingerprint - Derives a stable cache architecture fingerprint from ordered semantic fields.
- prompt_
cache_ token_ fingerprint - Hashes exact prefix token IDs as little-endian
u32values. - validate_
prompt_ cache_ model_ identity - Verifies that a caller descriptor was derived from the prepared model.