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

use torch api to get distributed backend #3804

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ankurneog
Copy link
Contributor

Motivation

Use torch.distributed APIs to get distributed backend name for device

Modifications

Use API : https://github.com/pytorch/pytorch/blob/baccadb2f147863db5d43edd3dba6b55081b9288/torch/distributed/distributed_c10d.py#L1372
in init_torch_distributed to get the default distributed backend name directly instead of hardcoding these names.

@ankurneog
Copy link
Contributor Author

will work only with Pytorch 2.6.0+

@ankurneog ankurneog reopened this Feb 24, 2025
@ankurneog ankurneog marked this pull request as draft February 24, 2025 05:49
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.

1 participant