geno_lewm.training.resume¶
resume
¶
Closed state helpers for fresh-process Carbon training continuation.
capture_rng_state
¶
Capture every global RNG domain used by the training process.
Source code in geno_lewm/training/resume.py
restore_rng_state
¶
Restore a closed RNG payload and reject device-domain drift.
Source code in geno_lewm/training/resume.py
write_resume_checkpoint
¶
write_resume_checkpoint(path: Path, *, source: Mapping[str, object], training_contract: Mapping[str, object], identities: Mapping[str, object], progress: Mapping[str, object], states: Mapping[str, object], trainer_state: Mapping[str, object], rng_state: Mapping[str, object], metric_history: list[dict[str, object]]) -> dict[str, object]
Atomically write one closed checkpoint and return its in-memory payload.
Source code in geno_lewm/training/resume.py
load_resume_checkpoint
¶
Safely load and validate a closed production checkpoint.