pub struct SelectedStateRealization { /* private fields */ }Expand description
Authoritative mutable-state realization selected before allocation.
Implementations§
Source§impl SelectedStateRealization
impl SelectedStateRealization
Sourcepub const fn floating_dtype(&self) -> Option<StateStorageDtype>
pub const fn floating_dtype(&self) -> Option<StateStorageDtype>
Native representation selected from the architecture’s floating-state source.
Sourcepub const fn layout(&self) -> &StateLayout
pub const fn layout(&self) -> &StateLayout
Returns the exact architecture-owned state layout.
Sourcepub fn for_partition(
&self,
partition: &PartitionState,
) -> Result<Self, ReplicatedTextContractError>
pub fn for_partition( &self, partition: &PartitionState, ) -> Result<Self, ReplicatedTextContractError>
Selects the exact rank-local state interval while preserving global ownership proof.
Component ordinals are rebased to the local layout consumed by a rank-local runtime;
prompt-cache identity retains the global offset separately through crate::PartitionState.
Sourcepub fn for_partitioned_geometry(
&self,
partition: &PartitionState,
) -> Result<Self, ReplicatedTextContractError>
pub fn for_partitioned_geometry( &self, partition: &PartitionState, ) -> Result<Self, ReplicatedTextContractError>
Selects a rank-local interval whose tensor-parallel component shapes were authored by the validated architecture partition.
Pipeline ownership must still name the same global layer interval. Tensor-parallel geometry may narrow fixed dimensions, but it cannot change component roles, dtype, residency, presence, ordering, or selected physical placement.
Sourcepub const fn access(&self) -> ReplicatedTextStateAccess
pub const fn access(&self) -> ReplicatedTextStateAccess
Returns the state-access semantics selected for typed traversal.
Sourcepub const fn policy(&self) -> &CacheResidencyPolicy
pub const fn policy(&self) -> &CacheResidencyPolicy
Returns the selected residency policy.
Sourcepub fn components(&self) -> &[SelectedStateComponentRealization]
pub fn components(&self) -> &[SelectedStateComponentRealization]
Returns exact selected component realizations in layer/component order.
Sourcepub const fn checkpoint(&self) -> bool
pub const fn checkpoint(&self) -> bool
Returns whether state checkpoints are selected.
Sourcepub const fn prompt_cache(&self) -> bool
pub const fn prompt_cache(&self) -> bool
Returns whether prompt-cache persistence is selected.
Sourcepub const fn observation_retention(&self) -> bool
pub const fn observation_retention(&self) -> bool
Returns whether observation retains every live component.
Trait Implementations§
Source§impl Clone for SelectedStateRealization
impl Clone for SelectedStateRealization
Source§fn clone(&self) -> SelectedStateRealization
fn clone(&self) -> SelectedStateRealization
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more