Search code examples
python-3.xfb-hydra

How to pass a Hydra config via command line


There's already a related question, however the proposed Compose API no longer supports passing a config as an argument by Hydra 0.11.3.

I'm wondering if there is a way to pass the config via command line or whether this functionality is disabled in the latest version ?


Solution

  • The compose API does support passing the config as an argument

    In Hydra 1.0.0rc1, there is a new command line flag --config-name.