Skip to content

Commit 33e20b9

Browse files
committed
Merge remote-tracking branch 'origin/main' into progress_tracker
2 parents d97781b + 690a223 commit 33e20b9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

oellm_autoexp/monitor/local_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import yaml
1818
import logging
1919

20-
from compoconf import ConfigInterface, register
20+
from compoconf import ConfigInterface, register, asdict
2121

2222
from oellm_autoexp.monitor.job_client_protocol import JobClientInterface
2323
from 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))

oellm_autoexp/monitor/slurm_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pathlib import Path
88
import yaml
99

10-
from compoconf import ConfigInterface, register
10+
from compoconf import ConfigInterface, register, asdict
1111
from oellm_autoexp.slurm_gen import generate_script, validate_job_script
1212
from 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

0 commit comments

Comments
 (0)