ComfyUI_portable_python312 / runscripts /run_nvidia_gpu_v2_sageattn.bat
Xeno443's picture
Upload 11 files
9758e85 verified
raw
history blame contribute delete
830 Bytes
@ECHO OFF
CALL environment.bat passive
set SAGEATTN_DEBUG=1
ECHO # Modified startup bat for SageAttention support
ECHO.
ECHO Checking for SageAttention installation...
.\python_embeded\python.exe -c "import sageattention" >nul 2>&1
if %errorlevel%==0 (
ECHO SageAttention module detected.
) else (
.\python_embeded\python.exe -c "import sage_attention" >nul 2>&1
if %errorlevel%==0 (
ECHO SageAttention module detected.
) else (
ECHO WARNING: SageAttention not found in the embedded Python environment.
ECHO You may need to install it manually.
pause
exit /b 1
)
)
SET COMFYPARAMS=--windows-standalone-build --use-sage-attention
ECHO Starting ComfyUI with parameters "%COMFYPARAMS%" ...
.\python_embeded\python.exe -s ComfyUI\main.py %COMFYPARAMS%
PAUSE