Skip to content

[CD] Remove CUDA 12.6 nightly binary builds - #196249

Closed
atalman wants to merge 2 commits into
pytorch:mainfrom
atalman:remove_cu126
Closed

atalman wants to merge 2 commits into
pytorch:mainfrom
atalman:remove_cu126

Conversation

@atalman
atalman requested a review from a team as a code owner September 8, 2026 00:43
@pytorch-bot

pytorch-bot Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/196249

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

⏳ No Failures, 74 Pending

As of commit 3f8cef0 with merge base 938afb1 (image):
💚 Looks good so far! There are no failures yet. 💚

GREEN LIGHT - PR approved to be merged without human review:

Mechanical CD deprecation: CUDA_ARCHES / CUDA_AARCH64_ARCHES /
PYTORCH_EXTRA_INSTALL_REQUIREMENTS drop 12.6 in
.github/scripts/generate_binary_build_matrix.py, the hardcoded arch list at line
454 was updated to match, and the cu126 build/test/upload jobs are removed from
the three generated nightly workflows consistently with what the generator now
emits. The remaining CUDA_ARCHES consumers stay valid: the
validate_nccl_dep_consistency/validate_cudnn_version_consistency loop (lines
581-583) only iterates 13.0/13.2/13.4, all of which still have
PYTORCH_EXTRA_INSTALL_REQUIREMENTS entries, and
CUDA_ARCHES_FULL_VERSION/CUDA_ARCHES_CUDNN_VERSION deliberately keep 12.6 for
generate_docker_release_matrix.py:26,37 so that matrix still resolves. A
tree-wide grep for cu126/cuda12_6/libtorch-cuda12_6 shows no dangling references
in the generated workflows (only unrelated flash-attention builds, the
ciflow/inductor-cu126 label, and almalinux images), torch/cuda/__init__.py:376
and .ci/manywheel/build_env_setup.py:72 are untouched so
validate_runtime_release_table_consistency and test/test_cuda_compatibility.py
still hold, and the user-facing wheel removal has a published deprecation notice
linked in the PR body.

reason: clean
Reviewed commit: 3f8cef0

Inference job

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

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Sep 8, 2026
@atalman
atalman requested review from tinglvv and removed request for a team September 8, 2026 00:43
@atalman atalman added the ciflow/binaries Trigger all binary build and upload jobs on the PR label Sep 8, 2026
@atalman

atalman commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchmergebot merge -f "lint is green and GREEN LIGHT - PR approved to be merged without human review"

@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

atalman added a commit to pytorch/test-infra that referenced this pull request Oct 2, 2026
## Purpose

The Windows AMI installs five CUDA toolkits — 12.6, 12.8, 13.0, 13.2,
13.4. PyTorch binary builds only use the last two:

```python
# .github/scripts/generate_binary_build_matrix.py (pytorch/pytorch)
CUDA_ARCHES = ["13.2", "13.4"]
CUDA_STABLE = "13.2"
```

12.6 was removed in
[pytorch/pytorch#196249](pytorch/pytorch#196249)
and 13.0 in
[pytorch/pytorch#198913](pytorch/pytorch#198913).
Nothing consumes 12.8 either. This drops the three unused ones.

## Changes

**`windows.pkr.hcl`** — removes the `CUDA_VERSION=12.6`, `12.8` and
`13.0` provisioner blocks. 13.2 and 13.4 are unchanged.

**`Install-CUDA-Tools.ps1`** — removes the matching switch branches, and
removes the defaults set before the switch:

```powershell
$cudnn_subfolder="cuda"
$cudnn_lib_folder="lib\x64"
$cudnn_subfolder="cudnn-windows-x86_64-9.10.2.21_cuda12-archive"
$toolkitInstaller = "cuda_12.6.3_561.17_windows.exe"
```

Those mattered. They name the **12.6 toolkit and a cuda12 cuDNN**, and
with the 12.x branches gone an unrecognised `CUDA_VERSION` would have
fallen through the switch and silently installed CUDA 12.6 against a
cuda12 cuDNN — a worse failure than the one being removed, because it
would produce a plausible-looking AMI. Both remaining versions set all
three values themselves, so the defaults are now gone and a `default`
branch errors out instead:

```powershell
  default {
    Write-Error "Unsupported CUDA_VERSION '$cudaVersion'. This AMI builds 13.2 and 13.4 only."
    exit 1
  }
```

## Side effect

Each toolkit is a multi-GB download plus install. Dropping three should
take a meaningful bite out of the ~50 minute build, which matters given
how close that build sits to the job limit — see #8983.

## Test plan

- `packer fmt -check .` — clean.
- `packer validate -syntax-only .` — "Syntax-only check passed.
Everything looks okay."
- Verified no remaining references to 12.6 / 12.8 / 13.0 under
`aws/ami/` outside the explanatory comment.
- Needs a `workflow_dispatch` run of **Build Windows AMI** to confirm
end to end. Worth landing #8983 first so a hang fails in ~95 minutes
with a message rather than being cancelled at 360.
pytorchmergebot pushed a commit that referenced this pull request Nov 3, 2026
…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 #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: #203260
Approved by: https://github.com/huydhn
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/binaries Trigger all binary build and upload jobs on the PR ciflow/docker Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants