CUDA_HOME on zerogpu

hi, why I am getting this error? how can I fix it? when logging with ssh what it the su password?

CUDA_HOME environment variable is not set. Please set it to your CUDA install root
1 Like

In the Zero GPU space, the CUDA Toolkit is actually not installed.

Thanks, I did as said but strangly, still have the same error.

1 Like

It seems that this error also occurs when torch is not the CUDA version, but in the case of Zero GPU space, the CUDA version of torch should normally be installed automatically.
You may need to manually install the problem library (not torch) using subprocess.run(“pip foobar”, shell=True) after the workaround, rather than requirements.txt. I don’t know which library it is…