xformers 0.0.35 for Pytorch 2.12.0+cu132 on Windows
01.06.2026, updated for the newest xformers0.0.35&Pytorch2.12.0+cu132
For A1111
まず、A1111から更新していきます。venv仮想環境を前提に記述していきますが、まず始めに、以下の様にアクティベートを行います。

xformers
まず、下のコマンドで、xformersを更新します。
pip install -U xformersここで注意点は、同時にcpu動作用のtorchがインストールされてしまう点です。そこで、下記コマンドでそれを削除します。
pip uninstall torchPytorch
続いて、Pytorch 2.12.0+cu132をインストールします。ここでtorchaudioのみ、私がビルドした非公式版を使いますが、これはtorchaudio公式の開発が2.11.0で終了した為です。
pip install -U torch torchvision --index-url https://download.pytorch.org/whl/cu132
pip install https://huggingface.co/ussoewwin/torchaudio-built-on-cu132-for-windows/resolve/main/torchaudio-2.12.0%2Bcu132-cp313-cp313-win_amd64.whltriton
次に、triton-windowsを更新します。尤もA1111においては、tritonに特に意味はありません。
pip install -U triton-windows以下、無事更新されました。

For ComfyUI
次にComfyUIについてですが、以下の記述はPortable版のPython 3.13.xを前提にしています。
xformers
まず、下図のようにxformersの更新を行います。
python_embeded\python.exe -m pip install -U xformersここで注意点は、A1111と同様に、cpu動作用のtorchがインストールされてしまう点です。そこで、下記コマンドでそれを削除します。
python_embeded\python.exe -m pip uninstall torchPytorch
次に、以下のコマンドを実行します。
python_embeded\python.exe -m pip install -U torch torchvision --index-url https://download.pytorch.org/whl/cu132
python_embeded\python.exe -m pip install https://huggingface.co/ussoewwin/torchaudio-built-on-cu132-for-windows/resolve/main/torchaudio-2.12.0%2Bcu132-cp313-cp313-win_amd64.whltriton
次に、以下のコマンドを実行してtriton-windowsを更新します。
python_embeded\python.exe -m pip install -U triton-windows以下のように、無事更新されました。

flash-attention
Pytorch2.12.0+cu132に対応する、cu132環境でビルドしたv2.9.1を以下で公開しています。
sage-attention
以下記事を参照して下さい。

また、私がビルドしたwhlを以下で公開しています。
過去作成した各WebUIのインストール解説書も、本記事の内容を反映させて、順次更新していきます。
