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 use multiple GPUs to train dagger models? #35

Closed
PeihaoChen opened this issue Mar 31, 2022 · 2 comments
Closed

How to use multiple GPUs to train dagger models? #35

PeihaoChen opened this issue Mar 31, 2022 · 2 comments

Comments

@PeihaoChen
Copy link

Thanks for the great work.

When I run training using dagger_trainer.py, I found that a large part of training time is taken by 1) collecting data and 2) training the model using collected data. The first process can be speeded up by setting more simulator GPU (SIMULATOR_GPU_IDS). However, the second process can only use one GPU (TORCH_GPU_ID) by default.

Is there any easy way to use multiple GPUs to speed up the second process? Or should I use torch.distributed to reproduce the code by myself?

Many thanks!

@jacobkrantz
Copy link
Owner

Hi, for the model training portion of the DAgger trainer, there currently is no GPU parallelism. That would need a new implementation. torch.distributed is used for training waypoint models with the DDPPO trainer, so that could be a reference point. Good luck!

@PeihaoChen
Copy link
Author

Thanks for your reply!

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