unilab.algos.torch.hora.distill_config¶
HORA distillation config and teacher-owner resolution helpers.
Functions
|
Merge teacher-owner defaults under the user distillation config. |
Resolve the teacher algo family and task owner from distillation config. |
|
|
Load a HORA teacher owner config and its direct owner defaults. |
|
Resolve the selected HORA teacher checkpoint through owner metadata. |
Return checkpoint runtime fields needed to rebuild the student model. |
|
|
Build HORA student defaults from the selected teacher owner YAML. |
|
Build explicit teacher provenance metadata for distillation outputs. |
- unilab.algos.torch.hora.distill_config.load_teacher_owner_config(algo_family, task, *, root_dir=None)[source]¶
Load a HORA teacher owner config and its direct owner defaults.
- unilab.algos.torch.hora.distill_config.get_teacher_owner_spec(cfg)[source]¶
Resolve the teacher algo family and task owner from distillation config.
- unilab.algos.torch.hora.distill_config.teacher_default_cfg(cfg, *, root_dir=None)[source]¶
Build HORA student defaults from the selected teacher owner YAML.
- unilab.algos.torch.hora.distill_config.apply_teacher_defaults(cfg, *, root_dir=None)[source]¶
Merge teacher-owner defaults under the user distillation config.
- unilab.algos.torch.hora.distill_config.resolved_distill_runtime_cfg(cfg)[source]¶
Return checkpoint runtime fields needed to rebuild the student model.
Stage-2 checkpoints intentionally do not persist owner runtime settings such as env, reward, or domain randomization. Replay should use the currently composed owner config for those fields.
- Parameters:
cfg (
DictConfig)- Return type:
DictConfig