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 #31

Open
wangqian621 opened this issue Apr 4, 2022 · 1 comment
Open

Multiple GPUs #31

wangqian621 opened this issue Apr 4, 2022 · 1 comment

Comments

@wangqian621
Copy link

How to use multiple GPUs for training? Do I need to write the function of setting multiple GPUs into the model?

@airsplay
Copy link
Owner

airsplay commented Apr 5, 2022

You can try with distributed data parallel: https://pytorch.org/tutorials/intermediate/ddp_tutorial.html. However, since different nav rollouts have different length and PyTorch DDP uses synchronized update, the speed of each step would be equal the the slowest one.

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