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 distributed train? #67

Open
Dududu233 opened this issue Nov 10, 2021 · 5 comments
Open

how to distributed train? #67

Dududu233 opened this issue Nov 10, 2021 · 5 comments

Comments

@Dududu233
Copy link

I have tried run 'python tain_vqvae.py --path '\home\lab\ffhq_dataset' 'in terminal, but there is a error 'module 'torch.distributed' has no ttributed 'launch' '.
I read some other distributed training examples, and I didn't find such a usage for distributed:"dist.launch(main, args.n_gpu, 1, 0, args.dist_url, args=(args,))" .They just run 'python -m distributed.launch script.py 'in terminal.
What's the wrong and how can I fix it?
Looking forward to your response.

@Dududu233
Copy link
Author

By the way, I use python3.7 pytorch1.1.0 and cuda 9.0.

@Dududu233
Copy link
Author

I found more functions not in module'distributed', such as dist.is_primary. Is this a function written by yourself? What's the porpose of these functions?

@rosinality
Copy link
Owner

rosinality commented Nov 13, 2021

It is in the https://github.com/rosinality/vq-vae-2-pytorch/tree/master/distributed. I don't know why torch.distributed is used, instead of this.

@Dududu233
Copy link
Author

Thank you for your response. The problem is solved.

@berryweinst
Copy link

@Dududu233 , how did you solve the problem?

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