Repository navigation
Conversation
Removes CUDA 12.6 and 13.0 from the nightly binary build matrix, the docker release matrix, and the builder image workflows. 12.6 was dropped from CUDA_ARCHES in pytorch#196249, but its entries stayed in CUDA_ARCHES_FULL_VERSION and CUDA_ARCHES_CUDNN_VERSION. Because generate_docker_release_matrix.py iterates CUDA_ARCHES_FULL_VERSION, the docker release workflow kept emitting 12.6.3 images. 13.0 was held on nightly for vLLM's cu130 lane (pytorch/test-infra#8989) and is no longer needed. Review order: generate_binary_build_matrix.py first; the two generated-*-nightly.yml diffs are the output of generate_ci_workflows.py and only delete the cu130 jobs; then build-manywheel-images.yml, build-almalinux-images.yml, build-magma-linux.yml and .ci/magma/Makefile. Not changed: .ci/docker (editing it would force a CI image rebuild) and the flash-attention wheel workflows, which still reference cuda12.6/cuda13.0. Test Plan: ``` python3 .github/scripts/generate_docker_release_matrix.py python3 .github/scripts/generate_ci_workflows.py ``` The docker matrix now emits only 13.2, 13.4 and cpu; regenerating workflows produces only the committed diff. lintrunner (RUFF, PYFMT, NEWLINE, SPACES, TABS, GHA, WORKFLOWSYNC) passes; ACTIONLINT could not run (binary missing). Agent details: authored with an AI assistant (Claude Code).
PR Status: in progressA maintainer requested changes. Please address their feedback before the PR returns to maintainer review. To become ready for review, the change must pass automated review and every maintainer comment must be addressed, either with a code change or a reply explaining why no change is needed. A fresh automated review checks that the feedback has been addressed. All CI must finish and Dr. CI must classify every failure as unrelated to your PR. Fix the failures it attributes to your PR (see status below in this comment). Workflows waiting for a maintainer to approve their run do not block this. To minimize iteration time, feel free to run the pr-review skill from the repo locally. If you address comments without pushing, comment 🟡 AUTOMATED REVIEW - Changes requested:
Findings (6): Reviewed commit: 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/203260
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 9984471 with merge base c04a8e1 ( 🟡 GREEN LIGHT - PR requires human review:
reason: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Automated review of 9984471: changes requested before human review.
The PR drops CUDA 12.6 and 13.0 from the nightly wheel and libtorch matrices, the docker release matrix, the builder-image workflows and the Linux magma builds. Recommendation: Request Changes. The blocker is removing magma-cuda126 while three CI images in use still depend on it; the review also expects the Windows magma 130 leftover, the hardcoded version list and a missing subset assertion to be fixed before merge.
🔴 4 blocking findings are attached to the code below.
⚪ 2 non-blocking findings
torch/cuda/__init__.py:389-406 (PYTORCH_RELEASES_CODE_CC) and .ci/wheel/linux/build_env_setup.py:76-93 (TORCH_CUDA_ARCH_LIST_TABLE) still have "12.6" and "13.0" rows, although the PR is titled as removing the "remaining" 12.6/13.0. On x86_64, a GPU with CC 5.0/5.2/6.0/6.1/7.0 (e.g. V100 or Pascal) on a 13.x wheel matches only the 12.6 row, so _warn_unsupported_code (:459-471) tells the user to pip install ... --index-url .../whl/nightly/cu126, an index that no longer gets builds. The 13.0 rows have the same CC sets as 13.2, so they are dead data. validate_runtime_release_table_consistency (:272-286) only compares the two tables with each other, so nothing flags the stale rows. Remove both rows from both tables; test/test_cuda_compatibility.py:140-147 patches the table, so tests don't depend on them.
Stale comment in .github/templates/linux_binary_build_workflow.yml.j2:277: it says "cu126/cu130/cu132 each get a distinct job"; update it to the current versions.
Please address the findings and push; a new commit normally gets a fresh automated review.
This review is AI-generated and advisory. Each new automated review replaces the previous one.
| - { cuda_version: "132", desired_cuda: "13.2" } | ||
| - { cuda_version: "130", desired_cuda: "13.0" } | ||
| - { cuda_version: "129", desired_cuda: "12.9" } | ||
| - { cuda_version: "128", desired_cuda: "12.8" } |
There was a problem hiding this comment.
🔴 magma-cuda126 is removed (here and in .ci/magma/Makefile), but three CI images still install that tarball: pytorch-linux-jammy-cuda12.6-cudnn9-py3.11-gcc11 (.ci/docker/build.sh:96-97, used by the trunk.yml:117-133 build-only job), the halide image (build.sh:251-252) and the triton-cpu image (build.sh:271-272); the last two are used in inductor-unittest.yml:81,113. All go through .ci/docker/ubuntu/Dockerfile:74-79 install_magma.sh 12.6, which downloads magma-cuda126-${MAGMA_VERSION}-1.tar.bz2. Nothing breaks while the old tarball is in S3, but bumping MAGMA_VERSION or changing magma patches will 404 those image builds, and the 12.6 CI images stop picking up .ci/magma changes. The keep rule is also inconsistent: unused magma-cuda129 stays while the in-use 126 is dropped. Fix: keep magma-cuda126 and this entry until the 12.6 CI images are retired (and then also keep cuda12.6 in build-almalinux-images.yml, since the magma job runs in almalinux-builder:cuda12.6-main), or remove the 12.6 CI images in the same change. Consider dropping magma-cuda129 either way.
There was a problem hiding this comment.
this is ok magma rebuild won't be needed for 12.6
| @@ -53,10 +53,8 @@ jobs: | |||
| include: | |||
| - { cuda_version: "134", desired_cuda: "13.4" } | |||
| - { cuda_version: "132", desired_cuda: "13.2" } | |||
There was a problem hiding this comment.
🔴 .github/workflows/build-magma-windows.yml:31 still builds magma for "130", and .github/scripts/windows/build_magma.bat:44 still has its 130 branch. Windows never had cu130 nightlies (the deleted CUDA_ARCHES_NO_WINDOWS comment said "nothing consumes a Windows cu130 nightly") and no Windows CI job uses 13.0 (Windows trunk is cuda13.2, trunk.yml:370-378). This is orphaned work (Release and Debug builds plus an S3 upload) and contradicts the description's "removes ... from the builder image workflows". Remove it in this PR.
|
|
||
| if ( | ||
| arch_version in ["13.4", "13.2", "13.0"] | ||
| arch_version in ["13.4", "13.2"] |
There was a problem hiding this comment.
🔴 arch_version in \["13.4", "13.2"\] now duplicates CUDA_ARCHES exactly. If a version is added to CUDA_ARCHES and PYTORCH_EXTRA_INSTALL_REQUIREMENTS but not to this list, it falls into the else branch (:492-524), which quietly emits Linux and Windows CUDA wheels with pytorch_extra_install_requirements: "", i.e. no cuda-toolkit, cudnn or nccl deps. The import-time validators don't catch this. Since the line is already being edited, use arch_version in CUDA_ARCHES.
| # Only consumed by generate_docker_release_matrix.py, whose Dockerfile installs | ||
| # an already-published torch nightly. A CUDA version belongs here only once its | ||
| # wheels are on the download.pytorch.org index. | ||
| CUDA_ARCHES_FULL_VERSION = { |
There was a problem hiding this comment.
🔴 No check that CUDA_ARCHES_FULL_VERSION CUDA_ARCHES. That is the drift the description says kept 12.6.3 docker images alive after # 196249. generate_docker_release_matrix.py:26 iterates CUDA_ARCHES_FULL_VERSION directly, while the import-time validators (:590-595) only loop over CUDA_ARCHES. Add a one-way assertion there: per the comment at :29-31, an entry is added only once its wheels are published, so subset (not equality) is the right check. Without it, the next removal can repeat the bug this PR fixes.
|
@pytorchmergebot merge -f "this is removal, lets merge" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…ytorch#203260) Removes CUDA 12.6 and 13.0 from the nightly binary build matrix, the docker release matrix, and the builder image workflows. 12.6 was dropped from CUDA_ARCHES in pytorch#196249, but its entries stayed in CUDA_ARCHES_FULL_VERSION and CUDA_ARCHES_CUDNN_VERSION. Because generate_docker_release_matrix.py iterates CUDA_ARCHES_FULL_VERSION, the docker release workflow kept emitting 12.6.3 images. 13.0 was held on nightly for vLLM's cu130 lane (pytorch/test-infra#8989) and is no longer needed. Review order: generate_binary_build_matrix.py first; the two generated-*-nightly.yml diffs are the output of generate_ci_workflows.py and only delete the cu130 jobs; then build-manywheel-images.yml, build-almalinux-images.yml, build-magma-linux.yml and .ci/magma/Makefile. Not changed: .ci/docker (editing it would force a CI image rebuild) and the flash-attention wheel workflows, which still reference cuda12.6/cuda13.0. Test Plan: ``` python3 .github/scripts/generate_docker_release_matrix.py python3 .github/scripts/generate_ci_workflows.py ``` The docker matrix now emits only 13.2, 13.4 and cpu; regenerating workflows produces only the committed diff. lintrunner (RUFF, PYFMT, NEWLINE, SPACES, TABS, GHA, WORKFLOWSYNC) passes; ACTIONLINT could not run (binary missing). Agent details: authored with an AI assistant (Claude Code). Pull Request resolved: pytorch#203260 Approved by: https://github.com/huydhn
…ytorch#203260) Removes CUDA 12.6 and 13.0 from the nightly binary build matrix, the docker release matrix, and the builder image workflows. 12.6 was dropped from CUDA_ARCHES in pytorch#196249, but its entries stayed in CUDA_ARCHES_FULL_VERSION and CUDA_ARCHES_CUDNN_VERSION. Because generate_docker_release_matrix.py iterates CUDA_ARCHES_FULL_VERSION, the docker release workflow kept emitting 12.6.3 images. 13.0 was held on nightly for vLLM's cu130 lane (pytorch/test-infra#8989) and is no longer needed. Review order: generate_binary_build_matrix.py first; the two generated-*-nightly.yml diffs are the output of generate_ci_workflows.py and only delete the cu130 jobs; then build-manywheel-images.yml, build-almalinux-images.yml, build-magma-linux.yml and .ci/magma/Makefile. Not changed: .ci/docker (editing it would force a CI image rebuild) and the flash-attention wheel workflows, which still reference cuda12.6/cuda13.0. Test Plan: ``` python3 .github/scripts/generate_docker_release_matrix.py python3 .github/scripts/generate_ci_workflows.py ``` The docker matrix now emits only 13.2, 13.4 and cpu; regenerating workflows produces only the committed diff. lintrunner (RUFF, PYFMT, NEWLINE, SPACES, TABS, GHA, WORKFLOWSYNC) passes; ACTIONLINT could not run (binary missing). Agent details: authored with an AI assistant (Claude Code). Pull Request resolved: pytorch#203260 Approved by: https://github.com/huydhn
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 (human-written) udpate b200 ci to cu132. ## Why The B200 workflows install the latest PyTorch nightly without a pin, from the `cu130` index. PyTorch stopped publishing cu130 nightlies on 2026-11-03 (pytorch/pytorch#203260). The newest wheel on that index is `torch==2.16.0.dev20261102+cu130`, so every B200 run since then has tested a three-week-old PyTorch: | Index | Newest torch nightly (checked 2026-11-23) | | --- | --- | | `nightly/cu130` (B200 today) | `2.16.0.dev20261102` | | `nightly/cu132` (other CUDA lanes) | `2.16.0.dev20261123` | **Example.** pytorch/pytorch#205562, the fix for the cuDNN varlen backward wrong-dQ bug (pytorch/pytorch#205493), landed on 2026-11-19. It never reaches B200 CI, and `kimi_k3_dist_moe_fsdp_ep_cp` in #5684 keeps crashing with `cuDNN SDPA ... illegal memory access`. The other CUDA lanes moved to cu132 in #4661. The two B200 workflows were not updated. ## What changed - `integration_test_b200.yaml` and `integration_test_b200_graph_trainer.yaml` install torch, torchvision and torchao from `nightly/cu132` instead of `nightly/cu130`. - The container image stays `nvidia/cuda:13.0.3-cudnn-devel-ubuntu22.04`. The torch wheels ship their own CUDA runtime and cuDNN as `nvidia-*` pip packages. - The torchao pin (`0.19.0.dev20261103`) is published on cu132, so `.github/requirements-torchao.txt` is unchanged. ## Testing The B200 and B200 graph-trainer workflows run on this PR through the `ciflow/b200` label. The run log should show `torch==2.16.0.dev2026112x+cu132`.
Removes CUDA 12.6 and 13.0 from the nightly binary build matrix, the docker release matrix, and the builder image workflows.
12.6 was dropped from CUDA_ARCHES in #196249, but its entries stayed in CUDA_ARCHES_FULL_VERSION and CUDA_ARCHES_CUDNN_VERSION. Because generate_docker_release_matrix.py iterates CUDA_ARCHES_FULL_VERSION, the docker release workflow kept emitting 12.6.3 images. 13.0 was held on nightly for vLLM's cu130 lane (pytorch/test-infra#8989) and is no longer needed.
Review order: generate_binary_build_matrix.py first; the two generated-*-nightly.yml diffs are the output of generate_ci_workflows.py and only delete the cu130 jobs; then build-manywheel-images.yml, build-almalinux-images.yml, build-magma-linux.yml and .ci/magma/Makefile.
Not changed: .ci/docker (editing it would force a CI image rebuild) and the flash-attention wheel workflows, which still reference cuda12.6/cuda13.0.
Test Plan:
The docker matrix now emits only 13.2, 13.4 and cpu; regenerating workflows produces only the committed diff. lintrunner (RUFF, PYFMT, NEWLINE, SPACES, TABS, GHA, WORKFLOWSYNC) passes; ACTIONLINT could not run (binary missing).
Agent details: authored with an AI assistant (Claude Code).