Comfyui not using GPU, how to fix this?

We are running in instance of Comfyui and it's using CPU and not GPU, using a 4090. How can this be fixed?
54 Replies
Madiator2011
Madiator20115mo ago
Check if your pod is not running in 0 GPU Mode
lightnlense
lightnlenseOP5mo ago
It is running on a 4090.
No description
nerdylive
nerdylive5mo ago
Yep What's ur comfyui args
Madiator2011
Madiator20115mo ago
btw I just made better comfy ui template that not breaks on extensions instalation #Better ComfyUI - CUDA12
digigoblin
digigoblin5mo ago
I don't think that GPU utilization metric is 100% accurate and it also not real-time, better to use nvidia-smi to check GPU utilization
lightnlense
lightnlenseOP5mo ago
When using the Better Comfy Setup and I connect to port 7777 it says "GPU 0 NVIDIA GeForce RTX 4090"
nerdylive
nerdylive5mo ago
Yes thats normal... whats your point
lightnlense
lightnlenseOP5mo ago
I don't know. It's still using the CPU. I'm not sure where to look for the comfy args, other then using the log on Runpod, but there is nothing there that would indicate anything useful.
nerdylive
nerdylive5mo ago
whats your workflow like check the comfy docs Why do you think it's using the cpu??
lightnlense
lightnlenseOP5mo ago
Workflow works fine locally Because I have the crystools Nodepack and it shows it's using the CPU And it takes forever. On my local 4090 it's done in 10 seconds.,
lightnlense
lightnlenseOP5mo ago
No description
nerdylive
nerdylive5mo ago
create a new pod maybe that pod has a problem?
lightnlense
lightnlenseOP5mo ago
Already tried that
nerdylive
nerdylive5mo ago
report it to the contact support if it does
digigoblin
digigoblin5mo ago
Do you see anything in the ComfyUI logs?
digigoblin
digigoblin5mo ago
This looks fine
No description
digigoblin
digigoblin5mo ago
Not sure whats with xformers not being available tho, but that shouldn't cause it not to use GPU. It could impact generation times tho. Does your local have xformers installed? "pytorch version: 2.3.1+cu121" this could be a problem for xformers, there is no compatible xformers for torch 2.3.1.
nerdylive
nerdylive5mo ago
try your local files to a pod if you want to replicate it and install the same packages as your local
digigoblin
digigoblin5mo ago
can't install xformers if its installed on local have to reinstall torch only 2.3.0 is compatible with xformers not 2.3.1
lightnlense
lightnlenseOP5mo ago
I don't think my local instance has xformers installed but I'm not sure. it's not in the start up file.
digigoblin
digigoblin5mo ago
activate local venv and then:
pip3 freeze
pip3 freeze
then you can compare the versions otherwise also
pip3 show torch
pip3 show xformers
pip3 show torch
pip3 show xformers
nerdylive
nerdylive5mo ago
wow didn't know pip freeze exists its cool hahahah
lightnlense
lightnlenseOP5mo ago
Once I can find terminal in this new backend you got it
nerdylive
nerdylive5mo ago
Huh? which backend did you mean
lightnlense
lightnlenseOP5mo ago
It's not a jupyter notebook so finding the terminal is more difficult. THe port 7777
digigoblin
digigoblin5mo ago
code-server
nerdylive
nerdylive5mo ago
ohh try to screenshot the left menu bro maybe i can help pointing it out
lightnlense
lightnlenseOP5mo ago
No description
nerdylive
nerdylive5mo ago
No other bottom ones? i thought there are like 3-4 buttons on the bottom left?
lightnlense
lightnlenseOP5mo ago
No description
nerdylive
nerdylive5mo ago
try pressing the bottom left blue one
lightnlense
lightnlenseOP5mo ago
No description
nerdylive
nerdylive5mo ago
search command or cli there or terminal maybe full screen screenshot?
lightnlense
lightnlenseOP5mo ago
No description
nerdylive
nerdylive5mo ago
try exploring the left side menu section then hahah
lightnlense
lightnlenseOP5mo ago
haha I've been trying XD
digigoblin
digigoblin5mo ago
Menu -> Terminal -> New Terminal
lightnlense
lightnlenseOP5mo ago
thank youuuu
nerdylive
nerdylive5mo ago
where is the files button btw
digigoblin
digigoblin5mo ago
I meant menu not files
nerdylive
nerdylive5mo ago
oh that top left one?
lightnlense
lightnlenseOP5mo ago
torch is 2.3.1 hamburger icon
nerdylive
nerdylive5mo ago
how bout on your local?
lightnlense
lightnlenseOP5mo ago
I'm trying. It's being obnoxious.
nerdylive
nerdylive5mo ago
whats up?
lightnlense
lightnlenseOP5mo ago
Trying to use stuff like "pip3 show torch" in the terminal and it's just throwing errors.
nerdylive
nerdylive5mo ago
what errors?
lightnlense
lightnlenseOP5mo ago
In just the basic terminal in C it's saying it's not found but I'm pretty sure I would have to have it to make comfy work and CUDA to do it's thing.
nerdylive
nerdylive5mo ago
pip list try that maybe your torch is in env but you didn't activate it yet?
lightnlense
lightnlenseOP5mo ago
New verison of pip is available so I have pip installed.
Madiator2011 (Work)
xformers is not need as pytorch2.0+ has already better memory optimization btw my template requires cuda 12.1+
BROKKOLI
BROKKOLI4mo ago
Runpod SD ComfyUI, same problem here, GPU Utilization stays at 0%
Want results from more Discord servers?
Add your server