-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Allow users to explicitly pass config files from the command-line. #238
Comments
+1 |
My current workaround is something like this:
|
Hi, I would like to address the "brittle and confusing" part: I get that this is probably different how you are doing things, but I have a concern that you are missing a large part of what Hydra can do, which is likely why you are asking for it. Can you tell me more about the specific use case that requires multiple configuration files and that cannot be handled by configuration composition? |
I think it's true to say config should be next to applications, but does it make sense to ship configs with library code? Hydra does this, but should all libraries? |
I think it does make sense to provide default configs with the library. Libraries are not well covered by the documentation right now, but I am happy to work with you here and show you what I have in mind for libraries. Can you tell me more about your library? |
Yes, it will be a machine learning library which will have configuration that will make integration with hydra super convenient. There are various configs for e.g., tasks, hyperparameter options, data, etc. |
Sounds great. |
I am going to close this. at this time I do not see a good enough reason to introduce this mechanism. my primary concern is that once this is there people would use it instead of composition, which would defeat the purpose of using Hydra. |
@omry how do you think about UNIX convention, i.e., configs in /etc and ~/.config? |
@hrchu, I think it might make sense to allow adjusting the config search path to support external configuration, but even so the right solution would probably not be to replace the main config file but just allow composing from sources in other directories. |
Hi, is this still alive? |
Still alive in #386. |
🚀 Feature Request
A user should be able to explicitly pass a config file to use as a command-line argument.
Motivation
Hard-coded paths makes scripts using hydra brittle and confusing (a là the "what's my CWD?" game). A user should be able to pass a config explicitly.
Pitch
Describe the solution you'd like
A
config_file
command-line flag could be added which, when provided, is the config to be used.Describe alternatives you've considered
Are you willing to open a pull request? (See CONTRIBUTING)
Probably. :-)
The text was updated successfully, but these errors were encountered: