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

Enable multi-gpu training when "torch" is chosen as the RETURNN backend #444

Closed
Judyxujj opened this issue Aug 18, 2023 · 0 comments · Fixed by #445
Closed

Enable multi-gpu training when "torch" is chosen as the RETURNN backend #444

Judyxujj opened this issue Aug 18, 2023 · 0 comments · Fixed by #445
Assignees

Comments

@Judyxujj
Copy link
Contributor

Using the current mpirun to launch the torch distributed data parallel (DDP) training gives error ValueError: Error initializing torch.distributed using env:// rendezvous: environment variable RANK expected, but not set. Therefore in order to enable the multi-gpu training for torch backend, once backend = "torch" is detected in returnn config, ReturnnTrainingJob will now use torchrun to launch DDP training.

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

Successfully merging a pull request may close this issue.

1 participant