oa::CheckpointManager
CheckpointManager class in the OA Ml public surface.
Public Methods
Constructor & Destructor Documentation
Public Method Documentation
No public source comment is attached to this declaration.
Returns
oa::F64The declared return value.
No public source comment is attached to this declaration.
Returns
oa::StringThe declared return value.
No public source comment is attached to this declaration.
Parameters
inMetricoa::F64—
Returns
boolThe declared return value.
Restore weights and optimizer state into an already-constructed model/optimizer. Symmetric with maybeSave.
Parameters
inOutModeloa::Module &—
inOutOptoa::Optimizer &—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Parameters
inOutModeloa::Module &—
inOutOptoa::Optimizer &—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::StringThe declared return value.
save model + optimizer state if the metric improved (or unconditionally if inForce=true). Saves weights AND optimizer state (AdamW M/V/step, etc.) into one .oam via Module::save(engine, path, opt).
Parameters
inModeloa::Module &—
inOptoa::Optimizer &—
inStepoa::U64—
inMetricoa::F64—
inForceboolDefault: false
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
const oa::String &The declared return value.
No public source comment is attached to this declaration.
Returns
oa::StringThe declared return value.
save a resumable incremental checkpoint without changing the best-model metric/master file. Used by mid-epoch saves: only a complete epoch metric (preferably validation) may select the best model.
Parameters
inModeloa::Module &—
inOptoa::Optimizer &—
inStepoa::U64—
inMetricoa::F64—
inMetricNameconst oa::String &Default: = {}
Returns
oa::StatusThe declared return value.