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 run the code in single gpu? #14

Closed
Pixie8888 opened this issue Nov 29, 2022 · 2 comments
Closed

how to run the code in single gpu? #14

Pixie8888 opened this issue Nov 29, 2022 · 2 comments

Comments

@Pixie8888
Copy link

Pixie8888 commented Nov 29, 2022

Hi,
Thanks for releasing the code. I want to run your code in single gpu. I am trying running this command:
"python run.py --method COS --name COS --epochs 30 --lr 0.01 --batch_size 24",
but it gives this error:
image

Could you please give some suggestion on how to run the code in the single gpu? Thanks!

@fcdl94
Copy link
Owner

fcdl94 commented Nov 30, 2022

Hello, please check the README.md file.
Moreover, to run experiments, I suggest using the files in the run folder.

In your specific case, you should use the following:
python -m torch.distributed.launch --master_port ${port} --nproc_per_node=1 run.py --num_workers 4 ... your parameters here ...

@Pixie8888
Copy link
Author

thanks.

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