unilab.utils.checkpoint¶
Pure-filesystem log root and checkpoint resolution helpers.
Functions
|
Resolve the log root for non-Hydra entrypoints using training helper semantics. |
|
Return the latest model checkpoint inside a run directory. |
|
Return the lexicographically latest run directory under a task log root. |
|
Resolve an APPO checkpoint under a task log root, returning string paths. |
|
Resolve a latest or explicit checkpoint path from a task log root. |
|
Resolve an off-policy checkpoint from the repo-rooted log tree. |
|
Resolve checkpoint paths for auxiliary entrypoints through shared training semantics. |
- unilab.utils.checkpoint.get_entrypoint_log_root(root_dir, *, algo_log_name, log_root=None)[source]¶
Resolve the log root for non-Hydra entrypoints using training helper semantics.
- unilab.utils.checkpoint.get_latest_run(log_dir)[source]¶
Return the lexicographically latest run directory under a task log root.
- unilab.utils.checkpoint.get_latest_checkpoint(run_dir, *, suffix='.pt')[source]¶
Return the latest model checkpoint inside a run directory.
- unilab.utils.checkpoint.resolve_checkpoint_path(base_log_dir, load_run, *, suffix='.pt')[source]¶
Resolve a latest or explicit checkpoint path from a task log root.
- unilab.utils.checkpoint.resolve_task_checkpoint_path(root_dir, *, task_name, load_run, algo_log_name, checkpoint=None, suffix='.pt', log_root=None)[source]¶
Resolve checkpoint paths for auxiliary entrypoints through shared training semantics.
- unilab.utils.checkpoint.resolve_appo_checkpoint_path(base_log_dir, load_run)[source]¶
Resolve an APPO checkpoint under a task log root, returning string paths.