Repository navigation
build(deps): install Triton on Windows NVIDIA installs - #9993
Merged
Pfannkuchensack merged 3 commits intoOct 23, 2026
Merged
Conversation
Add triton-windows (>=3.7,<3.8, matching torch 2.13) to the cuda extra for Windows x64. The manual install guide now uses the cuda extra with the CUDA 13 backend. SageAttention no longer needs a manual Triton install there; FAQ updated.
Pfannkuchensack
requested review from
blessedcoolant,
joshistoast and
lstein
as code owners
October 22, 2026 12:18
6 of 7 tasks
Member
Author
|
Linux CUDA test run. Machine: Verda 2× NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB, sm_120), driver 580.178.04, Ubuntu 26.04.1, torch 2.13.0+cu130, cuDNN 9.20, Triton 3.7.1. The PR head was compared with its merge base on Linux unchanged, verified:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PyTorch's Linux CUDA wheel pulls in Triton, but the Windows wheel does not, so Windows NVIDIA installs had no Triton and every Triton kernel (today: SageAttention) needed a manual
triton-windowsinstall that a later sync removed again.cudaextra now installstriton-windows>=3.7,<3.8on Windows x64, matching the Triton that torch 2.13 is built against. Windows ARM64 is excluded (no wheel), so the ARM64 lock gate keeps passing.uv.lockadds onlytriton-windows 3.7.1.post27. The rest of the lock diff is uv rewriting dependency markers into equivalent simpler forms; no other package, version, wheel or source changes (checked by comparing old and new lock entries and evaluating every rewritten marker across all supported platform/extra combinations).cudaextra with--torch-backend=cu130(Invoke 7+), which also pins the tested torch build; cu126 installs stay without the extra.Related Issues / Discussions
None.
QA Instructions
uv lock --lockedwith uv 0.11.28 (CI's version): passes.scripts/check_platform_locks.py ./uv.lock: passes (linux/aarch64 and win32/ARM64, 0 packages missing a wheel).pytest tests/test_check_platform_locks.py: 16 passed.uv sync --locked --extra cuda --extra teston Windows x64:triton-windows 3.7.1.post27imports with torch 2.13.0+cu130, thetriton not foundwarning at startup is gone, and a Triton kernel compiled and ran correctly on an RTX 4090.uv pip install --dry-run):"invokeai[cuda]==7.0.0a3" --torch-backend=cu130resolves on win_amd64 and Linux x86_64 (torch 2.13.0+cu130); the documented cu126 commands without the extra still resolve;[cuda]with cu126 is unsatisfiable, which is why the guide restricts it to cu130.Review
Fixed during review: the FAQ and SageAttention docs first claimed every NVIDIA install has Triton (Windows ARM64 does not) and listed Intel as having none (the
xpuextra shipstriton-xpu).Remaining: on Windows x64 NVIDIA installs,
diffusersandbitsandbytesnow import Triton at startup (~80 ms); nothing is compiled at startup and no code path changes behavior because of it, the same as on Linux today.Compatibility / Rollout
Launcher installs (
uv sync --frozen --extra cuda) pick up Triton on the next update or repair. Users who installedtriton-windowsby hand are moved to the locked version.Checklist
What's Newcopy (if doing a release after this PR)Need help on this PR? Tag
@codesmith-botwith what you need.