-
Notifications
You must be signed in to change notification settings - Fork 1
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
load config files in order, later overrides earlier, lots more testing #108
Conversation
why the merge commit? |
10c58e9
to
0cc0c98
Compare
https://github.com/orgs/community/discussions/12032 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! 🚀
- why do we need
filter_config_to_actual_config_values
? - in general I'm quite overwhelmed by train/config/utils.py, I didn't realize we'll need all of this to have the functionality I imagined
- could you add some docstrings? like what are the functions doing and why we need them
"--config_files", | ||
"--config_file", | ||
"-c", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"--config_files", | |
"--config_file", | |
"-c", | |
"--config", | |
"-c", |
I don't care about backward compatibility, no one is using this yet
I think we actually don't need this anymore, going to optimistically delete. |
I added some more docstrings explaining how some things are used, why we need them, and how they work. I also deleted a few things that we don't need anymore. |
The main functional impact of this PR is to kill the "priority" config arg and just load configs in the order in which they're passed in to the training script, with the later overriding the former. Alongside this we do some refactoring to support testing to ensure that everything works as expected. We also improve type-casting override argument strings to better match the actual config types and make it significantly less dangerous.