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 IC runs w/ torchrun #1784

Merged
merged 1 commit into from
Oct 20, 2023
Merged

Enable IC runs w/ torchrun #1784

merged 1 commit into from
Oct 20, 2023

Conversation

anmarques
Copy link
Member

The DDP fix implemented in this PR uses an older interface to pass the local rank for DDP that only works w/ torch.distributed.run.

This PR replaces this by passing the local rank via an environment variable, which is supported by both torch.distributed.run and the newer torchrun interfaces.

Copy link
Contributor

@ohaijen ohaijen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@anmarques anmarques merged commit 915306a into main Oct 20, 2023
11 checks passed
@anmarques anmarques deleted the fix/ic/ddp branch October 20, 2023 13:29
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 this pull request may close these issues.

None yet

3 participants