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

Multi gpus pre-training #2

Open
ShaohuaDong2021 opened this issue May 14, 2023 · 1 comment
Open

Multi gpus pre-training #2

ShaohuaDong2021 opened this issue May 14, 2023 · 1 comment

Comments

@ShaohuaDong2021
Copy link

Hi, can you tell me how to use multi gpus to train the model? When I runing "python main_pretrain_cpc.py", it only uses the first gpu.
Thanks a lot.

@yangjiangeyjg
Copy link
Collaborator

Sorry for the late reply. You can run python -m torch.distributed.launch --nproc_per_node 8 main_pretrain_cpc.py, here 8 is the number of GPUs you want to use.

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