Search code examples
fb-hydra

How to make the hydra output directory configurable from configuration?


How to make the hydra output directory configurable from configuration?

Like, I'd like to be able to specify the directory that hydra dumps it's hydra.yaml to, instead of it being hardcoded to outputs.

I imagine one way to achieve this could be something like:

  • have an option to instantiate hydra without dumping the config to outputs
  • have a hydra method taht will dump the hydra config to a folder of our choice

Thoughts?


Solution

  • You can override hydra.output_subdir. From the manual.

    You can change the .hydra subdirectory name by overriding hydra.output_subdir. You can disable its creation by overriding hydra.output_subdir to null.