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 specify the gpu in the training? #24

Open
lky-violet opened this issue Sep 12, 2023 · 1 comment
Open

How to specify the gpu in the training? #24

lky-violet opened this issue Sep 12, 2023 · 1 comment

Comments

@lky-violet
Copy link

Hello, I want to use gpu speed up the training process. However the default gpu which id is "0" has been occupied. So I want to specify the gpu to train my model. But in the config file I only find the key that specify the number of gpu. So I want to know how to change the config file that I can specify my training gpu id.

@weimingwill
Copy link
Owner

You can run the command with CUDA_VISIBLE_DEVICES=1 to specify GPU 1. For example,

CUDA_VISIBLE_DEVICES=1 python run.py
CUDA_VISIBLE_DEVICES=1 ./run.sh

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