pub struct RunState {
pub epoch: u64,
pub loader_cursor: i64,
pub scaler: Option<GradScalerState>,
pub rng_states: Vec<RngStreamPosition>,
pub checkpoint: Option<CheckpointCriteriaState>,
pub early_stopping: Option<EarlyStoppingState>,
}Expand description
Exact-resume training-loop position committed at a completed update boundary.
epoch and loader_cursor restore the data pass through
DataLoader::seek; scaler restores dynamic loss scaling through
GradScaler::restore_state; rng_states restores per-module stochastic
draw positions through restore_rng_states; checkpoint and
early_stopping restore callback selection and patience state. Schedulers
are stateless step-to-rate mappings and ride on the logical optimizer step
already persisted in .oam.
Fields§
§epoch: u64Epoch whose shuffle order the loader cursor indexes.
loader_cursor: i64Batch cursor within that epoch.
scaler: Option<GradScalerState>Dynamic loss-scaler state, when the run uses one.
rng_states: Vec<RngStreamPosition>Per-module RNG stream draw positions in deterministic traversal order.
checkpoint: Option<CheckpointCriteriaState>Checkpoint selection criteria (best metric and best epoch), when active.
early_stopping: Option<EarlyStoppingState>Early-stopping criteria (best metric and wait count), when active.