I am unable to use CUDA (gpu) with my pytorch (locally),
Because Fastai downgrades pytorch to use cpu (instead of GPU).
Following the Live coding 1,2 lectures, after installing Fastai, my pytorch downgraded to use cpu.
So I tried to reinstall Pytorch ( by first removing pytorch : mamba uninstall pytorch
But when i tried this, It removes fastai library + its packages too, because of its dependency with pytorch.
SO after reinstalling pytorch, I had to reinstall fastai using : mamba install -c fastchan fastai
Which again downgrades my pytorch to use cpu.
May just try to install the with CUDA version of PyTorch using Pip. I think Mamba and Anaconda will install/uninstall all dependencies as you are seeing. On my Windows laptop, I was able to use Pip to reinstall PyTorch with CUDA after installing fast.ai.
Try to install 2nd instance of the Linux. I understood that Youāre anxious about lose your data. Having 2nd Ubuntu will make you freely to experiment. At new instance, that should go by this order:
Install packet manager and python
Check CUDA version that support your GPU (if NVIDIA)
Install Pytorch for Linux and Conda with a command:
I already tried the approach you written, after doing rm -rf to everything .
and i checked the CUDA version using nvidia-smi and installed the compatible version with mamba. But then once i install fastai it downgrades pytorch to use cpu ā¦
**pip method not working in linux . So how to remove Pytorch ,without removing fastai. This is the main issue to resolve. So that i could reinstall pytorch.