Design to override individual config values from primary config #797
Unanswered
addisonklinke
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have a config like this (boilerplate
_target_fields removed)Hydra's defaults list makes it easy for me to specify "config groups" like
trainer/dataset_info=localin the primary config. However I haven't found a way to request "config value" overrides liketrainer.max_epochs=1with dot-syntax. It would be nice to codify these settings so the override doesn't have to be specified every time on the CLII'm aware something like this is possible
However this feels like a lot of boilerplate to create a whole config group just to override one primitive value
Here's an attempt that almost does what I want by introducing the concept of
EntrypointConfigand using them totemplatize_entrypoint()Now you can run the default
configOr use one of the other
config_namesas an alias to avoid typing an entire override. Granted we're only overriding one config value here so characters saved are minimal, but in theory this supports unlimited config group and value settings under one flagWhere things seem to break is using both
-cnand a config group CLI override (localinstead ofdefault)Looking for feedback on
hydra_defaultscan still be used to communicate the information vs. needing tocompose()a new nodeoriginalvs.updatednodes in a debugger, I notice only the former includesdefaults: ListConfigso I think the lack of this component in the Compose API return is suspiciousBeta Was this translation helpful? Give feedback.
All reactions