pub struct NumericalExecutionProfile {
pub id: NumericalProfileId,
pub version: ContractVersion,
pub family_id: ModelFamilyId,
pub primary_activation: ProgramValueId,
pub boundaries: BTreeMap<ProgramValueId, ElementType>,
pub states: Vec<StateSpec>,
pub kv_storage: Vec<KvStateStorage>,
pub operations: Vec<NumericalOperationContract>,
}Expand description
A complete numerical choice declared by a family before program generation. Public decoding alone does not confer trust: the family registration must reproduce this profile from its validated typed model definition.
Fields§
§id: NumericalProfileId§version: ContractVersion§family_id: ModelFamilyId§primary_activation: ProgramValueIdThe main activation is explicit so product metadata need not guess a dtype from weights, a container, or a profile’s human-readable name.
boundaries: BTreeMap<ProgramValueId, ElementType>Every operation output has a declared storage/rounding boundary. This includes residuals, intermediate activations, logits and token outputs.
states: Vec<StateSpec>State shapes, initialization and capacity are shared with the final program, permitting startup sizing without constructing a dummy program.
kv_storage: Vec<KvStateStorage>Typed association of every causal KV payload and its optional scales. Empty means the family declares no applicable KV state.
operations: Vec<NumericalOperationContract>Implementations§
Source§impl NumericalExecutionProfile
impl NumericalExecutionProfile
pub fn validate(&self) -> Result<(), VNextError>
pub fn activation_type(&self) -> Result<ElementType, VNextError>
pub fn kv_storage_format(&self) -> Result<Option<KvStorageFormat>, VNextError>
pub fn fingerprint(&self) -> Result<String, VNextError>
Sourcepub fn validate_program(&self, program: &ModelProgram) -> Result<(), VNextError>
pub fn validate_program(&self, program: &ModelProgram) -> Result<(), VNextError>
Preparation validates the declared graph contract; compiler inference subsequently proves every boundary’s actual dtype against real operations.
pub fn validate_inferred_boundaries( &self, values: &BTreeMap<ProgramValueId, ResolvedTensorSpec>, ) -> Result<(), VNextError>
Trait Implementations§
Source§impl Clone for NumericalExecutionProfile
impl Clone for NumericalExecutionProfile
Source§fn clone(&self) -> NumericalExecutionProfile
fn clone(&self) -> NumericalExecutionProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more