TypeError: cannot pickle '_thread.RLock' object #13183
Unanswered
LanceKnight
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
@LanceKnight It's a limitation of spawn-based strategies such as ddp spawn. I believe you won't see the error if you use ref: https://pytorch-lightning.readthedocs.io/en/stable/accelerators/gpu.html#pickle-errors |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to write a scheduler (using startmap from multiprocessing) so I can run multiple pytorch_lightning jobs at the same time. I worked fine when I used just 1 gpu. But when I changed --gpus from 1 to 2. I got the following error. Can someone help?
pytorch lightning version: 1.6.3
python version: 3.10.4
pytorch version: 1.11.0+cu113
Beta Was this translation helpful? Give feedback.
All reactions