Skip to content

Experimental ROCM & PYTORCH builds for ALL GFX103X (rdna2) #435

Description

@patientx

THIS IS NOW SUPERSEEDED BY THE COMFYUI-ROCM FORK.

*** https://github.com/patientx-cfz/comfyui-rocm ***

THIS IS NOW SUPERSEEDED BY THE COMFYUI-ROCM FORK.

It is maintained actively and my recommendation for everyone above from vega to latest 9000s. Has auto installation, portable venv (self-contained) and necessary packages installed and updated automatically...

  • First make sure you have these installed :

git :: https://git-scm.com/download/win
python 3.12 :: https://www.python.org/ftp/python/3.12.10/python-3.12.10-amd64.exe
Visual C++ Runtime Library :: https://aka.ms/vs/17/release/vc_redist.x64.exe
Visual Studio Build Tools :: https://aka.ms/vs/17/release/vs_BuildTools.exe

Then download all of the files from the mediafire folder above, follow the instructions. (https://app.mediafire.com/folder/mvrwkgj96lkua)

Open a commandline window in the folder / drive you want to install comfyui to.
Copy-paste and "enter" after each command.

git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI
  • (create a folder inside this empty comfyui folder called rocm and copy the files downloaded from mediafire into it)
md .triton
py -3.12 -m venv venv
venv\Scripts\activate
python.exe -m pip install --upgrade pip --quiet
pip install -r requirements.txt --quiet
pip uninstall torch torchvision torchaudio -y --quiet
cd rocm
pip install rocm-7.12.0.dev0.tar.gz rocm_sdk_core-7.12.0.dev0-py3-none-win_amd64.whl rocm_sdk_devel-7.12.0.dev0-py3-none-win_amd64.whl rocm_sdk_libraries_gfx103x_all-7.12.0.dev0-py3-none-win_amd64.whl
pip install "torch-2.10.0+devrocm7.12.0.dev0-cp312-cp312-win_amd64.whl" "torchaudio-2.10.0+devrocm7.12.0.dev0-cp312-cp312-win_amd64.whl" "torchvision-0.25.0+devrocm7.12.0.dev0-cp312-cp312-win_amd64.whl"
pip install triton-windows==3.6.0.post25 --quiet
pip install sageattention==1.0.6 --quiet
pip install https://github.com/0xDELUXA/bitsandbytes_win_rocm/releases/download/v0.49.2.dev0-py312-rocm7.12/bitsandbytes-0.49.2.dev0-cp312-cp312-win_amd64.whl --quiet
cd..
del venv\Lib\site-packages\sageattention\attn_qk_int8_per_block.py
curl -s -o venv\Lib\site-packages\sageattention\attn_qk_int8_per_block.py https://raw.githubusercontent.com/patientx/ComfyUI-Zluda/refs/heads/master/comfy/customzluda/sa/attn_qk_int8_per_block.py
del venv\Lib\site-packages\sageattention\attn_qk_int8_per_block_causal.py
curl -s -o venv\Lib\site-packages\sageattention\attn_qk_int8_per_block_causal.py https://raw.githubusercontent.com/patientx/ComfyUI-Zluda/refs/heads/master/comfy/customzluda/sa/attn_qk_int8_per_block_causal.py
del venv\Lib\site-packages\sageattention\quant_per_block.py
curl -s -o venv\Lib\site-packages\sageattention\quant_per_block.py https://raw.githubusercontent.com/patientx/ComfyUI-Zluda/refs/heads/master/comfy/customzluda/sa/quant_per_block.py

now to run this easily, download the attached comfyrun.txt , change it's extension to comfyrun.bat and change the folder and if you want the arguments in the file to your needs and you can run comfy with it from anywhere.

comfyrun.txt


EDIT : Thanks to @0xDELUXA ; we have bitsandbytes for rnda2 & above.

https://github.com/mengqin/ComfyUI-UnetBnbModelLoader

I tested this model for example;

https://huggingface.co/Jianqiao1/Z-Image-Turbo-bnb-nf4/blob/main/z_image_turbo_nf4_v2.safetensors

It not faster than for example gguf_q8 (about 5 to 10% slower BUT uses half the vram. And now we have more options to choose from. Better than nothing.


Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions