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

How to train on more than one gpus? #16

Open
minglii1998 opened this issue Apr 29, 2020 · 1 comment
Open

How to train on more than one gpus? #16

minglii1998 opened this issue Apr 29, 2020 · 1 comment

Comments

@minglii1998
Copy link

Even if I set the CUDA_VISIBLE_DEVICES as 0,1,2,3 , still this code can only run on the first gpu.
I added the nn.DataParallel function by myself, but here comes AssertionError when testing.
Thus I wonder if this model can be trained on two or mare gpus naturally, or it just because my wrong operation.
Thanks a lot.

@Wang-Tianwei
Copy link
Owner

Sorry, I haven't tried multi-gpu training. But it seems to be a common issue...

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