Skip to content

Use structured configs to override Hydra config #781

Answered by rsokl
addisonklinke asked this question in Q&A
Discussion options

You must be logged in to vote

Hrmm.. I think being able to swap out the full hydra config from the CLI is tricky here. Afaict Hydra looks specifically for the store entry: group=hydra, name=config, which is how the simple customize hydra config how-to works.

I have been finding a lot of success for my own use cases with scaffolding above the Hydra CLI. Specifically I overwrite zen.hydra_main and transform the sys.argv list before it gets sent to the underlying hydra_main call. I also do things like "if you specify a launcher, I will automatically add --multirun for you", and it is just so much easier to work with this logic than wrestle with complexities like the above. For this reason, I also don't have much insight …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@addisonklinke
Comment options

Answer selected by addisonklinke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants