Skip to content

zubenelakrab/ComfyUI_AMD_ZLUDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running ComfyUI with AMD + ZLUDA (Windows)

Requirements:

  • ZLUDA (Install ZLUDA and add it to the PATH environment variable)
  • Git
  • Miniconda
  1. Download and install Miniconda from here.

  2. Open the Anaconda Prompt (miniconda3) terminal.

  3. Create a new directory where you want to save your files.

  4. Navigate to the directory and execute the following command:

    conda create -n comfyui python=3.10.8 -y
  5. Activate the environment:

    conda activate comfyui
  6. Change directory to ComfyUI:

    cd .\ComfyUI\
  7. Create a virtual environment:

    python -m venv venv
  8. Activate the virtual environment:

    .\venv\Scripts\activate
  9. Install the required packages:

    .\venv\Scripts\python.exe -m pip install -r .\requirements.txt
  10. Install Torch and Torchvision:

    pip install torch==2.2.0 torchvision --index-url https://download.pytorch.org/whl/cu118
  11. Navigate to venv\Lib\site-packages\torch\lib

  12. Copy cublas64_11.dll and cusparse64_11.dll from ZLUDA (cublas.dll and cusparse.dll respectively) and paste them here.

  13. *** IMPORTANT *** Before running ComfyUI, you must apply the following changes in model_management.py and cuda_malloc.py. Both files are located in ComfyUI\comfy:

  14. Run the main script:

    python main.py

Now, ComfyUI should be up and running using AMD with ZLUDA on Windows.

About

Running ComfyUI with AMD + ZLUDA (Windows)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages