Skip to content

Refresh TorchAO nightly and source pins to dev20261118 - #25223

Merged
meta-codesync[bot] merged 1 commit into
mainfrom
export-D132976839
Nov 18, 2026
Merged

meta-codesync[bot] merged 1 commit into
mainfrom
export-D132976839

Conversation

@mcremon-meta

Copy link
Copy Markdown
Contributor

Summary:
Advance TORCHAO_NIGHTLY_VERSION and CU134_TORCHAO_NIGHTLY_VERSION from 0.19.0.dev20261103 to 0.19.0.dev20261118 and align third-party/ao with the nightly's source commit, 3f5febc5c6c0cd87e606c26fd41dade1a963d967. This includes pytorch/ao#5102, allowing prepare_pt2e to fold batch norms into aten.convolution after decomposition to core ATen. The existing setup.py dependency bound derives from these constants and advances automatically to torchao>=0.19.0.dev20261118,<0.20.

The selected nightly is published for CPU, CUDA 13.2 and CUDA 13.4. CUDA 13.0's newest published nightly remains 0.19.0.dev20261103, so fresh CUDA 13.0 installs cannot resolve this new pin from that channel. This limitation needs resolution before landing.

This change was authored with Claude Code.

Differential Revision: D132976839

Summary:
Advance `TORCHAO_NIGHTLY_VERSION` and `CU134_TORCHAO_NIGHTLY_VERSION` from `0.19.0.dev20261103` to `0.19.0.dev20261118` and align `third-party/ao` with the nightly's source commit, `3f5febc5c6c0cd87e606c26fd41dade1a963d967`. This includes pytorch/ao#5102, allowing `prepare_pt2e` to fold batch norms into `aten.convolution` after decomposition to core ATen. The existing `setup.py` dependency bound derives from these constants and advances automatically to `torchao>=0.19.0.dev20261118,<0.20`.

The selected nightly is published for CPU, CUDA 13.2 and CUDA 13.4. CUDA 13.0's newest published nightly remains `0.19.0.dev20261103`, so fresh CUDA 13.0 installs cannot resolve this new pin from that channel. This limitation needs resolution before landing.

This change was authored with Claude Code.

Differential Revision: D132976839
@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/25223

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

❌ 4 New Failures, 1 Pending, 1 Unrelated Failure

As of commit eb06111 with merge base 2efa9d0 (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

  • Test Native Engines / native-cpu (gh) (trunk failure)
    /__w/executorch/executorch/backends/cpu/runtime/providers/xnnpack/XNNPACKProvider.cpp:1520:4: error: too many initializers for ‘std::__array_traits<executorch::backends::cpu::{anonymous}::XNNOp, 18>::_Type’ {aka ‘executorch::backends::cpu::{anonymous}::XNNOp [18]’}

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
@meta-codesync

meta-codesync Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@mcremon-meta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D132976839.

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

@rascani rascani 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.

Review automatically exported from Phabricator review in Meta.

@meta-codesync
meta-codesync Bot merged commit 164233d into main Nov 18, 2026
@meta-codesync
meta-codesync Bot deleted the export-D132976839 branch November 18, 2026 21:30
Gasoonjia added a commit that referenced this pull request Nov 18, 2026
#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.
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

1 inactive deployment
cadence — eb061113 Deployed Nov 18, 2026 by mcremon-meta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants