File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717import yaml
1818import logging
1919
20- from compoconf import ConfigInterface , register
20+ from compoconf import ConfigInterface , register , asdict
2121
2222from oellm_autoexp .monitor .job_client_protocol import JobClientInterface
2323from oellm_autoexp .monitor .utils .paths import resolve_log_path , update_log_symlink
@@ -104,7 +104,7 @@ def submit(
104104 LOGGER .info (f"Logging Config to: { resolved_config_path } " )
105105 Path (resolved_config_path ).parent .mkdir (parents = True , exist_ok = True )
106106 with open (resolved_config_path , "w" ) as fp :
107- yaml .dump (job .base_config , fp )
107+ yaml .dump (asdict ( job .base_config ) , fp )
108108 if job .config_path_current :
109109 config_path_obj = Path (resolved_config_path )
110110 update_log_symlink (config_path_obj , Path (job .config_path_current ))
Original file line number Diff line number Diff line change 77from pathlib import Path
88import yaml
99
10- from compoconf import ConfigInterface , register
10+ from compoconf import ConfigInterface , register , asdict
1111from oellm_autoexp .slurm_gen import generate_script , validate_job_script
1212from oellm_autoexp .slurm_gen .client import (
1313 BaseSlurmClient ,
@@ -83,7 +83,7 @@ def submit(
8383 config_path = expand_log_path (job .config_path , job_id = job_id )
8484 LOGGER .info (f"Logging Config to: { config_path } " )
8585 with open (config_path , "w" ) as fp :
86- yaml .dump (job .base_config , fp )
86+ yaml .dump (asdict ( job .base_config ) , fp )
8787 if job .config_path_current :
8888 update_log_symlink (Path (config_path ), Path (job .config_path_current ))
8989 return job_id
You can’t perform that action at this time.
0 commit comments