R
RunPod6mo ago
fireice

Can I use torch2.3.0 + cuda 11.8 on Runpod?

I want upgrade my touch version to 2.3.0, can it works on Runpod ?
16 Replies
nerdylive
nerdylive6mo ago
Hmm not sure, try it out. Why not use the current available template version of torch?
digigoblin
digigoblin6mo ago
Torch 2.3.0 works with CUDA 11.8 but I suggest using CUDA 12.1 instead
fireice
fireiceOP6mo ago
Because xformers 0.0.26 (RECOMMENDED, linux & win) Install latest stable with pip: Requires PyTorch 2.3.0. I am testing now. Traceback (most recent call last): 2024-06-05T09:04:11.388043478Z File "/runpod-volume/55fd91b5/prod/instantid/src/handler.py", line 14, in <module> 2024-06-05T09:04:11.388417474Z import diffusers 2024-06-05T09:04:11.388430521Z ModuleNotFoundError: No module named 'diffusers'. I confirm that diffusers 0.27.0 is already installed. Why does this issue always occur in serverless?
digigoblin
digigoblin6mo ago
It doesn't always occur, its specific to your installation. Maybe you installed it into a venv on a network volume or something.
nerdylive
nerdylive6mo ago
I see Check it with pip, and check if you get venv on when launching your app
fireice
fireiceOP6mo ago
ok , I will check. Dependencies are listed in the requirements.txt file,When running runpodctl project dev, don't these dependencies get automatically downloaded and installed?
Madiator2011 (Work)
xformer is kinda meh choice right now as PyTorch have native split attention
fireice
fireiceOP6mo ago
Thanks, I will check to delete xfomer or not.
Madiator2011 (Work)
You can open .txt file and put # in front of xformer example #xformers
fireice
fireiceOP6mo ago
Ok, I will check code if or not need xfomers.
Madiator2011 (Work)
I mean you can always install it and just remove version of xformers so it would install latest
fireice
fireiceOP6mo ago
xformers latest is 0.0.26,it need torch 2.3.0, but now I catch problem when i use torch2.3.0.I am checking now. Should I install requirements.txt in my prod env? or ,when I use 'runpodctl project deploy' , there dependencies will be auto installed on prod env ?
Madiator2011 (Work)
To be true havent got chance to use deploy yet
nerdylive
nerdylive6mo ago
btw fireice does the projects on runpod directly calls the handler.py without any other scripts (like .sh files)?
fireice
fireiceOP6mo ago
no other scripts,. runpod.serverless.start({"handler": handler}) in handler.py
nerdylive
nerdylive6mo ago
ohh
Want results from more Discord servers?
Add your server