Repository navigation
Pin CUDA 13.0 TorchAO nightly to dev20261103 - #25249
Conversation
#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.
🔗 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 FailureAs of commit 40d6232 with merge base 34116de ( 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. |
|
thanks for the quick fix! And sorry :) |
This PR needs a
|
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.
#25223 (164233d) advanced
TORCHAO_NIGHTLY_VERSIONto0.19.0.dev20261118, but the newest TorchAO nightly on thecu130channel is0.19.0.dev20261103. Every CUDA 13.0 job has failed to install since then:(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 fromget_torchao_versionfor the/cu130URL, unless torchao is built from source.setup.pygets the torchao bound fromget_torchao_version, so the wheel metadata changes with it. CPU, CUDA 13.2 and CUDA 13.4 stay ondev20261118.update_pytorch_pin.pyalready matchesCU\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.pypassed (23 tests). Both tests now cover CUDA 13.0 explicitly. CUDA CI on this PR is the real check.