色々しらべてインストール出来たので共有です。
詰まったところがあったらコメントで教えて下さい。
1. comfyuiのディレクトリを右クリックし「ターミナルで開く」
2. Pytorchのバージョンを調べる
.\python_embeded\python.exe -m pip show torch
3. バージョンごとに使えるTritonのバージョンが違うので、表を確認して対応したものを入れる
対応表 https://github.com/woct0rdho/triton-windows?tab=readme-ov-file#3-pytorch
例:pytorch2.9 の場合
.\python_embeded\python.exe -m pip install -U "triton-windows<3.6"
4. Sage Attention のwheelをダウンロードし、comfyuiのディレクトリに置く
バージョンを自分の環境のcudaのバージョンとpytorchのバージョンにあったものをえらぶ
https://github.com/woct0rdho/SageAttention/releases の Assets のトグルを開くとダウンロードリンクが表示される
pytorch2.9 cuda13.0の場合
sageattention-2.2.0+cu130torch2.9.0andhigher.post4-cp39-abi3-win_amd64.whlをダウンロードする
5. wheel をインストールする
.\python_embeded\python.exe -m pip install sageattention-2.2.0+cu130torch2.9.0andhigher.post4-cp39-abi3-win_amd64.whl
6. 下記リンクの python_3.13.2_include_libs.zip をダウンロードし、解凍したディレクトリにある libs と include という2つのディレクトリを python_embedded ディレクトリにコピーする
7. run_nvidia_gpu.bat を開き --use-sage-attention を引数に追加する
8. run_nvidia_gpu.bat を実行し、起動メッセージUsing sage attention と表示されていれば成功
補足:cuda_13.0.0_windows.exe のインストールで、「 NVIDIA インストーラーが失敗しました」というエラーになる場合は、カスタムインストールを選び、失敗したコンポーネントのチェックを外して実行すると成功します。

