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

[c10d] add fake pg necessary collectives #102238

Closed
wants to merge 1 commit into from

Conversation

wanchaol
Copy link
Contributor

@wanchaol wanchaol commented May 25, 2023

Stack from ghstack (oldest at bottom):

This PR adds fake pg necessary collectives to enable e2e FSDP run
with out multiprocess or multithreading

This PR adds fake pg necessary collectives to enable e2e FSDP run
with out multiprocess or multithreading

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented May 25, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/102238

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit a21ea0a:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the release notes: distributed (c10d) release notes category label May 25, 2023
wanchaol added a commit that referenced this pull request May 25, 2023
This PR adds fake pg necessary collectives to enable e2e FSDP run
with out multiprocess or multithreading

ghstack-source-id: 13e76fc541acab17e5a12a933f6ba033646bc06a
Pull Request resolved: #102238
@wanchaol wanchaol requested review from ezyang and wconstab May 25, 2023 01:50
# Fake process group doesn't need barrier
pass
elif backend == Backend.MPI:
if backend == Backend.MPI:
Copy link
Contributor

Choose a reason for hiding this comment

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

Nyehh, I think I preferred not mucking about with the environment variable instead haha.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I kinda feel bad for this too, it was easier for me to leverage the previous work that uses a environ knob to control barrier init, let me think about it, there should be some better way for custom backend.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

landing this first to unblock dev efficiency and will address this in a follow up PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

follow up PR here: #102343

@wanchaol wanchaol added the ciflow/trunk Trigger trunk jobs on your pull request label May 25, 2023
@wanchaol
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@facebook-github-bot facebook-github-bot deleted the gh/wanchaol/316/head branch June 8, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: distributed (c10d) release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants