CivArchive
    ← All articles
    Published January 1, 2026by supernova_ai

    ComfyUI windows portable に Sage Attention をインストールする方法

    410 views0 reactions2 comments on CivitAI0 collected
    sage attentiontool guidecomfyui windows portable

    色々しらべてインストール出来たので共有です。

    詰まったところがあったらコメントで教えて下さい。

    1. comfyuiのディレクトリを右クリックし「ターミナルで開く」

    2. Pytorchのバージョンを調べる

    • .\python_embeded\python.exe -m pip show torch

    3. バージョンごとに使えるTritonのバージョンが違うので、表を確認して対応したものを入れる

    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 をダウンロードし、解凍したディレクトリにある libsinclude という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 インストーラーが失敗しました」というエラーになる場合は、カスタムインストールを選び、失敗したコンポーネントのチェックを外して実行すると成功します。