-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
3rd partyRelated to a 3rd-partyRelated to a 3rd-partyfeatureIs an improvement or enhancementIs an improvement or enhancementstrategy: ddpDistributedDataParallelDistributedDataParallelwon't fixThis will not be worked onThis will not be worked on
Description
Description & Motivation
Hi,
the current behavior to initialize DDP subprocesses with Hydra is here, which overrides the hydra.run.dir with os.getcwd().
This is assuming the os.getcwd() will return the output directory that Hydra assigned. However, since Hydra 1.2, Hydra will keep the cwd as the project directory by default. This command will result in logging the subprocess in the project directory.
Pitch
Logging the DDP subprocess correctly in the output directory created by Hydra
Alternatives
use:
os_cwd = hydra.core.hydra_config.HydraConfig.get()['runtime']['output_dir']
os_cwd = f'"{os_cwd}"'
instead
Additional context
No response
zakajd and Markus28
Metadata
Metadata
Assignees
Labels
3rd partyRelated to a 3rd-partyRelated to a 3rd-partyfeatureIs an improvement or enhancementIs an improvement or enhancementstrategy: ddpDistributedDataParallelDistributedDataParallelwon't fixThis will not be worked onThis will not be worked on