@echo off echo Sage, Triton and Pytorch Auto-Installer. :: Ask user which GPU they have :ask_gpu echo. echo Select your GPU type: echo 1. 30XX/40XX or earlier series GPU echo 2. 50XX (Blackwell) GPU set /p PT_CHOICE=Enter choice (1 or 2): if "%PT_CHOICE%"=="1" ( echo You selected 30XX/40XX or earlier series GPU. ) else ( if "%PT_CHOICE%"=="2" ( echo You selected 50XX ^(Blackwell^) GPU. ) else ( echo Invalid choice. Please enter 1 or 2. goto ask_gpu ) ) set INCLUDE_LIBS_URL=https://github.com/woct0rdho/triton-windows/releases/download/v3.0.0-windows.post1/python_3.12.7_include_libs.zip set PYTHONUTF8=1 set PYTHONIOENCODING=utf-8 set PYTHON=python_embeded\python.exe echo Installing Visual Studio Build Tools. If you already have a compatible version, the update will read "Installer failed with exit code: 1". This is normal. winget install --id Microsoft.VisualStudio.2022.BuildTools -e --source winget --override "--quiet --wait --norestart --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.20348" echo Installing Triton %PYTHON% -s -m pip install -U --pre triton-windows for %%F in ("%INCLUDE_LIBS_URL%") do ( set FILE_NAME=%%~nxF ) echo Downloading Python include/libs from URL curl -L -o "%FILE_NAME%" "%INCLUDE_LIBS_URL%" echo Extracting Python include/libs using tar tar -xf "%FILE_NAME%" -C python_embeded echo Installing SageAttention %PYTHON% -s -m pip install sageattention==1.0.6 :: Install PyTorch depending on user choice if "%PT_CHOICE%"=="1" ( echo Installing Pytorch 2.7.1+cu128 %PYTHON% -s -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 --force-reinstall ) else ( echo Installing Pytorch 2.8.0dev+cu128 %PYTHON% -s -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128 --force-reinstall ) echo Installing Custom Extensions cd ComfyUI\custom_nodes git clone https://github.com/ltdrdata/ComfyUI-Manager comfyui-manager git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite git clone https://github.com/kijai/ComfyUI-KJNodes git clone https://github.com/cubiq/ComfyUI_essentials git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation git clone https://github.com/pollockjj/ComfyUI-MultiGPU git clone https://github.com/asagi4/ComfyUI-Adaptive-Guidance git clone https://github.com/city96/ComfyUI-GGUF git clone https://github.com/kijai/ComfyUI-WanVideoWrapper git clone https://github.com/crystian/ComfyUI-Crystools.git echo Installing Custom Extensions Requirements cd ..\.. %PYTHON% -m pip install -r ComfyUI\custom_nodes\comfyui-manager\requirements.txt %PYTHON% -m pip install -r ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\requirements.txt %PYTHON% -m pip install -r ComfyUI\custom_nodes\ComfyUI-KJNodes\requirements.txt %PYTHON% -m pip install -r ComfyUI\custom_nodes\ComfyUI_essentials\requirements.txt %PYTHON% -m pip install -r ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation\requirements-with-cupy.txt %PYTHON% -m pip install -r ComfyUI\custom_nodes\ComfyUI-GGUF\requirements.txt %PYTHON% -m pip install -r ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper\requirements.txt %PYTHON% -m pip install -r ComfyUI\custom_nodes\ComfyUI-Crystools\requirements.txt echo Done. pause