mit-ll-responsible-ai / hydra-zen

Create powerful Hydra applications without the yaml files and boilerplate code.

Home Page:https://mit-ll-responsible-ai.github.io/hydra-zen/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to retrieve the complete current hydra config?

danielgafni opened this issue · comments

Hey everyone!

Maybe this sounds like a stupid question, but I was not able to find a straightforward way of doing this (both in hydra and hydra-zen docs).

I am trying out something like:

cs = ConfigStore.instance()
cfg = OmegaConf.create(cs.load("fit.yaml").node)

but this is just the default config without current overrides.

Thanks a lot for the help!

P.S. callbacks won't work as I need it inside my actual script

Hey, thanks!

This still looks like a good workaround. I think it should be sufficient for me.

However, I think there should be a less hacky way of doing this (for example, this won't work if output dir creation is disabled). So I'm going to keep this issue opened.

Yep this is great! Thanks!