R
RunPod10mo ago
zole2271

Any template with python 3.9.* or how to install it

I wanna install https://www.kernl.ai/how-to-guides/get-started/#optimize-a-model and it required python 3.9.* is it possible to install this version of python somehow or there is an template with this python version?
Get Started - kernl.ai
Kernl is an open source project that optimizes and accelerates your PyTorch model
8 Replies
justin
justin10mo ago
Use a venv The templates are usually python 3.10, but i think they can create lower venv in older versions
zole2271
zole2271OP10mo ago
How?
justin
justin10mo ago
start up a pytorch template on runpod gpu pod go to jupyter labs server + turn on the terminal; or any method ud like to access the terminal and follow steps here: https://chat.openai.com/share/0eca19a8-e530-4692-84b2-835da4a7af30 If u are confused further about venv, resources like: https://www.phind.com/search?home=true Can help u out too Just note that there is no sudo in runpod if it asks u to do sudo, just remove the sudo part as u are already the admin
zole2271
zole2271OP10mo ago
I think it installed it ok. apt update apt install python3.9 apt install python3.9-venv python3.9 -m venv venv1 source venv1/bin/activate Thanks for the help
justin
justin10mo ago
yea ur best bet moving forward definitelty is phind / chatgpt if any issues, that what i use for any sort of installation issues / stuff like that haha, and if still stuck can obvs ask here if ppl know #⛅|gpu-cloud glad could help 🙂 gl
zole2271
zole2271OP10mo ago
I will use this, for simple things really helps i used before to create html, but did not know it can actually help with installs Complete install: apt update apt install python3.9 apt install python3.9-venv python3.9 -m venv venv1 source venv1/bin/activate apt install python3.9-dev pip install 'git+https://github.com/ELS-RD/kernl' However, as all optimisation i have tried, the optimised model is slower that without any optimisation.
justin
justin10mo ago
yea tbh cant comment on why but interesting haha
zole2271
zole2271OP10mo ago
Yeah, this one is 0.7 second without and 0.9 secs with optimization 🙂
Want results from more Discord servers?
Add your server