Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to use mutli-gpu for training? #11

Closed
tornadomeet opened this issue Sep 23, 2019 · 2 comments
Closed

How to use mutli-gpu for training? #11

tornadomeet opened this issue Sep 23, 2019 · 2 comments

Comments

@tornadomeet
Copy link
Contributor

It seems that hplflownet now only support single gpu training, so how to modify it for using multi-gpu training?

thanks.

@laoreja
Copy link
Owner

laoreja commented Sep 23, 2019

Hi, the bottleneck is that our inputs has variable length since we use sparse CNN. So if we are going to support multi-gpu training, we need to padding correctly I guess, or try to use distributed data parallel so that each GPU use a different process and set the batch size on each gpu still to be 1.

@tornadomeet
Copy link
Contributor Author

@laoreja thanks, i think i can try the second method, which using torch.nn.parallel.DistributedDataParallel

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

No branches or pull requests

2 participants