Skip to content

Pin CUDA 13.0 TorchAO nightly to dev20261103 - #25249

Merged
Gasoonjia merged 1 commit into
mainfrom
gasoonjia/fix-cu130-torchao-pin
Nov 18, 2026
Merged

Gasoonjia merged 1 commit into
mainfrom
gasoonjia/fix-cu130-torchao-pin

Conversation

@Gasoonjia

Copy link
Copy Markdown
Contributor

#25223 (164233d) advanced TORCHAO_NIGHTLY_VERSION to 0.19.0.dev20261118, but the newest TorchAO nightly on the cu130 channel is 0.19.0.dev20261103. Every CUDA 13.0 job has failed to install since then:

ERROR: No matching distribution found for torchao==0.19.0.dev20261118

(CUDA 13.4 jobs, e.g. test-executorch-cuda-build-13.4, still pass.)

This adds CU130_TORCHAO_NIGHTLY_VERSION = "0.19.0.dev20261103" and returns it from get_torchao_version for the /cu130 URL, unless torchao is built from source. setup.py gets the torchao bound from get_torchao_version, so the wheel metadata changes with it. CPU, CUDA 13.2 and CUDA 13.4 stay on dev20261118. update_pytorch_pin.py already matches CU\d+_TORCHAO_NIGHTLY_VERSION, so later pin bumps update the new constant too.

Note: CUDA 13.0 won't get pytorch/ao#5102 (batch norm folding into aten.convolution) until the cu130 channel publishes again.

Test plan

python -m pytest .ci/scripts/tests/test_cu134_dependencies.py .ci/scripts/tests/test_cuda_workflow.py passed (23 tests). Both tests now cover CUDA 13.0 explicitly. CUDA CI on this PR is the real check.

#25223 advanced TORCHAO_NIGHTLY_VERSION to 0.19.0.dev20261118, but the cu130
channel's newest TorchAO nightly is 0.19.0.dev20261103, so every CUDA 13.0 job
fails to install torchao. Pin CUDA 13.0 to the newest nightly it has; CPU,
CUDA 13.2 and CUDA 13.4 keep dev20261118.
@pytorch-bot

pytorch-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25249

Note: Links to docs will display an error until the docs builds have been completed.

❌ 288 Pending, 1 Unclassified Failure

As of commit 40d6232 with merge base 34116de (image):

UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:

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

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 18, 2026
@mcremon-meta

Copy link
Copy Markdown
Contributor

thanks for the quick fix! And sorry :)

@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@Gasoonjia
Gasoonjia merged commit 15bd869 into main Nov 18, 2026
@Gasoonjia
Gasoonjia deleted the gasoonjia/fix-cu130-torchao-pin branch November 18, 2026 22:27
@pytorch-bot
pytorch-bot Bot temporarily deployed to upload-benchmark-results November 18, 2026 23:47 Inactive
Gasoonjia added a commit that referenced this pull request Nov 19, 2026
Follow-up to #25249.

## Why
PyTorch dropped CUDA 13.0 from its nightly builds in
pytorch/pytorch#203260 (2026-11-03). PyTorch main's own binary build
matrix (`generate_binary_build_matrix.py`) is now `CUDA_ARCHES =
["13.2", "13.4", "13.5"]` with `CUDA_STABLE = "13.2"`. The `cu130`
channel's last torch nightly is `dev20261102` and its last TorchAO
nightly is `0.19.0.dev20261103`. That's why the TorchAO bump in #25223
broke every CUDA 13.0 job.

After this PR ExecuTorch supports CUDA 13.2 and 13.4 only. This PR does
not add 13.5: the cu135 channel has no torch 2.14/2.15 release wheels,
only torch 2.16 nightlies, so 13.5 waits for the torch 2.16 bump.

## Changes
- **CUDA 13.0 removed:** `SUPPORTED_CUDA_VERSIONS` is `(13,2), (13,4)`.
The 11 fixed 13.0 jobs in `cuda.yml` and the `cuda-windows.yml` export
now run on 13.2. The build matrix is `["13.2", "13.4"]`. The Windows
cross-compile image installs 13.2.2 (and the stale 12.8/12.9 entries are
gone). `cu130` is removed from `cuda_arch_list.sh`,
`install_cuda_redist.py`, `filter_cuda_matrix.py` comments and the CUDA
docs.
- **One TorchAO pin:** removed `CU130_TORCHAO_NIGHTLY_VERSION` /
`CU134_TORCHAO_NIGHTLY_VERSION` and the cu134 special case in
`setup.py`. Every train now uses `TORCHAO_NIGHTLY_VERSION`.

## Not in this PR: torch 2.15
An earlier version of this PR also moved every train to torch 2.15.0,
which would have dropped the cu134 torch nightly pin. CI showed that
needs separate work, so it moves to a follow-up:
- torch 2.15 requires `triton~=3.9`. `flash-linear-attention` before
0.6.0 doesn't import under triton 3.9 (`autotune key contains names that
are not kernel arguments`). I reproduced this locally for 0.4.2 and
0.5.0–0.5.2. 0.6.0 changes the kernel signatures that
`backends/cuda/triton/kernels/chunk_gated_delta_rule.py` calls.
- The torch 2.15 AOTI wrapper calls `aoti_torch_dtype_element_size`,
which `backends/cuda/runtime/aoti_cuda_shims.lib` doesn't export, so the
Windows export fails to link.

So `CU134_TORCH_PACKAGES` stays for now: `test/cu134` has no torch
2.14.0.

## Test plan
- `pytest .ci/scripts/tests/test_cu134_dependencies.py
.ci/scripts/tests/test_cuda_workflow.py
.ci/scripts/tests/test_filter_cuda_matrix.py`: 51 passed. This adds a
test that a 13.0 toolkit is rejected and one that no `cuda.yml` job uses
13.0.
- `bash examples/espressif/test_version_stamp.sh`: no FAILs. It failed
on the earlier version of this PR.
- CI on this PR.

This branch was previously deployed

2 inactive deployments
upload-benchmark-results — 40d6232d Deployed Nov 18, 2026 by pytorch-bot[bot]
cadence — 40d6232d Deployed Nov 18, 2026 by Gasoonjia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/cuda CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants