Skip to content
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

multiple gpus training #13

Open
LLL-YUE opened this issue Jul 6, 2024 · 1 comment
Open

multiple gpus training #13

LLL-YUE opened this issue Jul 6, 2024 · 1 comment

Comments

@LLL-YUE
Copy link

LLL-YUE commented Jul 6, 2024

I can't seem to use multiple gpus
There are two gpus in the setup, but training seems to be done on only one gpu causing out of memory
How can this situation be resolved?

@noelshin
Copy link
Owner

noelshin commented Jul 6, 2024

For this, you need to check how to use multiple GPUs with PyTorch. E.g., you can check: https://pytorch.org/tutorials/beginner/former_torchies/parallelism_tutorial.html

As to solve your out of memory issue, you could consider reducing the batch size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants