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

Training on multiple GPUs #41

Open
mohummedalee opened this issue Jun 11, 2024 · 0 comments
Open

Training on multiple GPUs #41

mohummedalee opened this issue Jun 11, 2024 · 0 comments

Comments

@mohummedalee
Copy link

I'm re-using the Trainer implemented in examples.classification.src.trainer. It largely looks like a port of the original Trainer source code but I noticed that has an additional check that stops training when multiple GPUs are available. Specifically:

if self.args.local_rank != -1 or self.args.n_gpu > 1:
    raise ValueError("Multi-gpu and distributed training is currently not supported.")

What could go wrong if I comment this out and let the distributed training proceed with torch.nn.DataParallel(model)? Appreciate the well-written code—thanks for the help in advance.

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

1 participant