Upload AutoInstall Pytorch Triton Sage.bat
Browse files
AutoInstall Pytorch Triton Sage.bat
CHANGED
|
@@ -112,7 +112,7 @@ if "%INSTALL_TORCH%"=="true" (
|
|
| 112 |
%PYTHON% -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu%CLEAN_CUDA%
|
| 113 |
) else (
|
| 114 |
echo [INFO] Installing PyTorch Stable for CUDA %CLEAN_CUDA%
|
| 115 |
-
%PYTHON% -m pip install torch torchvision torchaudio
|
| 116 |
)
|
| 117 |
)
|
| 118 |
|
|
@@ -138,15 +138,18 @@ if "%INSTALL_SAGE%"=="true" (
|
|
| 138 |
%PYTHON% -m pip install sageattention==1.0.6
|
| 139 |
) else (
|
| 140 |
echo Installing SageAttention v2 from source
|
|
|
|
| 141 |
git clone https://github.com/thu-ml/SageAttention
|
| 142 |
cd SageAttention
|
| 143 |
set MAX_JOBS=%CPU_CORES%
|
| 144 |
%PYTHON% -m pip install .
|
|
|
|
| 145 |
cd ..
|
| 146 |
rmdir /s /q SageAttention
|
| 147 |
)
|
| 148 |
)
|
| 149 |
|
|
|
|
| 150 |
if "%UPDATE_COMFY%"=="true" (
|
| 151 |
echo Updating ComfyUI
|
| 152 |
pushd "%COMFY_DIR%"
|
|
|
|
| 112 |
%PYTHON% -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu%CLEAN_CUDA%
|
| 113 |
) else (
|
| 114 |
echo [INFO] Installing PyTorch Stable for CUDA %CLEAN_CUDA%
|
| 115 |
+
%PYTHON% -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu%CLEAN_CUDA%
|
| 116 |
)
|
| 117 |
)
|
| 118 |
|
|
|
|
| 138 |
%PYTHON% -m pip install sageattention==1.0.6
|
| 139 |
) else (
|
| 140 |
echo Installing SageAttention v2 from source
|
| 141 |
+
cd "%UPDATE_DIR%"
|
| 142 |
git clone https://github.com/thu-ml/SageAttention
|
| 143 |
cd SageAttention
|
| 144 |
set MAX_JOBS=%CPU_CORES%
|
| 145 |
%PYTHON% -m pip install .
|
| 146 |
+
|
| 147 |
cd ..
|
| 148 |
rmdir /s /q SageAttention
|
| 149 |
)
|
| 150 |
)
|
| 151 |
|
| 152 |
+
|
| 153 |
if "%UPDATE_COMFY%"=="true" (
|
| 154 |
echo Updating ComfyUI
|
| 155 |
pushd "%COMFY_DIR%"
|