Repository navigation
Refresh TorchAO nightly and source pins to dev20261118 - #25223
Conversation
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
🔗 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 FailureAs of commit eb06111 with merge base 2efa9d0 ( 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
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@mcremon-meta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D132976839. |
This PR needs a
|
rascani
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
#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.
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.
Summary:
Advance
TORCHAO_NIGHTLY_VERSIONandCU134_TORCHAO_NIGHTLY_VERSIONfrom0.19.0.dev20261103to0.19.0.dev20261118and alignthird-party/aowith the nightly's source commit,3f5febc5c6c0cd87e606c26fd41dade1a963d967. This includes pytorch/ao#5102, allowingprepare_pt2eto fold batch norms intoaten.convolutionafter decomposition to core ATen. The existingsetup.pydependency bound derives from these constants and advances automatically totorchao>=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