On Windows, install triton-windows, add a SageAttention wheel from the woct0rdho releases, and launch ComfyUI with --use-sage-attention. The wheel author now suggests --use-ck-attention, needing no wheel. PyPI stops at 1.0.6.
Which install route fits each setup?
| setup | route |
|---|---|
| windows, 16 to 50 series cards | python_embeded\python.exe -m pip install -U "triton-windows<3.10", then one wheel file |
| linux | Linux source build: python setup.py install |
| no wheel wanted | launch with --use-ck-attention (comfy-kitchen) |
The newest wheel, from July, is tagged cu128 or cu130, torch andhigher. A later release serves RDNA4 only. Datacenter Blackwell needs a source build. Toolkit majors must match. Any Python from 3.10 works, though triton-windows raises the floor.
How can the active backend be confirmed?
The startup log prints "Using sage attention" when the flag is accepted, or "Using Comfy Kitchen attention" for the other flag. A failed kernel call logs "Error running sage attention" and falls back. Silent slowness has another cause: /why-is-comfyui-not-using-the-gpu.
What errors appear most often?
| symptom | fix |
|---|---|
| no matching version for 2.2.0 | PyPI lacks it (issue 336); use a wheel or source build |
| black or noisy output on some video models | wheels from post6 fix an overflow bug; else add PatchSageAttentionKJ with sageattn_qk_int8_pv_fp16_cuda |
| source build fails with toolkit 13 | use the prebuilt wheel (issue 319) |
Is SageAttention3 or FlashAttention the better choice?
The README keeps version 3 in a Blackwell-only folder for RTX 50 cards. ComfyUI registers a sage3 option only when sageattn3 imports. Background on the tiled method: /flashattention. Per-card picks: version guide.
Sources
- SageAttention README: install commands and version 3 notes.
- SageAttention Windows releases: wheel names, dates, ck-attention advice, supported cards.
- ComfyUI cli_args.py: where both flags are defined.