-
Notifications
You must be signed in to change notification settings - Fork 35
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
how to carry out multi-GPU with lightning-pose? #138
Comments
We do not currently support multi-GPU training but it should not be difficult to implement with our current setup (at least for the supervised models). We'll be happy to look into this but it might take us a week or so, we'll keep you updated. |
I'm also interested in multi-GPU training and would like to follow this. Thank you! |
Hi @Wulin-Tan and @YitingChang, I am starting to investigate support for multi-GPU on lightning pose. Could you provide some more context about your goals with multi-gpu - i.e. are you requesting this to accelerate training or inference, or are you running into memory limitations with one GPU? This will help us guide our development. Thanks! |
Hi @ksikka , Thank you for following up! I'm encountering memory limitations with a single GPU, so I'd like to explore running Lightning Pose with multiple GPUs. To give you more context on my current setup: as I add more features—such as unsupervised losses and temporal context networks—the memory demands increase. I've had to significantly resize images and reduce batch sizes to fit within the memory constraints. Currently, I’m running Lightning Pose on a cluster with one GPU that has 40 GB of memory. Allocating more GPUs shouldn't be an issue if Lightning Pose can support multi-GPU functionality. |
@ksikka yes, I need to handle more GPU memory as well as faster training if possible. |
Hi @YitingChang and @Wulin-Tan support for multi-GPU was just added for supervised training. This works for both heatmap and heatmap_mchrnn as long as To use it, set So the request is fulfilled for supervised. Support for multi-gpu when using unsupervised losses is a work-in-progress. |
Without multi-gpu on unsupervised, you might have success with gradient accumulation (see Update: also reduce |
Hi, lighting pose team
I am very interested in this super cool tool.
How to do multi-GPU with lighting pose?
I can't find multi-GPU information in the tutorial.
The text was updated successfully, but these errors were encountered: