pub struct ReplicatedTextMaterializationTask { /* private fields */ }Expand description
Exact backend work item for one selected logical parameter.
This value joins architecture-owned topology and artifact facts with the authoritative selected lowering. A materializer may batch these tasks, but it must not replace them with one model-wide transform choice.
Implementations§
Source§impl ReplicatedTextMaterializationTask
impl ReplicatedTextMaterializationTask
Sourcepub fn from_exact_source(
name: impl Into<String>,
physical_source: ReplicatedTextPhysicalSource,
aliases: Vec<String>,
physical_shape: Vec<usize>,
logical_shape: Vec<usize>,
role: ReplicatedTextParameterRole,
owner: ReplicatedTextParameterOwner,
executable: LinearFormat,
lowering: WeightLoweringKind,
lowering_descriptor: WeightLoweringDescriptor,
) -> Result<Self, ReplicatedTextContractError>
pub fn from_exact_source( name: impl Into<String>, physical_source: ReplicatedTextPhysicalSource, aliases: Vec<String>, physical_shape: Vec<usize>, logical_shape: Vec<usize>, role: ReplicatedTextParameterRole, owner: ReplicatedTextParameterOwner, executable: LinearFormat, lowering: WeightLoweringKind, lowering_descriptor: WeightLoweringDescriptor, ) -> Result<Self, ReplicatedTextContractError>
Creates one exact, source-backed materialization task selected outside the ordinary replicated-text session lifecycle.
This is used by architecture-owned auxiliary modules which share the same physical lowering contract but do not own a text session.
Sourcepub fn with_output_companions(
self,
companions: Vec<ReplicatedTextOutputCompanion>,
) -> Result<Self, ReplicatedTextContractError>
pub fn with_output_companions( self, companions: Vec<ReplicatedTextOutputCompanion>, ) -> Result<Self, ReplicatedTextContractError>
Attaches the architecture’s exact selected packed-output companions.
Sourcepub fn physical_sources(&self) -> &[ReplicatedTextPhysicalSource]
pub fn physical_sources(&self) -> &[ReplicatedTextPhysicalSource]
Returns exact shard and translated-output provenance.
Returns architecture-declared physical sources shared by logical outputs.
Sourcepub fn permitted_native_source_dtypes(&self) -> &[RecipeDtype]
pub fn permitted_native_source_dtypes(&self) -> &[RecipeDtype]
Returns exact source dtypes explicitly permitted for native binding.
Sourcepub const fn source_encoding(&self) -> &SourceTensorEncoding
pub const fn source_encoding(&self) -> &SourceTensorEncoding
Returns the exact admitted source encoding.
Sourcepub fn physical_shape(&self) -> &[usize]
pub fn physical_shape(&self) -> &[usize]
Returns the admitted physical source geometry.
Sourcepub fn logical_shape(&self) -> &[usize]
pub fn logical_shape(&self) -> &[usize]
Returns the architecture-declared logical geometry.
Sourcepub const fn role(&self) -> ReplicatedTextParameterRole
pub const fn role(&self) -> ReplicatedTextParameterRole
Returns the architecture-owned semantic parameter role.
Sourcepub const fn owner(&self) -> &ReplicatedTextParameterOwner
pub const fn owner(&self) -> &ReplicatedTextParameterOwner
Returns the architecture-owned module location.
Sourcepub const fn presence(&self) -> &ReplicatedTextParameterPresence
pub const fn presence(&self) -> &ReplicatedTextParameterPresence
Returns the exact admitted presence or derivation.
Sourcepub const fn executable(&self) -> LinearFormat
pub const fn executable(&self) -> LinearFormat
Returns the selected executable format.
Sourcepub const fn lowering(&self) -> WeightLoweringKind
pub const fn lowering(&self) -> WeightLoweringKind
Returns the selected backend lowering mechanism.
Sourcepub const fn lowering_descriptor(&self) -> &WeightLoweringDescriptor
pub const fn lowering_descriptor(&self) -> &WeightLoweringDescriptor
Returns the complete geometry-bearing lowering request.
Sourcepub const fn derived_recipe(&self) -> Option<&DerivedWeightRecipe>
pub const fn derived_recipe(&self) -> Option<&DerivedWeightRecipe>
Returns the architecture-owned derivation, when this output is derived.
Sourcepub const fn derived_output(&self) -> Option<&RecipeMetadata>
pub const fn derived_output(&self) -> Option<&RecipeMetadata>
Returns admission-time metadata for the derived output.
Sourcepub fn output_companions(&self) -> &[ReplicatedTextOutputCompanion]
pub fn output_companions(&self) -> &[ReplicatedTextOutputCompanion]
Returns exact output companion identities declared by the architecture.
Sourcepub fn source_recipe(
&self,
) -> Result<DerivedWeightRecipe, ReplicatedTextContractError>
pub fn source_recipe( &self, ) -> Result<DerivedWeightRecipe, ReplicatedTextContractError>
Returns the exact source recipe selected for this task.
Direct tasks are represented as a full selection of their single admitted source. Derived tasks return the architecture-owned recipe without reconstructing it from a checkpoint catalog.
Trait Implementations§
Source§impl Clone for ReplicatedTextMaterializationTask
impl Clone for ReplicatedTextMaterializationTask
Source§fn clone(&self) -> ReplicatedTextMaterializationTask
fn clone(&self) -> ReplicatedTextMaterializationTask
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more