How Multi-GPU works? #12394
Unanswered
dl-noob
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
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.
-
Hey,
I have a question related to multi-gpu mode.
I created some pl trainer object like:
and run prediction mode:
and get such output:
I expected that multiple processes should be spawned only for internal computations of the Trainer. But in practice, my external function that starts Trainer.predict(...), returns multiple values, and it looks like external function spawned to multiple processes. Is it right? How can we handle it for work with a single process and single return values? Thanks!
p.s. is there any default function for all_gather of the returned predictions?
Beta Was this translation helpful? Give feedback.
All reactions