-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
make_distribute_tutorial_work_in_google_colab #3022
make_distribute_tutorial_work_in_google_colab #3022
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3022
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit c7f5a9d with merge base 01eeee6 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@svekars , Please review. Note : Since the change is in the same file (and is little), I am trying to address both issues together. |
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
@venkatram-dev - do you want to resolve the conflicts and land this PR? |
Fixes #ISSUE_NUMBER
#3003
#3009
Description
for issue 3003
mp.set_start_method("spawn") works in local (mac)
But using that does not work well in google colab, since it has some restrictions.
So added below code snippet to address both.
Please note mp.set_start_method("fork") will also work in google colab. But it will work only if the code is run once.
Upon rerunning, it will fail. mp.get_context("spawn") allows multiple reruns with our restarting the session.
Also added clarification for issue 3009
Since the change is in the same file (and is little), I am trying to address both issues together.
I am happy to make 2 PRs if needed.
Checklist
cc @wconstab @osalpekar @H-Huang @kwen2501