From 809a25662bd7a3112f8513ef80b97af8023a3698 Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Mon, 18 Nov 2024 15:46:22 -0800 Subject: [PATCH] Add instructions for installing prerequisites --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ff545ccb8..b15f58430 100644 --- a/README.md +++ b/README.md @@ -349,18 +349,24 @@ Install the dependencies for Windows or Linux using the `withtriton` component, pip install "comfyui[withtriton]@git+https://github.com/hiddenswitch/ComfyUI.git" ``` +On Windows, you will need the CUDA Toolkit and Visual Studio 2022. If you do not already have this, use `chocolatey`: + +```powershell +# install chocolatey +Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) +choco install -y visualstudio2022buildtools +# purposefully executed separately +choco install -y visualstudio2022-workload-vctools +choco install -y vcredist2010 vcredist2013 vcredist140 +choco install -y cuda +``` + If you have `xformers` installed, disable it, as it will be preferred over Sage Attention: ```shell comfyui --disable-xformers ``` -If you want to use **TorchCompileModel** to further improve performance, do not reserve VRAM: - -```shell -comfyui --disable-xformers --reserve-vram=-1.0 -``` - Sage Attention is not compatible with Flux. It does not appear to be compatible with Mochi when using `torch.compile` ![with_sage_attention.webp](./docs/assets/with_sage_attention.webp)