Skip to content

[BE week] Disable CPU wheel builds in nightly CI - #2289

Merged
tianyu-l merged 2 commits into
pytorch:mainfrom
joecummings:fix-nightly-cpu
Jan 29, 2026
Merged

tianyu-l merged 2 commits into
pytorch:mainfrom
joecummings:fix-nightly-cpu

Conversation

@joecummings

@joecummings joecummings commented Jan 28, 2026 •

Copy link
Copy Markdown
Contributor

TorchTitan requires triton which isn't available on CPU-only builds. Since there's no use case for CPU-only torchtitan wheels, disable them rather than adding complexity to support CPU imports.

Testing: All green here: https://github.com/pytorch/torchtitan/actions/runs/21458236045?pr=2289 and on CI

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 28, 2026
TorchTitan requires triton which isn't available on CPU-only builds.
Since there's no use case for CPU-only torchtitan wheels, disable
them rather than adding complexity to support CPU imports.
@joecummings
joecummings marked this pull request as ready for review January 29, 2026 15:38
@wconstab

Copy link
Copy Markdown
Contributor

Were we actually testing some part of torchtitan on CPU previously and now we're only testing on gpu? Or what is the nuance?

@tianyu-l tianyu-l left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Change seems reasonable.

Failure in CI is about loss change on both cuda and rocm, but main branch only fails the cuda one (https://github.com/pytorch/torchtitan/actions/runs/21477806847/job/61866153133), not the rocm one. Could you help take a look? @fegin

@joecummings

Copy link
Copy Markdown
Contributor Author

Were we actually testing some part of torchtitan on CPU previously and now we're only testing on gpu? Or what is the nuance?

This exact workflow builds a nightly version of torchtitan without any accelerator support and publishes it to the PyTorch Index. Torchtitan doesn't actually have a use for a nightly build that does NOT include any accelerator support. However, the CPU build comes as default with the workflow. This wasn't a problem until a direct triton import was added. This caused the CPU nightly build smoketest to fail. Rather than gating the Trition import, it makes sense to just remove the CPU nightly build.

Note: This does not affect the "CPU Tests" in CI b/c those don't use the nightly CPU build.

@fegin fegin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think the failing tests are caused by this PR. We can land this.

@tianyu-l
tianyu-l merged commit cee9482 into pytorch:main Jan 29, 2026
@joecummings
joecummings deleted the fix-nightly-cpu branch January 29, 2026 21:27
TXacs pushed a commit to McmillanTAC/torchtitan that referenced this pull request Apr 13, 2026
TorchTitan requires triton which isn't available on CPU-only builds.
Since there's no use case for CPU-only torchtitan wheels, disable them
rather than adding complexity to support CPU imports.

Testing: All green here:
https://github.com/pytorch/torchtitan/actions/runs/21458236045?pr=2289
and on CI
ACharacterInASimulation pushed a commit to ACharacterInASimulation/torchtitan that referenced this pull request Apr 21, 2026
TorchTitan requires triton which isn't available on CPU-only builds.
Since there's no use case for CPU-only torchtitan wheels, disable them
rather than adding complexity to support CPU imports.

Testing: All green here:
https://github.com/pytorch/torchtitan/actions/runs/21458236045?pr=2289
and on CI
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.

4 participants