Skip to content

[CD] Remove CUDA 13.0 from the binary build matrix - #198913

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

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

Conversation

@atalman

@atalman atalman commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Related: https://dev-discuss.pytorch.org/t/removing-cuda-13-0-builds-from-pytorch-ci-cd-starting-the-week-of-sept-28/3447

Drops 13.0 from CUDA_ARCHES, CUDA_ARCHES_FULL_VERSION, CUDA_ARCHES_CUDNN_VERSION, CUDA_AARCH64_ARCHES, the PYTORCH_EXTRA_INSTALL_REQUIREMENTS block, and the wheel-requirements arch guard, then regenerates the nightly workflows.

CUDA_STABLE moves 13.0 -> 13.2. It has to: it names the arch used for the default/stable wheel, and leaving it on a version no longer in CUDA_ARCHES would select a build that is no longer produced.

Authored with an AI assistant.

Co-Authored-By: Claude

Drops 13.0 from `CUDA_ARCHES`, `CUDA_ARCHES_FULL_VERSION`,
`CUDA_ARCHES_CUDNN_VERSION`, `CUDA_AARCH64_ARCHES`, the
`PYTORCH_EXTRA_INSTALL_REQUIREMENTS` block, and the wheel-requirements
arch guard, then regenerates the nightly workflows.

`CUDA_STABLE` moves 13.0 -> 13.2. It has to: it names the arch used for
the default/stable wheel, and leaving it on a version no longer in
`CUDA_ARCHES` would select a build that is no longer produced.

One consequence worth calling out: the macOS arm64 CPU wheel takes its
`PYTORCH_EXTRA_INSTALL_REQUIREMENTS` from `CUDA_STABLE`, so its declared
cuda-toolkit pin moves 13.0.3 -> 13.2.2. That is the only change outside
the Linux and Windows CUDA matrices.

The remaining `13.0` strings in the script are `cuda-bindings>=13.0.3,<14`
floors, which are deliberately unchanged.

Regenerated: no `cu130` remains in any generated workflow.
@atalman
atalman requested a review from a team as a code owner September 28, 2026 18:53
@pytorch-bot

pytorch-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ 128 Pending, 1 Unrelated Failure

As of commit c11d9ea with merge base f3827ae (image):

NEW FAILURES SUPPRESSED BY AI (non-blocking) - The following job failed, but the AI CI Advisor judged the failure not to be evidence against this change:

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 28, 2026
@atalman atalman added the ciflow/binaries Trigger all binary build and upload jobs on the PR label Sep 28, 2026
@atalman

atalman commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchmergebot merge -f "lint is green, 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

