Skip to content

Make AutoParallel tests GPU-agnostic using device_type - #3805

Merged
tianyu-l merged 3 commits into
pytorch:mainfrom
XueHuCH:enable_autoparallel_intel_xpu
Jul 18, 2026
Merged

tianyu-l merged 3 commits into
pytorch:mainfrom
XueHuCH:enable_autoparallel_intel_xpu

Conversation

@XueHuCH

@XueHuCH XueHuCH commented Jun 26, 2026 •

Copy link
Copy Markdown
Collaborator

In order to enable AutoParallel for Intel XPU devices, this changes the torch.device("cuda") device to torch.device(device_type).

@pytorch-bot

pytorch-bot Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@meta-cla

meta-cla Bot commented Jun 26, 2026

Copy link
Copy Markdown

Hi @XueHuCH!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@XueHuCH XueHuCH changed the title Make AutoParallel tests GPU-agnostic using current_accelerator Make AutoParallel tests GPU-agnostic using device_type Jun 27, 2026
@tianyu-l

Copy link
Copy Markdown
Contributor

pls fix lint error

@XueHuCH

XueHuCH commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot rebase

@pytorch-bot

pytorch-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

You don't have permissions to rebase this PR since you are a first time contributor. If you think this is a mistake, please contact PyTorch Dev Infra.

@frost-intel

Copy link
Copy Markdown
Contributor

@pytorchbot rebase

@XueHuCH
XueHuCH requested a review from tianyu-l July 15, 2026 03:11
@XueHuCH

XueHuCH commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator Author

@tianyu-l I fixed the umft error. The pyrefly failures are in unrelated files (./torchtitan/torchtitan/distributed/utils.py and ./torchtitan/torchtitan/models/common/token_dispatcher.py). Can we re-trigger CI?

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 15, 2026
@meta-cla

meta-cla Bot commented Jul 15, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@tianyu-l
tianyu-l merged commit ab46124 into pytorch:main Jul 18, 2026
14 of 17 checks passed
mreso added a commit to mreso/torchtitan that referenced this pull request Jul 20, 2026
Absorbs 4 upstream commits (mxfp8 MoE ep=1 pytorch#3935, deepseek mxfp8 debug config
pytorch#3934, model config in Trainer to_dict pytorch#3919, GPU-agnostic AutoParallel tests
pytorch#3805). No conflicts; pytorch#3935 touches common MoE but the HF backend imports and
MoE EP=2 training verified clean (12.35 -> 7.23).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants