The job configuration resides in
The Structured Config is below, the latest definition is here.
The job name is used by different things in Hydra, such as the log file name (
It is normally derived from the Python file name (The job name of the file
You can override it via the command line, or your config file.
Enables the creation of an output directory which is based on command line overrides. Learn more at the Customizing Working Directory page.
The job ID is populated by the active Hydra launcher. For the basic launcher, the job ID is just a serial job number. Other launchers will set it to an ID that makes sense like SLURM job ID.
Serial job number within this current sweep run. (0 to n-1).
The config name used by the job, this is populated automatically to match the config name in
Dict[str, str] that is used to set the environment variables of the running job.
Some common use cases are to automatically set environment variables that are affecting underlying libraries.
For example, the following will disables multithreading in Intel IPP and MKL:
Another example, is to use interpolation to automatically set the rank for Torch Distributed run to match the job number in the sweep.
In some cases you want to automatically copy local environment variables to the running job environment variables. This is particularly useful for remote runs.