unilab.training.run¶
Run directory and checkpoint resolution helpers.
Functions
|
Resolve the composed |
|
Attach a |
|
Return the canonical run directory name shared by all training entries. |
|
Build the user-facing diagnostic for an unresolvable play checkpoint. |
|
Resolve the algorithm log root, honoring optional training.log_root overrides. |
|
Resolve a checkpoint path from Hydra config and repository root. |
|
Build the shared |
|
Return whether train/eval should enter playback for the configured mode. |
- unilab.training.run.build_run_dir_name(timestamp, sim_backend, *, world_size=1)[source]¶
Return the canonical run directory name shared by all training entries.
- unilab.training.run.algo_config_dict(cfg)[source]¶
Resolve the composed
cfg.algosubtree into a plain mutable dict.
- unilab.training.run.format_play_checkpoint_error(cfg, *, task_log_root, load_path, load_path_dir)[source]¶
Build the user-facing diagnostic for an unresolvable play checkpoint.
- unilab.training.run.resolve_nan_guard_cfg(training_cfg)[source]¶
Build the shared
NanGuardCfgfromtraining.nan_guard, orNone.- Parameters:
training_cfg (
Any)- Return type:
- unilab.training.run.apply_env_nan_guard(env, training_cfg)[source]¶
Attach a
NanGuardtoenvwhentraining.nan_guardis enabled.
- 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.get_log_root(root_dir, cfg)[source]¶
Resolve the algorithm log root, honoring optional training.log_root overrides.