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

Updating usage to to_yaml to fix some structured config bugs #400

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

JackUrb
Copy link
Contributor

@JackUrb JackUrb commented Feb 22, 2021

Details

In trying to store configurations into the MephistoDB for future use, we had been using OmegaConf.to_container which seems to not preserve all of the behaviors that are ideal for nested structured configs (in reconstruction). This PR changes to use to_yaml. This change should not effect previously saved runs, as both the results of to_container and to_yaml are valid parameters for the later OmegaConf.create() call.

Following discussion in #399, this also removes the resolve portion of writing out the configuration, as downstream tasks may want the interpolation and there's no real risk for us including them. We retain storing the yaml rather than using pickles (and getting type safety) as configuration signatures for specific tasks may change over time, and we want the old ones to be properly loadable/examinable.

@ytsheng please see if this resolves the issue you were having in your setup.

Testing

Unit testing

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 22, 2021
Copy link
Contributor

@pringshia pringshia left a comment

Choose a reason for hiding this comment

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

seems fine to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants