How many effective workers does my code use? #10853
Answered
by
awaelchli
miraodasilva
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
If I select X workers in my dataloader, and I train my model using ddp with Y GPUs, is the effective amount of workers running in the machine X*Y or X? |
Beta Was this translation helpful? Give feedback.
Answered by
awaelchli
Dec 3, 2021
Replies: 1 comment 4 replies
-
Yes! The script will launch Y times in a separate process. Each process will then create their own dataloader with as many workers as given. So X*Y workers in total accessing your filesystem. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
miraodasilva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes! The script will launch Y times in a separate process. Each process will then create their own dataloader with as many workers as given. So X*Y workers in total accessing your filesystem.