CivArchive
    Install Triton and Sage Attention on Windows with RTX 50XX - v2.1
    Preview 62086298

    Hey everyone! I’ve successfully set up Triton and Sage Attention on my RTX 5070Ti with Windows 11 to speed up Wan2.1 generation. This guide is for anyone who doesn’t want to mess with WSL or install Linux. Here are the steps, with references for more details:

    https://github.com/woct0rdho/triton-windows/?tab=readme-ov-file

    https://www.reddit.com/r/comfyui/comments/1j298vc/comfyui_not_recognizing_sageattention/

    https://github.com/thu-ml/SageAttention/issues/107

    1. Download the special ComfyUI version for 50XX series GPUs, extract it, and run the run_nvidia_gpu.bat batch file. Wait until all dependencies are installed.https://github.com/comfyanonymous/ComfyUI/releases/download/latest/ComfyUI_cu128_50XX.7z

    2. Install MSVC and Windows SDK

    • Steps:

      • Install Visual Studio 2022 from Visual Studio Downloads. Select “Desktop development with C++”.

      • Add to PATH:

        • Locate cl.exe (e.g., C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64).

        • Add to PATH:

          cmd

          set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64

        • Or set permanently via System > Advanced > Environment Variables > Edit “Path”.

      • Test:

        • OpenPowerShell and enter cl

        • Expected: Microsoft (R) C/C++ Optimizing Compiler Version 19.43.34808 for x64....

    3. Install vcredist

    • Steps:

      • Download Visual C++ Redistributable (2015-2022) from Microsoft.

      • Run vc_redist.x64.exe and install.

    4. Install Triton

    • Steps:

      • Install a pre-release wheel for Windows:

        cmd

        cd ComfyUI_cu128_50XX\python_embeded python.exe -m pip install https://github.com/woct0rdho/triton-windows/releases/download/v3.2.0%2Bgit8f9b005b-windows.post11/triton-3.2.0+git8f9b005b-cp312-cp312-win_amd64.whl

    5. Install Python 3.12.8 and Configure ComfyUI Embedded Python

    • Why: ComfyUI’s embedded Python needs headers and libs for Triton/Sage Attention.

    • Steps:

      • Download Python 3.12.8 from Python.org (Windows installer).

      • Install to a temporary path (e.g., C:\Python312).

      • Copy include and libs to ComfyUI’s embedded Python:

        cmd

        xcopy C:\Python312\include C:\Data\ComfyUI_cu128_50XX\python_embeded\include

        xcopy C:\Python312\libs C:\Data\ComfyUI_cu128_50XX\python_embeded\libs

    6. Install Sage Attention 1.0.6

    Before and After Results

    • Test Setup: 512x512 i2v video with 30 steps, 41 frames, 20 block swaps and UniPC sampler using I2V 720p 8fp model from master Kijai https://huggingface.co/Kijai/WanVideo_comfy/tree/main.

    • SDPA Attention: ~27s/it.

    • Sage Attention: ~14s/it.

    • Sage Attention+TeaCache: ~8s/it

    Description

    FAQ

    Comments (7)

    Kung_fu_PronMar 7, 2025· 3 reactions
    CivitAI

    how can i do this for a 4xxx cards on a portable install?

    zerocool22Mar 11, 2025· 4 reactions
    CivitAI

    ⚠ Triton for Windows will break all your ComfyUi and NODES, it not so easy like they said, even following all the steps.

    Proof: https://www.youtube.com/watch?v=RLCbEaN65a0

    So be careful and do a backup of your INCLUDE folder!

    Silver_bullet666Apr 4, 2025
    CivitAI

    Anyone else had success with this recently? (like past April 3 2025?)

    blinkdotlehApr 29, 2025
    CivitAI

    This deserves an update :(

    vladmonik396Apr 29, 2025· 3 reactions
    CivitAI

    Тупорылые дятлы кто все это говно выкладывает на головы художников, которые вынуждены тратить часы на установку всего этого идиотского дерьма. Со мной все согласятся. мы и так страдаем от того насколько тяжело что-то делать в ComfyUI, но то что люди не могут сделать все удобно как в Pinokio, это нонсенс. проклинаю всех кто это делал

    Axiom432Sep 20, 2025· 1 reaction
    CivitAI

    Thanks for the attempt but lets be real.

    Which is superior in simplicity: 100 quintillion garbage commands dropped into 3 different dos prompts that still don't result in a solution, or a dot exe file that just works?

    Which do you have?

    Imagine believing the future of computers is in DOS prompt commands. That is the modern failure of AI programmers.

    I hear if you preform this rain dance correctly over your entire lifetime then there is a 1 in 100 drop rate for an instillation to occur by random chance.

    Welcome to modern computer theory 101. Where you do a lot of work, but ultimately nothing ever had the chance to succeed. Unless you can construct your own transistor gates and program them yourself from the ground up.

    Workflows
    Wan Video

    Details

    Downloads
    438
    Platform
    CivitAI
    Platform Status
    Available
    Created
    3/7/2025
    Updated
    9/21/2026
    Deleted
    -

    Files

    installTritonAndSage_v21.zip

    Mirrors

    HuggingFace (1 mirrors)
    CivitAI (1 mirrors)