unilab.training.common¶
Shared helpers for training entrypoints.
Functions
Reject offpolicy configs whose task owner path does not match the selected algo. |
|
|
Construct an environment via the registry using the current Hydra config. |
Import env modules so registry-based entrypoints can instantiate tasks. |
|
|
Return a selected Hydra config-group choice when runtime metadata is available. |
|
Create a simple file-backed logger for script-local progress messages. |
- unilab.training.common.ensure_registries()[source]¶
Import env modules so registry-based entrypoints can instantiate tasks.
- Return type:
- unilab.training.common.get_hydra_runtime_choice(cfg, group)[source]¶
Return a selected Hydra config-group choice when runtime metadata is available.
- unilab.training.common.assert_offpolicy_task_choice_matches_algo(cfg, *, algo_name=None)[source]¶
Reject offpolicy configs whose task owner path does not match the selected algo.
- unilab.training.common.setup_logger(log_dir, algo_name, *, echo=True, filename='train.log')[source]¶
Create a simple file-backed logger for script-local progress messages.