diff --git a/pytorch_lightning/plugins/training_type/ddp.py b/pytorch_lightning/plugins/training_type/ddp.py index 6e6c292eec140..18f9528d163b0 100644 --- a/pytorch_lightning/plugins/training_type/ddp.py +++ b/pytorch_lightning/plugins/training_type/ddp.py @@ -159,6 +159,8 @@ def _call_children_scripts(self): if _HYDRA_AVAILABLE: if HydraConfig.initialized(): cwd = get_original_cwd() + os_cwd = f'"{os.getcwd()}"' + command += [f'hydra.run.dir={os_cwd}', f'hydra.job.name=train_ddp_process_{local_rank}'] proc = subprocess.Popen(command, env=env_copy, cwd=cwd) self.interactive_ddp_procs.append(proc)