R
Runpod4mo ago
Huski

RunPod + ComfyUI Setup Help (Torch 2.4)

Hi all! I need some help setting up my RunPod environment using this template: ComfyUI with Manager inst. Permanent Disk torch2.4 I’m using Network Storage. With the old Torch 2.2 template, I just ran ./run_gpu.sh and everything worked fine. Now with Torch 2.4, I get errors about missing modules like aiohttp, safetensors, etc. Even if I install them, they disappear when I shut down and restart the pod. I’m looking for someone who can help me configure the environment properly, make sure everything installs and works as expected, and do a quick check to confirm all is running smoothly. Please DM me if you'd be so kind to help me🙏
29 Replies
Dj
Dj4mo ago
Could you try switching to this https://canary.discord.com/channels/912829806415085598/1364178138048893019/1364178138048893019 template if you don't have any data in your Network Storage drive?
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
Huski
HuskiOP4mo ago
@Madiator2011 perhaps sir you could answer these few questions since you posted about this template, thank you very much
Dj
Dj4mo ago
In that Discord message you'll see two templates linked. The first one ("Regular Template") does not require you to use a 5090. PyTorch Nightly is 2.8, it's not released yet. FileBrowser is just a web ui to help users download files from inside their pods without the terminal :)
Huski
HuskiOP4mo ago
@Madiator2011 do you mind If I can ask you a couple of questions here or in DM?
Madiator2011 (Work)
do not ask if you can ask just ask 🙂
Huski
HuskiOP4mo ago
thank you I'm experimenting on some workflows and I was thinking about using a less expensive GPU like the A4500, just to see if there are errors n stuff; after having the workflow ready, I would like to use a more powerful GPU to just run the workflow and do some batch renders of images and videos.. and I was thinking about using a more powerful GPU like the 5090. (I'm a novice) So my questions are the following: - Should I choose the 5090 optimized template for this use case? with that template will I be able to also run other gpus with less advanced CUDA versions? - last thing, about the Pytorch version, having a Nightly version for the optimized template can mean having some issues on Checkpoints, Loras or other assets, because it's still an experimental version? Maybe the best option could be to go with the Regular Template and for batch rendering use a GPU that's less powerful than the 5090.. What would you do in my position? Thank you very much for your help
Madiator2011 (Work)
so the regular template would work on all gpu's expect 5090 for 5090 will wait till supports get merged to stable PyTorch as nightly version can cause unknow issues
Huski
HuskiOP4mo ago
perfect, I'll go with the regular then, thank you!! one last thing, I already have a network storage that I've used with another template previously, is it safe to just use that storage with this Regular Template? or is it better to just create one new? first option would be better because I have a lot of checkpoints, Loras and workflows already installed there
Madiator2011 (Work)
yup slim template was made to not colide with other templates you should be able to transfer checkpoints dirs manually. For custom nodes you will need reinstall dependency most likely
Huski
HuskiOP4mo ago
gotcha, so the checkpoints,Lora etc.. folders will not be directly available on the new template's directory? even if they are currently present in the network storage
Madiator2011 (Work)
so if you deploy template it will create new folder on workspace that inside of it will be ComfyUI folder and venv after new install is done you can use mv command to move everything to new folder
APZ
APZ4mo ago
Hi, I'm mounting your slim template but the cloudflare tunnel won't work
APZ
APZ4mo ago
It stucks on that
No description
APZ
APZ4mo ago
It looks like a torch error Traceback (most recent call last): File "/workspace/madapps/ComfyUI/main.py", line 135, in <module> import comfy.utils File "/workspace/madapps/ComfyUI/comfy/utils.py", line 24, in <module> import safetensors.torch File "/workspace/madapps/ComfyUI/.venv/lib/python3.12/site-packages/safetensors/torch.py", line 11, in <module> def storage_ptr(tensor: torch.Tensor) -> int: ^^^^^^^^^^^^ AttributeError: module 'torch' has no attribute 'Tensor'
Madiator2011
Madiator20114mo ago
did you let template install first?
Huski
HuskiOP4mo ago
hi @Madiator2011 I’m using your template, however I’m constantly running into Out of Memory issues. My template crashes completely when VRAM hits 100%. It seems like the VAE decoder hits OOM, but instead of handling it (like switching to tiled mode), it just crashes the whole instance. It looks like the template I’m using doesn’t have any mechanism to prevent or recover from OOM errors, could you help me?
Madiator2011
Madiator20114mo ago
Hmm? Tried restarting pod
APZ
APZ4mo ago
Anyone can give some advice on a working template for ComfyUI? All the ones I'm trying are giving me the Cloudflare Bad Gateway error
Huski
HuskiOP4mo ago
Hi @papaerai I'm having a lot of troubles in Installing Sageattention.. would it be possible to have this template with Sageattention properly installed?🙏 I'm currently using this template: 🖥️ Regular Template - For most GPUs (CUDA 12.4)
Madiator2011 (Work)
@Huski what error you getting did you activated venv first?
Huski
HuskiOP4mo ago
yeah, basically says that Torch is not installed, but it actually was.. and for some reason I wasn't able to correctly install SageAttention
Madiator2011
Madiator20114mo ago
would need see full error
Huski
HuskiOP4mo ago
If I use a Network Storage that I've used with the Better ComfyUI Standard template and a 4090, will it cause issues if I switch to the 5090 optimized workflow, and a 5090 card?
Madiator2011
Madiator20114mo ago
slim templates are separate ones
Huski
HuskiOP4mo ago
would it be possible to add Sageattention to the template as well? it's a very useful optimization
Madiator2011
Madiator20114mo ago
You can install it into the venv
Huski
HuskiOP4mo ago
just to be sure, all these GPU will work in the 5090 template? just because sometimes to experiment I'll just choose a less expensive one
No description
Madiator2011
Madiator20114mo ago
Yup if you use filter and pick cuda 12.8 my templates are to use with network storage as it installs comfyui it should install once and then start

Did you find this page helpful?