mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 06:40:48 +08:00
updated zluda to 3.9.5 nightly
This commit is contained in:
parent
0a4b35992e
commit
b4d3e53892
@ -4,19 +4,26 @@ echo ======================================================================
|
||||
echo Custom ZLUDA Patcher (Specifically for HIP 6.2.4 with MIOPEN - Triton)
|
||||
echo ======================================================================
|
||||
echo.
|
||||
echo :: Make sure (1) you have HIP 6.2.4 installed,
|
||||
echo :: (2) HIP Addon (https://www.mediafire.com/file/qhct48vamgmn0tv/HIP-SDK-extension-full.zip/file) or (https://gofile.io/d/kUXwYu) downloaded and extracted into "C:\Program Files\AMD\ROCm\6.2"
|
||||
echo :: Make sure (1) you have HIP 6.2.4 freshly installed. (if you were using it previously, completely remove it, remove the folder (C:\Program Files\AMD\ROCm\6.2) after uninstall as well since there could be leftover files from the addon)
|
||||
echo :: (2) *new* HIP Addon (https://drive.google.com/file/d/1Gvg3hxNEj2Vsd2nQgwadrUEY6dYXy0H9/view?usp=sharing) downloaded and extracted into "C:\Program Files\AMD\ROCm\6.2"
|
||||
echo :: (3) Change the zluda.py inside comfy\ folder with the one under comfy\customzluda\. (it is done automatically with this batch file now)
|
||||
echo :: * Don't forget if you want to update comfy,and if there is a change in the zluda.py, just delete the file for update to work, and after it completes copy it back from the comfy\customzluda\ folder.
|
||||
echo.
|
||||
echo :: Activating virtual environment
|
||||
venv\Scripts\activate
|
||||
echo :: Uninstalling previous torch packages
|
||||
pip uninstall torch torchvision torchaudio -y --quiet
|
||||
rmdir /S /Q "venv\Lib\site-packages\torch" 2>nul
|
||||
echo :: Installing torch 2.7 - torchaudio 2.7 and torchvision 0.22
|
||||
pip install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu118 --quiet
|
||||
rmdir /S /Q zluda 2>nul
|
||||
mkdir zluda
|
||||
cd zluda
|
||||
%SystemRoot%\system32\curl.exe -sL --ssl-no-revoke https://github.com/lshqqytiger/ZLUDA/releases/download/rel.0d1513a017397bf9ebbac0b3c846160c8d4fc700/ZLUDA-nightly-windows-rocm6-amd64.zip > zluda.zip
|
||||
echo :: Downloading and patching zluda 3.9.5 nightly ...
|
||||
%SystemRoot%\system32\curl.exe -sL --ssl-no-revoke https://github.com/lshqqytiger/ZLUDA/releases/download/rel.5e717459179dc272b7d7d23391f0fad66c7459cf/ZLUDA-nightly-windows-rocm6-amd64.zip > zluda.zip
|
||||
%SystemRoot%\system32\tar.exe -xf zluda.zip
|
||||
del zluda.zip
|
||||
cd ..
|
||||
|
||||
:: Patch DLLs
|
||||
copy zluda\cublas.dll venv\Lib\site-packages\torch\lib\cublas64_11.dll /y >NUL
|
||||
copy zluda\cusparse.dll venv\Lib\site-packages\torch\lib\cusparse64_11.dll /y >NUL
|
||||
@ -26,6 +33,6 @@ copy zluda\cudnn.dll venv\Lib\site-packages\torch\lib\cudnn64_9.dll /y >NUL
|
||||
copy zluda\cufft.dll venv\Lib\site-packages\torch\lib\cufft64_10.dll /y >NUL
|
||||
copy zluda\cufftw.dll venv\Lib\site-packages\torch\lib\cufftw64_10.dll /y >NUL
|
||||
copy comfy\customzluda\zluda.py comfy\zluda.py /y >NUL
|
||||
|
||||
echo :: ZLUDA patched for HIP SDK 6.2.4 with miopen and triton-flash attention.
|
||||
echo.
|
||||
echo :: ZLUDA 3.9.5 nightly patched for HIP SDK 6.2.4 with miopen and triton-flash attention.
|
||||
pause
|
||||
|
||||
Loading…
Reference in New Issue
Block a user