What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Some people's computers are clearly well configured and have good graphics cards, but when they doAI PaintingWhen it's slow, it's probably because you don't have CUDA and cuDNN installed.

My computer just did the system, comfyUI also reinstalled, comfyUI did not install CUDA, out of the map becomes very slow very slow, today I will take you to the CUDA, cuDNN and pytorch installation, so that comfyUI speed up a bit.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Before I installed it, I ran a graph with kontext and it came in at 285 seconds.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

I. Installing CUDA

1, in the installation of the first to determine which version of your computer to install the highest CUDA support

First open the NVIDIA control panel on your computer

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Click System Information -> Components in the lower left corner of the NVIDIA control panel

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Finding NVCGDA64.DLL means that our computer supports the installation of CUDA

Remember the version number 12.9.90 at the end, this is the highest version supported by our computer and we can only install CUDA versions less than or equal to 12.9.90.

2. Determine the version number of CUDA according to python

Open PyTorch's webpage (https://pytorch.org) and scroll down to see the python version selection

Since our CUDA supports up to 12.9.90, we have a choice of 11.8, 12.6 and 12.8 versions of CUDA.

Here we choose version 12.8.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

3. Download CUDA

Once you have determined the version of CUDA, go to the CUDA download page and select the correct version to download:

Website:

https://developer.nvidia.com/cuda-toolkit-archive

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

3. Installation of CUDA

Download and install

Since I already have Visual Studio installed, I didn't check it here.

Click Next and default all the way to the end of the installation.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Once installed, check if the installation was successful

Win+r to open the Run window, type "cmd" to open the command line window.

Input "nvcc -version", you can check the CUDA version number, the current version number is V12.8.61, that means CUDA installation is successful.

Then type "set cuda" to see if the environment variable is set.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

You can also check to see if the environment variables have been set by doing the following:

Right click on my computer -> Properties -> Advanced System Settings

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Click on Environment Variables and see that CUDA has been added to the system variables

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

II. Installation of cuDNN

CUDA should be used in conjunction with cuDNN.

The version number of cuDNN should be equal to or less than the version number of CUDA

cuDNN URL:

https://developer.nvidia.com/rdp/cudnn-archive#a-collapse897-120

Since we installed CUDA version 12.8, the corresponding cuDNN should be installed with version 8.9.7.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

After clicking on the link for version 8.9.7, download the first local an zip file.

You need to log in before you can download it, just register with any email address and log in.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

After downloading and unzipping, you get some files

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Copy these files and paste them into the CUDA path you just made, replacing the original files

The default installation path for CUDA is:

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

After the copy is complete, the cuDNN installation is successful.

III. Installing PyTorch

Going back to the PyTorch page just above, notice the two circled parts in the image below, the circled part above means that Python must be 3.9 or later

If you don't have python on your computer, you can install a

python:https://www.python.org/

The bottom part is the pytorch installation command, copy it

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Bring up the command line tool, paste the command you just copied, and hit enter.

pip3 install torch torchvision torchaudio -index-url https://download.pytorch.org/whl/cu128

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Wait patiently for the installation to complete

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Now that CUDA, cuDNN, and pytorch are installed, it takes a lot less time to run the kontext workflow.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Four, other advanced settings of the Autumn Leaf starter

In fact, Autumn Leaf Launcher has a lot of useful functions integrated into it, and will use it to bring us a lot of convenience.

Enter the expert mode according to the following figure: Click on the lower left corner Settings->General Settings->Expert Mode

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

1. Change the default browser

Google Chrome is recommended here because it is the most stable browser, and if you don't have one in your computer, it is recommended to download one.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

2. python path override

Set the path to python in the installation package as shown below

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

2, check whether to install transformers and huggingface

Go back to the python folder in akiba comfyui and type cmd in the address bar and enter to bring up the command line.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Enter the command: python.exe -m pip show transformers

This command is used to check if transformers are installed.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

I have this one already installed. If yours is not installed, enter the following command to install it:

python.exe -m pip install transformers

Next, check if huggingface is installed by typing the following command

python.exe -m pip show huggingface_hub

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

I have this one already installed. If yours is not installed, enter the following command to install it:

python.exe -m pip install huggingface_hub

3. Use the same method to set the git path override

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

4. Setting up a web proxy

Make sure the port number is the same when setting up the web proxy

Then turn on the four switches behind the proxy and turn off the mirroring switch

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

Final Thoughts

In fact, the GUDA, PyTorch and xformers installation methods we talked about today can be easily done in the Autumn Leaves Integration Pack.

Find "Advanced Options -> Environment Dimension -> Install PyTorch" in the Autumn Leaves Integration Pack, and just click on the desired version for a no-brainer installation.

Of course, you'd better make sure which version your computer supports before installing it as I mentioned above.

What to do when comfyui AI painting is too slow?GUDA+cuDNN+pytorch installation to make your comfyUI take off!

That's all for today, I hope you find it helpful.

statement:The content of the source of public various media platforms, if the inclusion of the content violates your rights and interests, please contact the mailbox, this site will be the first time to deal with.
TutorialEncyclopedia

Use AI to make a free video of a beautiful woman dancing, AI beautiful woman dancing short video play details

2025-7-6 9:09:20

TutorialEncyclopedia

Easy to play with AI video production: super practical AI video skills, break through the video length limitations

2025-7-7 9:16:54

Search