pub struct TrainingTaskSpec {Show 17 fields
pub task_id: String,
pub sponsor_did: String,
pub sponsor_address: Address,
pub architecture: ArchitectureSpec,
pub tier: TrainingTier,
pub aggregation: AggregationRule,
pub trainer_count: u32,
pub quorum: u32,
pub inner_steps: u32,
pub max_rounds: u32,
pub grace_window_ms: u64,
pub reward_pool: u128,
pub dataset_ref: String,
pub dataset_hash: Hash,
pub min_throughput: Option<u64>,
pub created_at: Timestamp,
pub metadata: HashMap<String, Value>,
}Expand description
The on-chain description of a training run. Posted by the sponsor,
referenced by trainers, and committed verbatim into the final
TrainingReceipt.
Fields§
§task_id: StringUnique task ID (deterministic hash of canonicalized task fields).
sponsor_did: StringSponsor DID (did:tenzro:human:... or did:tenzro:machine:...).
sponsor_address: AddressSponsor’s address for any unspent escrow refund.
architecture: ArchitectureSpecArchitecture being trained.
tier: TrainingTierTrust tier required for trainer enrollment.
aggregation: AggregationRuleAggregation rule the syncer must apply.
trainer_count: u32Number of trainers (M). Total slots.
quorum: u32Quorum (K). Outer gradient is accepted once K of M have submitted for the same fragment.
inner_steps: u32Inner SGD steps between outer gradient submissions (H).
max_rounds: u32Total outer rounds the run will execute.
grace_window_ms: u64Adaptive grace window τ in milliseconds. Stragglers are absorbed up to this delay; their submissions count if they land within τ.
reward_pool: u128Total reward pool escrowed by sponsor (TNZO, in attoTNZO).
dataset_ref: StringReference to the dataset. Format depends on tier:
- Open / Verified (public):
ipfs://...,ar://...,https://... - Verified (encrypted-at-rest):
enc:...(key sealed to TEE) - Confidential (TEE-resident):
tee://...(data never leaves owner)
dataset_hash: HashHash of the dataset’s manifest (root of shard hash tree). Bound into the receipt for provenance.
min_throughput: Option<u64>Optional minimum throughput requirement (samples/sec) for trainer enrollment. Syncer enforces at enrollment.
created_at: TimestampPosting timestamp.
metadata: HashMap<String, Value>Free-form metadata (eval suite, target perplexity, etc.).
Trait Implementations§
Source§impl Clone for TrainingTaskSpec
impl Clone for TrainingTaskSpec
Source§fn clone(&self) -> TrainingTaskSpec
fn clone(&self) -> TrainingTaskSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrainingTaskSpec
impl Debug for TrainingTaskSpec
Source§impl<'de> Deserialize<'de> for TrainingTaskSpec
impl<'de> Deserialize<'de> for TrainingTaskSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TrainingTaskSpec
impl PartialEq for TrainingTaskSpec
Source§fn eq(&self, other: &TrainingTaskSpec) -> bool
fn eq(&self, other: &TrainingTaskSpec) -> bool
self and other values to be equal, and is used by ==.