santa hat
deerdeer nosedeer glow
Sign In

Make an AMD GPU card work like Nvidia card for Automatic1111 on Windows

Make an AMD GPU card work like Nvidia card for Automatic1111 on Windows

This guide will only work with AMD 6800 series or newer.

I will assume that you have nothing installed as far as prerequisites, so if you already have all these installed then just skip over it.

ZLuda: https://github.com/lshqqytiger/ZLUDA/releases/ download ZLUDA-windows-amd64.zip

  • unzip the files to a folder of your choice. later we will need to move a few of the files from this folder

AMD HIP SDK: https://rocm.docs.amd.com/projects/install-on-windows/en/develop/

after installing HIP a restart is required. after a restart verify that the system PATH has HIP referenced by typing in the windows search bar "env" and then click the button that says "Environment Variables.."

  • then look under "System variables" and make sure you see "HIP_PATH" in the list

  • if not then look for "Path" Variable and click to highlight and then click the edit button

  • Then click the "New" button and paste this: %HIP_PATH%bin

  • then click ok.

  • next while we are in system variables lets go ahead and add ZLuda to it as well

so click path and edit and simply add the path to where ever you unzipped the ZLuda files ...should look something like this. c:\path\to\ZLuda files

  • click ok and close it out.

Git for Windows: https://gitforwindows.org/

Python: https://www.python.org/downloads/

  • do not get the latest... you need v3.10.6

  • when installing Python be sure to check the box that says add to path

once all that is setup then open a cmd prompt and type

git clone https://github.com/lshqqytiger/stable-diffusion-webui-amdgpu.git

once its done it should open up Stable Diffusion. just close it

  • now using windows explorer in the stable-diffusion-webui-amdgpu folder navigate to \venv\lib\site-packages\torch\lib

  • once in this folder look for the files "cublas64_11.dll" and "cusparse64_11.dll" and DELETE THE TWO FILES

now go to the folder where you unzipped ZLuda and copy the two files called "cublas.dll" and "cusparse.dll" into the \venv\lib\site-packages\torch\lib folder

  • rename the file "cublas.dll" to "cublas64_11.dll"

  • rename the file "cusparse.dll" to cusparse64_11.dll"

then in a cmd prompt in stable-diffusion-webui-amdgpu directory type "webui.bat --use-zluda"

this should open stable diffusion up and you should be able to use all features just as Nvidia GPU cards can

PLEASE NOTE THAT THE FIRST GENERATION YOU RUN WILL TAKE AN EXTREMELY LONG TIME. IT WILL SEEM AS THOUGH NOTHING IS HAPPENING. BE PAITIENT AND AFTER 15-20MIN YOU SHOULD SEE THE RESULTS. AFTER THAT YOU SHOULD HAVE MUCH BETTER TIMES

14

Comments