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 train on multiple GPUs #35

Open
DJjiery opened this issue Dec 21, 2023 · 4 comments
Open

How to train on multiple GPUs #35

DJjiery opened this issue Dec 21, 2023 · 4 comments

Comments

@DJjiery
Copy link

DJjiery commented Dec 21, 2023

Can you tell me how to train with multiple GPUs, is it the same way as Isacc gym?

@ant2022tna
Copy link

Same problem, do you have a solution?

@DJjiery
Copy link
Author

DJjiery commented Jan 10, 2024

Same problem, do you have a solution?
In eureka training, the program will automatically find the most free card on the server for training, it can automatically multi-card, the code is in line 187 of eureka.py, the function points to misc.py;
However, running train.py with rl_device=cuda: (not the 0th card) in isaacgymenv under the project results in a situation where the tensor is not on the same card, is there a good way to handle this?
image

@ViktorM
Copy link

ViktorM commented Jan 24, 2024

@DJjiery you need to set not only rl_device=cuda:X but also sim_device=cuda:X to match the rl_device

@DJjiery
Copy link
Author

DJjiery commented Jan 30, 2024

@DJjiery you need to set not only rl_device=cuda:X but also sim_device=cuda:X to match the rl_device
I tried this, but it still outputs the same error, and it only appears on isaacgymenv under eureka, but it doesn't happen on the official IsaacGymEnvs 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