Fastai doesn't detect the gpu in kaggle issue

Hello everybody,
I am trying to make a classification model in kaggle, kaggle is using the previous version of fastai, so i upgraded it along with torch,torchvision :
image
I import fastai :
image
when I check if am using the gpu :
image
it shows false that means it doesn’t use it
keep in mind that the gpu is activated
image
when i run this
image
i get this error :
image

Can you help me please !!
thank you in advance

You need to install the correct torch wheel for your CUDA version.

can you provide a code sample ?

Quick search would have shown this:

5 Likes

thanks it worked