ReferenceRust referencesigil-crucible
sigil-crucible · weights
Source declarations, signatures and documentation for weights.
Source: sigil/node/sigil-crucible/src/weights.rs. SHA-256: eb17c61f909f083b30b3548cfcb841cd2e82eff1a77a168b2d7d011832169f55.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
weights::WeightPublicationRecord
Anchor for a published model checkpoint. The model weights remain off-chain
behind artifact; consensus stores roots and authorization metadata only.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct WeightPublicationRecord {
pub run_id: String,
pub model_root: SigilHash,
pub artifact: ArtifactCommitment,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub previous_root: Option<SigilHash>,
pub publisher_did: String,
pub published_at_epoch: u64,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub rollout_batch_id: Option<String>
}Source line: 9.
weights::WeightPublicationRecord::validate_for_run
pub fn validate_for_run(&self, run: &TrainingRun) -> Result<(), CrucibleError>;Source line: 22.