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

About multi-GPU operation #10

Closed
Z-Z-J opened this issue Sep 12, 2020 · 2 comments
Closed

About multi-GPU operation #10

Z-Z-J opened this issue Sep 12, 2020 · 2 comments

Comments

@Z-Z-J
Copy link

Z-Z-J commented Sep 12, 2020

I seem to find two code errors!
In base_trainer.py
code:
if gpu_id > n_gpu:
msg = "Warning: The number of GPU's configured to use is {}, but only {} are available on this machine.".format(n_gpu_use, n_gpu)

                            problem :   n_gpu_use is not defined

code:
list_ids = list([gpu_id])
if len(device_ids) > 1:
self.model = torch.nn.DataParallel(model, device_ids=device_ids)

                     problem:  len(device_ids)  is  always  1,so cant use multi-GPU
@Shimingyi
Copy link
Owner

Now I havn't implemented multi-GPU training because this model doesn't require a lot of resourecs. But I will support it to support multi-GPU training, thanks for your feekback!

@anas-zafar
Copy link

Hi @Shimingyi, were you have to implement multi-GPU training?

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

3 participants