Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jafraustro
Copy link

Motivation

  • Refine the DDP tutorial to make it device-agnostic by using the Accelerator API.

Description

  • Integrate the Accelerator API into the DDP tutorial to support multiple accelerators and improve backend initialization.
  • Align the implementation with this example from the PyTorch examples repository.

Checklist

  • The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
  • Only one issue is addressed in this pull request
  • Labels from the issue that this PR is fixing are added to this pull request
  • No unnecessary issues are included into this pull request.

…nd improve backend initialization

Signed-off-by: jafraustro <jaime.fraustro.valdez@intel.com>
Copy link

pytorch-bot bot commented Aug 5, 2025

🔗 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.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 29bf2b8 with merge base 120068e (image):
💚 Looks good so far! There are no failures yet. 💚

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

@meta-cla meta-cla bot added the cla signed label Aug 5, 2025
@sekyondaMeta sekyondaMeta requested a review from fegin August 6, 2025 16:32
@sekyondaMeta
Copy link
Contributor

@fegin could you take a look at this when you get a chance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants