Skip to content

[CD] Remove remaining CUDA 12.6 and 13.0 from nightly binary builds - #203260

Closed
atalman wants to merge 1 commit into
pytorch:mainfrom
atalman:rm_cu126_cu130_nightly
Closed

atalman wants to merge 1 commit into
pytorch:mainfrom
atalman:rm_cu126_cu130_nightly

Conversation

@atalman

@atalman atalman commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

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:

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

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).
@atalman
atalman requested a review from a team as a code owner November 3, 2026 18:49
@pytorch-bot

pytorch-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

PR Status: in progress

A 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 @pytorchbot review to re-run the automated review. To bypass automated review, please add the “no automated review” label.

🟡 AUTOMATED REVIEW - Changes requested:

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.

Findings (6):

[major] .github/workflows/build-magma-linux.yml:57
`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.

[major] .github/workflows/build-magma-linux.yml:55
`.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.

[major] .github/scripts/generate_binary_build_matrix.py:456
`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`.

[major] .github/scripts/generate_binary_build_matrix.py:32
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.

(2 more not shown, see the review run)

Reviewed commit: 9984471

Review run

🔗 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 Failures

As of commit 9984471 with merge base c04a8e1 (image):
💚 Looks good so far! There are no failures yet. 💚

🟡 GREEN LIGHT - PR requires human review:

  • Release and publish plumbing
    • Deletes the manywheel-cuda-cu130-upload and manywheel-cuda-aarch64-cu130-upload jobs, which publish nightly wheels using R2 secrets
    • Edits .github/scripts/generate_binary_build_matrix.py and the generated nightly workflows, both excluded from the CI-config trivial class
  • User-facing expectation
    • Drops the cu130 nightly wheels and libtorch builds on x86 and aarch64, so users who install cu130 nightlies stop getting updates
    • Removing 12.6 and 13.0 from CUDA_ARCHES_FULL_VERSION also stops those docker release images being emitted
  • Socialization
    • The removed comment says 13.0 was kept for vLLM's cu130 lane (pytorch/test-infra#8989); a human should confirm that downstream no longer needs it
    • The removals look internally consistent: no remaining reference to CUDA_ARCHES_NO_WINDOWS under .github

reason: not_trivial
Reviewed commit: 9984471

Inference job

🐛 Report a wrong verdict

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

@pytorchgreenlight pytorchgreenlight Bot added the GL/human GreenLight marked as needing human review label Nov 3, 2026
@pytorchbot pytorchbot added the in progress PR is being worked on by the author, until the automated review accepts it label Nov 3, 2026

@github-actions github-actions Bot 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.

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

CUDA_ARCHES = ["13.2", "13.4"]

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" }

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.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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" }

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.

🔴 .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"]

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.

🔴 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 = {

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.

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

@atalman

atalman commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchmergebot merge -f "this is removal, lets merge"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 5, 2026
…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
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
…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
Gasoonjia added a commit to pytorch/executorch 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.
shuhuayu added a commit to pytorch/torchtitan that referenced this pull request Nov 24, 2026
## 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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/docker GL/human GreenLight marked as needing human review in progress PR is being worked on by the author, until the automated review accepts it Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants