- ZLUDA (Install ZLUDA and add it to the PATH environment variable)
- Git
- Miniconda
-
Download and install Miniconda from here.
-
Open the Anaconda Prompt (miniconda3) terminal.
-
Create a new directory where you want to save your files.
-
Navigate to the directory and execute the following command:
conda create -n comfyui python=3.10.8 -y
-
Activate the environment:
conda activate comfyui
-
Change directory to
ComfyUI:cd .\ComfyUI\
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
.\venv\Scripts\activate
-
Install the required packages:
.\venv\Scripts\python.exe -m pip install -r .\requirements.txt
-
Install Torch and Torchvision:
pip install torch==2.2.0 torchvision --index-url https://download.pytorch.org/whl/cu118
-
Navigate to
venv\Lib\site-packages\torch\lib -
Copy
cublas64_11.dllandcusparse64_11.dllfrom ZLUDA (cublas.dllandcusparse.dllrespectively) and paste them here. -
*** IMPORTANT *** Before running ComfyUI, you must apply the following changes in
model_management.pyandcuda_malloc.py. Both files are located inComfyUI\comfy: -
Run the main script:
python main.py
Now, ComfyUI should be up and running using AMD with ZLUDA on Windows.