Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omegaconf #116

Merged
merged 7 commits into from
Mar 20, 2024
Merged

Omegaconf #116

merged 7 commits into from
Mar 20, 2024

Conversation

mirkobronzi
Copy link
Collaborator

@mirkobronzi mirkobronzi commented Mar 15, 2024

Added omegaconf support, to handle multiple config files in a hierarchical way.
(also added support to pass config file parameters via CLI)

Copy link

@plstcharles-mila plstcharles-mila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with one pending question related to command line args override

:return:
"""
parsed_configs = [OmegaConf.load(config) for config in configs]
merge = OmegaConf.merge(OmegaConf.from_dotlist(cli_config_params), *parsed_configs)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the "from_dotlist" (argparser) params not override the config params?

For example, if I know my YAML config trains a model for 10 epochs and now I want to train it for 30 (as a side-experiment), I would probably expect my command line modification to override anything in the YAML configs...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good catch. I fixed it now.

@plstcharles plstcharles self-requested a review March 19, 2024 14:39
Copy link
Member

@plstcharles plstcharles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(adding approval on the right account)

@plstcharles plstcharles self-requested a review March 20, 2024 18:32
@mirkobronzi mirkobronzi merged commit 6327a28 into development Mar 20, 2024
1 check passed
@mirkobronzi mirkobronzi deleted the omegaconf branch March 20, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants