Realm

oa::ml::RunState

Exact-resume training-loop position committed at a completed update boundary. epoch and loader_cursor restore the data pass through DataLoader::seek; the scaler fields restore dynamic loss scaling through GradScaler::restore_state. Schedulers are stateless step-to-rate mappings and ride on the logical optimizer step already persisted in .oam. Stochastic stream positions have their own resume contract.

StRust public API

Declaration

pub struct RunState { pub epoch: u64, pub loader_cursor: i64, pub scaler: Option<GradScalerState>, }
Public Rust declaration.

Public Methods

fn clone(&self) -> RunState
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &RunState) -> bool

Public Data Members

epochu64field
loader_cursori64field
scalerOption<GradScalerState>field

Public Method Documentation

fn clone( &self ) -> RunState
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &RunState ) -> bool
No public source comment is attached to this declaration.