How to use interpolation at hydra.job.env_set #2508
-
Hi, hydra lovers. I have one question. I am now working on the shared server that has multiple devices. So far, I set this environment variable using Then, I tried running using a config file as follows.
But it didn't work, and I got an error below.
I confirmed that I could run a code by setting |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @YoshikiKubotani, Some parts of the top-level My suspicion is that Hydra is trying to read from the |
Beta Was this translation helpful? Give feedback.
Hi @YoshikiKubotani,
Some parts of the top-level
hydra
config are computed early on, before the user job's config is computed.As an example of why this is necessary, the
hydra.searchpath
key will influence how the user's job config is composed, so it's necessary to computehydra.searchpath
before beginning composition of the job's config.My suspicion is that Hydra is trying to read from the
hydra.job.env_set
variable before the job config has been computed (and thus before thedevice
key has been set to1
).