Many things in Hydra can be customized, this includes:
- Logging configuration
- Run and Multirun output directory patterns
- Application help (--help and --hydra-help)
Hydra can be customized using the same methods you are already familiar with from the tutorial. You can include some Hydra config snippet in your own config to override it directly, or compose in different configurations provided by plugins or by your own code. You can also override everything in Hydra from the command line just like with your own configuration.
The Hydra configuration actually lives in the same config object as your configuration, but is removed prior to running
your function to reduce confusion.
You can view the configuration with
The Hydra configuration itself is composed from multiple config files. here is a partial list:
You can view the Hydra config structure here.
This is a subset of the composed Hydra configuration node:
The following variables are populated at runtime. You can access them as config variables.
- hydra.job.name : Job name, defaults to python file name without suffix. can be overridden.
- hydra.job.override_dirname : Pathname derived from the overrides for this job
- hydra.job.num : job serial number in sweep
- hydra.job.id : Job ID in the underlying jobs system (Slurm etc)
- hydra.runtime.version: Hydra's version
- hydra.runtime.cwd: Original working directory the app was executed from