| @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 | |