-
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
Code freezes when using DDP in terminal or PyCharm #7454
Comments
@notprime can you replicate it outside PyCharm, in regular terminal? |
@Borda I get the same error even if I run the script in regular terminal, 3 gpus are still off |
can you please tell us what is here different here compare to #7336 which was evaluated that works as intended? |
@Borda there are no differences in reality, I just used a different optimizer. trainer = pl.Trainer(
max_epochs=EPOCHS,
gpus=-1,
accelerator = 'ddp',
logger=[comet_logger, tblogger],
log_every_n_steps=steps,
precision=16,
) If I use |
so you say that if you call the same script |
ok, feel free to re-open if you have still this kind of issue 🐰 |
🐛 Bug
Hello again!
Some days ago I opened this issue:
Code freezes before validation sanity check when using DDP
Basically, DDP wasn't working, and this was related to Jupyter Notebook unable to use ddp as accelerator.
So, some days later, I tried to re-run my script in PyCharm first, then in the terminal (I just did some changes, like using MADGRAD as optimizer, nothing more).
Even there I can't use DDP. I tried both using
gpus=2
andgpus=-1
. This time the code freezes here:Even if it says
initializing ddp
, only the first GPU is ON, the other are OFF:Do you know what the problem could be?
The network isn't that big, so I could use only 1 GPU or I could use
dp
orddp_spawn
, but they are not recomendedconda
,pip
, source): 'conda'The text was updated successfully, but these errors were encountered: