unilab.training.run¶
Run directory 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 the algorithm log root, honoring optional training.log_root overrides. |
|
Print user-facing playback status for a resolved backend plan. |
|
Resolve a checkpoint path from Hydra config and repository root. |
|
Resolve a latest or explicit checkpoint path from a task log root. |
|
Resolve checkpoint paths for auxiliary entrypoints through shared training semantics. |
|
Return whether train/eval should enter playback for the configured mode. |
- unilab.training.run.should_run_playback(*, play_only, no_play, play_render_mode)[source]¶
Return whether train/eval should enter playback for the configured mode.
- unilab.training.run.log_playback_plan(plan, *, prefix='')[source]¶
Print user-facing playback status for a resolved backend plan.
- Parameters:
plan (
BackendPlayRenderPlan)prefix (
str)
- Return type:
- unilab.training.run.get_log_root(root_dir, cfg)[source]¶
Resolve the algorithm log root, honoring optional training.log_root overrides.
- Parameters:
root_dir (
str|Path)cfg (
DictConfig)
- Return type:
Path
- unilab.training.run.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.training.run.get_latest_run(log_dir)[source]¶
Return the lexicographically latest run directory under a task log root.
- unilab.training.run.get_latest_checkpoint(run_dir, *, suffix='.pt')[source]¶
Return the latest model checkpoint inside a run directory.
- unilab.training.run.resolve_checkpoint_path(base_log_dir, load_run, *, suffix='.pt')[source]¶
Resolve a latest or explicit checkpoint path from a task log root.
- unilab.training.run.parse_checkpoint_path(cfg, *, root_dir, load_run=None, task_name=None, checkpoint=None, suffix='.pt')[source]¶
Resolve a checkpoint path from Hydra config and repository root.