-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.8.0-dev hydra changed working directory for other GPUs with DDP #2086
Comments
can you share a colab for this? |
Hydra is changing your current working directory. This is the standard behavior. I am not sure if this is what you are expecting. See working directory in the basic tutorial. |
@omry is there a way to not change directory? i’m afraid this breaks ddp since it needs to call the script multiple times. It also doesn’t seem like the user is expecting this anyhow, which might not be a good user experience. unfortunately the benefits of calling ddp this way FAR outweigh the problems with using .spawn. finally, changing the directory for the user is going to break a lot of things like loggers, etc... imho, this should not be done. |
@williamFalcon, This default behavior is here to stay and Hydra users are expecting it if they read the documentation (Most of them do). We can look together at the issue with DDP and see what is the best way to address this. (for example by using the API I mentioned to access the original working directory or by another mean). |
@omry |
@joe32140, this is a new change in how PL which is not related to the hparam change. I think there is a slight incompatibility here between Hydra and the new version of PL that should be pretty simple to fix. |
So is it safe to assume the "new" ddp and hydra will be incompatible indefinitely? Hydra has almost completely changed my config work-flow... especially with the multi-runs for parameter searches, which separate into different working directories per run. The new PL ddp is looking amazing though. |
I will let @williamFalcon give an authoritative answer, but my understanding is that this should now be compatible. |
🐛 Bug
When I moved from 0.7.6 to 0.8.0-dev for DicConfig support for saving model hparams, I found that working directory changed for GPUs in DDP setting. I modify from huggingface.
Code sample
where
finetune.py
is in/home/joe/summarization/models/bart/
and the program just stuck here like forever.
My hydra
config.yaml
isExpected behavior
Programs on other GPUs should load
finetune.py
from'/home/joe/summarization/models/bart/
Environment
conda
,pip
, source): condaThe text was updated successfully, but these errors were encountered: