When I’m trying to run lesson1 in my PC, I’m getting a weird error, ie, pytorch doesn’t support this GPU anymore, I got the solution ie to use an older version of pytorch but on using older version of pytorch, torch.backends.cudnn.enabled statement gives an error that - torch.backends has no attribute cudnn
run import torch; torch.cuda.is_available(). I suspect it will return False
run nvidia-smi on your terminal. If it says command not found, you might not have installed nvidia drivers. If it returns a table with your GPU listed then you have installed the drivers. From there you can check what version of pytorch you installed (GPU or non-GPU and what CUDA version).
So, I would suggest you do the above steps to get started. If that doesn’t help, you will need to provide more information on your setup.
What OS (Windows?) - What version?
What version of Python, PyTorch (you conda or pip command on how you installed pytorch)
What version of cuda.
print nvidia-smi command output.
I would also recommend you post in PyTorch forums (https://discuss.pytorch.org/) since this looks like PyTorch install issue and not specific to Fast.AI. Hope this is useful.
I think someone in fast.ai already post a thread on PyTorch forum. The solution was build PyTorch from source and it works for me. You can go to Pytorch github page and check out how to do it.
@nok@ramesh thank You, it worked. @nok are you facing any problem on running lesson1? My PC hangs after runnung the resnet block. I’ve nvidia gpu 840M with 2 gb graphic card and 8 gb ram
I don’t believe this GPU is supported by the latest version of pytorch, and it may be that the notebooks have been updated with code that requires the latest.
i have an XPS with a 960 card and things no longer work. I’m having to do everything in AWS for the time being.
@wgpubs use this line of code- conda install pytorch=0.1.12 cuda80 -c soumith - in the environment, it worked for me (but it is consuming too much memory so my pc is freezing)