-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add Acelerator API to ddp_tutorial #3508
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3508
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 15 PendingAs of commit 5f4478e with merge base fc8981b ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@fegin could you take a look at this when you get a chance |
Sorry for missing this earlier. The tutorial looks good to me. As long as the example doesn’t break any existing CUDA use cases, I think it’s fine. I just wanted to confirm. |
Hi @fegin, the changes do not break the CUDA case. The example https://github.com/pytorch/examples/blob/main/distributed/ddp/example.py is derived from the tutorial and incorporates the Accelerator API effectively. |
Can you rebase to the main? |
df99cf7
to
932f3b7
Compare
3eaab67
to
adcda14
Compare
@jafraustro I could not merge it since it is out-of-date again. Sorry about this. |
…nd improve backend initialization Signed-off-by: jafraustro <[email protected]>
adcda14
to
5f4478e
Compare
Motivation
Description
Checklist
CC: @gujinghui
cc @wconstab @osalpekar @H-Huang @kwen2501