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

bug: bugs when use multi-gpu training #116

Closed
cywang97 opened this issue Jul 16, 2020 · 2 comments · Fixed by #131
Closed

bug: bugs when use multi-gpu training #116

cywang97 opened this issue Jul 16, 2020 · 2 comments · Fixed by #131
Labels

Comments

@cywang97
Copy link

Hi, hiro, I use multi GPU to train an ASR model. It seems torch.nn.parallel.DataParallel won't scatter the dict input. You should overwrite the scatter function in CustomDataParallel function to make sure each item in the dict can be scattered on different devices.

@hirofumi0810
Copy link
Owner

@cywang97 Thank you for your report. As I usually use a single GPU, I didn't notice that. I will check and fix it.

@kangj13
Copy link

kangj13 commented Sep 2, 2020

Hi, I met similar problem using multi GPUs.
image
It seems all parameters are only on GPU 0 and inputs on GPU 1.

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

Successfully merging a pull request may close this issue.

3 participants