Skip to content

Prebuilt CUDA wheels: torch 2.12 for Windows x64 - #13807

Merged
danielhanchen merged 1 commit into
mainfrom
win-torch212-prebuilt-wheels
Oct 15, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
win-torch212-prebuilt-wheels

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Lets prebuilt-cuda-wheels.yml build flash-attn, causal-conv1d and mamba-ssm for torch 2.12 on Windows x64, next to the torch 2.10 and 2.11 cells (#13740, #13563).

Why

On Linux, torch 2.12 reuses upstream's torch 2.10 wheels (_PREBUILT_WHEEL_TORCH_MM). Upstream never published those for Windows, so a Windows install on torch 2.12.x+cu130 gets none of the three. Existing cu130 installs keep their torch release up to 2.14, so 2.12 installs stay on 2.12.

What changes

  • .github/scripts/prebuilt_wheels.py: win_amd64's extra_torches becomes ("2.10.0", "2.11.0", "2.12.0"). Only win_amd64 builds 2.12.0; a default dispatch still builds only 2.13.0 and 2.14.0.
  • TRITON_WINDOWS["2.12"] = "3.7.0.post26", matching torch 2.12.0's triton==3.7.0 pin, for the mamba-ssm smoke import.
  • Tests: the 9-cell 2.12 matrix, 2.12 refused on every other platform, the triton-windows pin, the release notes line. The allowlist refusal case moves from 2.12.0 to 2.9.0. The three prebuilt wheel test files pass (196).

Nothing resolves to these wheels yet; the Studio side follows once they are published.

Build

An artifact-only run of this workflow from this branch on a staging repo (platforms=win_amd64, torch_versions=2.12.0, python_versions=3.11,3.12,3.13, all three packages, publish=false) is in progress. The publish job only runs when every cell builds and signs.

Add 2.12.0 to win_amd64's extra_torches (Python 3.11-3.13, flash-attn, causal-conv1d,
mamba-ssm). Linux reuses upstream's torch2.10 wheels on 2.12, which have no Windows
build. torch 2.12.0 pins triton 3.7.0, so the smoke test uses triton-windows 3.7.0.post26.
A default dispatch still builds only 2.13.0 and 2.14.0.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-15T06:18:08.831036Z 46cc2b7 PR opened
🔒 Security Review ⚠️ Failed 2026-10-15T06:18:09.196268Z 46cc2b7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen
danielhanchen merged commit d6fc96b into main Oct 15, 2026
@danielhanchen
danielhanchen deleted the win-torch212-prebuilt-wheels branch October 15, 2026 06:18
danielhanchen added a commit that referenced this pull request Oct 15, 2026
Studio on Windows x64 with torch 2.12 now installs flash-attn,
causal-conv1d and mamba-ssm from our prebuilt wheels, as it does for
2.10 and 2.11.

Follows #13807 (the workflow change that builds them). Merge after the
torch 2.12 `win_amd64` wheels are published on `prebuilt-wheels-cu13`;
before that, these URLs would 404.

## What changes

`studio/backend/utils/wheel_utils.py`: `("win_amd64", "2.12")` joins the
extra published cells, for cp311, cp312 and cp313, e.g.
`flash_attn-2.8.4+cu13torch2.12cxx11abiTRUE-cp312-cp312-win_amd64.whl`.

Unchanged: Linux 2.12 keeps reusing upstream's torch 2.10 wheels;
Windows 2.10 / 2.11 / 2.13 / 2.14 as before; Windows 2.9, CUDA 12
builds, free-threaded builds, other interpreters and `win_arm64` resolve
to nothing.

## Tests

The cases that used Windows 2.12 as "no wheel" move to 2.9; Windows 2.12
resolution for each interpreter and kernel, plus `kernel_install`; the
workflow/resolver agreement check covers all 27 extra cells. The
resolver, kernel_install and prebuilt wheel test files pass (388).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant