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 single GPU #26

Open
Chen65010445 opened this issue Aug 25, 2020 · 3 comments
Open

How to train on single GPU #26

Chen65010445 opened this issue Aug 25, 2020 · 3 comments

Comments

@Chen65010445
Copy link

For I don't have multi-GPUS, I changed the GPUS = (0,0,0,0), but this error came RuntimeError: inputs must be on unique devices. There is no doubt telling that this network working on more than one GPUS. So how do I change the code to run them on single GPU?

@LvShuaiChao
Copy link

image
Find your corresponding yaml file, and then change its GPUs number to a separate 0.

@piyushchauhan
Copy link

Remove the GPUS: from the yaml file that you are using. By default GPU is set to 0.
Refer:

@HRHLALALA
Copy link

HRHLALALA commented Jul 21, 2021

@piyushchauhan @LvShuaiChao Hi, have you done any other operations? I have just simply changed the GPUs but got the error: RuntimeError: Default process group has not been initialized, please make sure to call init_process_group. Do you know how to solve it?

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

4 participants