Installing pytorch without a gpu

i have an unsupported Nvidia GPU (Nvidia NVS 4200M), so i uninstalled the installed version of pytorch and then installed it with

conda install pytorch torchvision -c soumith

i read somewhere that the above command installs a CPU-only compatible binary but still when i am trying to run my model with fast ai i am getting the error

THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1532502421238/work/aten/src/THC/generic/ line=15 error=48 : no kernel image is available for execution on the device

Use conda install pytorch-cpu torchvision-cpu -c pytorch

This is the version which doesn’t use gpu


Noticed that there is no pytorch-cpu macOS binaries. Is there a reason for that?

Yes, for Mac there are no pre-built binaries with CUDA support, so they are CPU-only per default.

Aha. But I guess it would make sense to provide pytorch-cpu, just to make it easier to have a single crossplatform requirements.txt.