atalman added a commit to atalman/vllm that referenced this pull request Oct 1, 2026
CUDA 13.0 left PyTorch binary build matrix on 2026-09-28
(pytorch/pytorch#198913), so the cu130 nightly index has published nothing
since 2.15.0.dev20260928 and this lane has been testing a frozen torch.
atalman added a commit to atalman/vllm that referenced this pull request Oct 1, 2026
CUDA 13.0 left PyTorch binary build matrix on 2026-09-28
(pytorch/pytorch#198913), so the cu130 nightly index has published nothing
since 2.15.0.dev20260928 and this lane has been testing a frozen torch.
atalman added a commit to atalman/vllm that referenced this pull request Oct 1, 2026
CUDA 13.0 left PyTorch binary build matrix on 2026-09-28
(pytorch/pytorch#198913), so the cu130 nightly index has published nothing
since 2.15.0.dev20260928 and this lane has been testing a frozen torch.
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.
atalman added a commit to pytorch/test-infra that referenced this pull request Oct 2, 2026
vLLM's torch-nightly lane pins the cu130 index, and cu130 nightlies stopped
publishing after 2.15.0.dev20260928 when 13.0 left the binary build matrix in
pytorch/pytorch#198913. That lane has been re-testing a frozen wheel since.

Adds 13.0 back to the nightly channel only. test and release are unchanged and
CUDA_STABLE stays 13.2 -- this is a temporary hold for one consumer, not a
revival of 13.0 as a shipping arch.

Linux x86_64 and aarch64 only, matching the build side. Nothing consumes a
Windows cu130 nightly. That required making the Windows exclusion per-channel:
CUDA_ARCHES_NO_WINDOWS was a single global list, but 13.0 is still in the
release channel where Windows wheels do exist and must keep being validated, so
excluding it globally would have silently dropped release Windows cu130
validation.

13.0 also goes into CUDA_ARCHES_NO_GETTING_STARTED so it does not reappear in
the pytorch.org install selector -- built and validated, but not advertised.

CUDA_CUDNN_VERSIONS already carried 13.0, so no other data needed restoring.
Reference assets regenerated with --update-reference-files.
atalman added a commit to pytorch/test-infra that referenced this pull request Oct 2, 2026
vLLM's torch-nightly lane pins the cu130 index, and cu130 nightlies stopped
publishing after 2.15.0.dev20260928 when 13.0 left the binary build matrix in
pytorch/pytorch#198913. That lane has been re-testing a frozen wheel since.

Adds 13.0 back to the nightly channel only, Linux x86_64 and aarch64. test and
release are unchanged and STABLE_CUDA_VERSIONS stays 13.2 -- a temporary hold
for one consumer, not a revival of 13.0 as a shipping arch.

Keeping it off Windows meant making the Windows exclusion per-channel.
CUDA_ARCHES_NO_WINDOWS was a single global list, but 13.0 is still in the
release channel where Windows wheels exist and must keep being validated, so a
global exclusion would have silently dropped release Windows cu130 validation.

That split also corrects a pre-existing understatement. The global list carried
13.4, but whl/nightly/cu134 does publish win_amd64 wheels (176 of them) and
pytorch/pytorch generates Windows cu134 nightly jobs, so Windows 13.4 was being
excluded from the nightly matrix despite being built. whl/test/cu134 genuinely
has none, so the exclusion stays on test.

  nightly  13.0 excluded, 13.4 allowed
  test     13.4 excluded
  release  13.4 excluded (not in the channel anyway)

test_getting_started_windows_has_no_cuda_13_4 is renamed and made channel-aware
to match, and a test is added pinning 13.0 off Windows.

13.0 also goes into CUDA_ARCHES_NO_GETTING_STARTED so it does not reappear in
the pytorch.org install selector. CUDA_CUDNN_VERSIONS already carried 13.0.
Reference assets regenerated with --update-reference-files.
atalman added a commit to pytorch/test-infra that referenced this pull request Oct 2, 2026
vLLM's torch-nightly lane pins the cu130 index, and cu130 nightlies stopped
publishing after 2.15.0.dev20260928 when 13.0 left the binary build matrix in
pytorch/pytorch#198913. That lane has been re-testing a frozen wheel since.

Adds 13.0 back to the nightly channel only, Linux x86_64 and aarch64. test and
release are unchanged and STABLE_CUDA_VERSIONS stays 13.2 -- a temporary hold
for one consumer, not a revival of 13.0 as a shipping arch.

Keeping it off Windows meant making the Windows exclusion per-channel.
CUDA_ARCHES_NO_WINDOWS was a single global list, but 13.0 is still in the
release channel where Windows wheels exist and must keep being validated, so a
global exclusion would have silently dropped release Windows cu130 validation.

That split also corrects a pre-existing understatement. The global list carried
13.4, but whl/nightly/cu134 does publish win_amd64 wheels (176 of them) and
pytorch/pytorch generates Windows cu134 nightly jobs, so Windows 13.4 was being
excluded from the nightly matrix despite being built. whl/test/cu134 genuinely
has none, so the exclusion stays on test.

  nightly  13.0 excluded, 13.4 allowed
  test     13.4 excluded
  release  13.4 excluded (not in the channel anyway)

test_getting_started_windows_has_no_cuda_13_4 is renamed and made channel-aware
to match, and a test is added pinning 13.0 off Windows.

13.0 also goes into CUDA_ARCHES_NO_GETTING_STARTED so it does not reappear in
the pytorch.org install selector. CUDA_CUDNN_VERSIONS already carried 13.0.
Reference assets regenerated with --update-reference-files.
atalman added a commit to pytorch/test-infra that referenced this pull request Oct 2, 2026
## Purpose

vLLM's torch-nightly lane pins the `cu130` index. CUDA 13.0 left the
binary build matrix in
[pytorch/pytorch#198913](pytorch/pytorch#198913),
so the cu130 nightly index has published nothing since
**2.15.0.dev20260928** and that lane has been re-testing a frozen wheel
for days:

```
whl/nightly/cu130/torch/   last: 2.15.0.dev20260928
whl/nightly/cu132/torch/   dev20260929, dev20260930, dev20261001, ...
```

This is the validation-matrix half. The build half is the companion
pytorch/pytorch PR.

## Changes

**`CUDA_ARCHES_DICT["nightly"]`** gains `13.0`. `test` and `release` are
untouched, and `STABLE_CUDA_VERSIONS` is unchanged — this is a temporary
hold for one consumer, not a revival of 13.0 as a shipping arch.

**Linux x86_64 and aarch64 only.** Nothing consumes a Windows cu130
nightly.

That last point required a real change rather than a list entry.
`CUDA_ARCHES_NO_WINDOWS` was a single global list, but 13.0 is still in
the **release** channel, where Windows cu130 wheels do exist and must
keep being validated. Excluding 13.0 globally would have silently
dropped release Windows cu130 from validation. So the exclusion is now
per channel:

```python
CUDA_ARCHES_NO_WINDOWS_DICT = {
    "nightly": ["13.0"],
    "test": ["13.4"],
    "release": ["13.4"],
}
```

### That split also fixes a pre-existing understatement

The old global list carried `13.4`, which excluded Windows cu134 from
**every** channel. But Windows cu134 nightlies do exist, and
pytorch/pytorch generates Windows cu134 nightly jobs:

| index | `win_amd64` wheels | linux wheels |
| --- | ---: | ---: |
| `whl/nightly/cu134` | **176** | 1680 |
| `whl/test/cu134` | **0** | 64 |

So Windows 13.4 was being left out of the nightly matrix despite being
built, while the test channel genuinely has none. Per channel now:

| channel | excluded from Windows |
| --- | --- |
| nightly | `13.0` |
| test | `13.4` |
| release | `13.4` (not in the channel anyway) |

`test_getting_started_windows_has_no_cuda_13_4` is renamed to
`test_getting_started_windows_cuda_13_4_nightly_only` and made
channel-aware, and `test_windows_has_no_cuda_13_0` is added.

**`CUDA_ARCHES_NO_GETTING_STARTED` gains `13.0`** so it does not
reappear in the pytorch.org install selector. That list exists for
exactly this case — built and validated, but not advertised. Without it,
`update-quick-start-module` would publish a cu130 nightly option to
users.

`CUDA_CUDNN_VERSIONS` already carried `13.0` (it is still in the release
channel), so no other data needed restoring.

## Test plan

```
PYTHONPATH=. python -m pytest tools/tests/test_generate_binary_build_matrix.py -q
29 passed, 4 subtests passed
```

Reference assets regenerated with `--update-reference-files`. Verified
the resulting matrices:

| | `desired_cuda` |
| --- | --- |
| linux wheel | `cpu`, `cu130`, `cu132`, `cu134`, `rocm7.14`, `rocm10.0`
|
| windows wheel | `cpu`, `cu132`, `cu134`, `xpu` — no `cu130` |

`test_getting_started_offers_nightly_cuda_13_2_and_13_4` passes
unchanged, confirming 13.0 stays out of the install selector.

## Revert

When vLLM's nightly lane moves off cu130
([vllm-project/vllm#59691](vllm-project/vllm#59691)
does this), this and the pytorch/pytorch side should both be reverted.
pytorchmergebot pushed a commit that referenced this pull request Oct 2, 2026
Restores the Linux-only (x86_64 + aarch64) CUDA 13.0 build matrix removed in #198913. Generated workflows regenerated via .github/regenerate.sh.

vLLM's torch-nightly lane pins the cu130 index; cu130 nightlies stopped publishing after 2.15.0.dev20260928, so that lane has been re-testing a frozen wheel. This is a temporary hold for that consumer.

CUDA_STABLE stays 13.2 -- only the matrix entry returns, not the stable designation. Windows is excluded via a new CUDA_ARCHES_NO_WINDOWS: nothing consumes a Windows cu130 nightly, and pytorch/test-infra's validation matrix excludes it too.

The cuda13.0 builder images were never removed from build-manywheel-images.yml or build-almalinux-images.yml, so unlike #186015 no docker changes are needed.

Pairs with pytorch/test-infra#8989, which restores the validation half.

Made with AI, Claude
Pull Request resolved: #199520
Approved by: https://github.com/huydhn, https://github.com/ngimel, https://github.com/laithsakka
cyyever pushed a commit to BakeLab/pytorch that referenced this pull request Oct 11, 2026
Restores the Linux-only (x86_64 + aarch64) CUDA 13.0 build matrix removed in pytorch#198913. Generated workflows regenerated via .github/regenerate.sh.

vLLM's torch-nightly lane pins the cu130 index; cu130 nightlies stopped publishing after 2.15.0.dev20260928, so that lane has been re-testing a frozen wheel. This is a temporary hold for that consumer.

CUDA_STABLE stays 13.2 -- only the matrix entry returns, not the stable designation. Windows is excluded via a new CUDA_ARCHES_NO_WINDOWS: nothing consumes a Windows cu130 nightly, and pytorch/test-infra's validation matrix excludes it too.

The cuda13.0 builder images were never removed from build-manywheel-images.yml or build-almalinux-images.yml, so unlike pytorch#186015 no docker changes are needed.

Pairs with pytorch/test-infra#8989, which restores the validation half.

Made with AI, Claude
Pull Request resolved: pytorch#199520
Approved by: https://github.com/huydhn, https://github.com/ngimel, https://github.com/laithsakka
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 Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants