SYSTEM
OS: Ubuntu 18.04
Python version: 3.6.8
Torch version: 1.0.0
GPU: Quadro 4000
Cuda: 8.0
NVIDIA Driver: 390
I am using the transformers framework to retrain a NLP model. Ultimately, I get the following error:
RuntimeError: cuda runtime error (48) : no kernel image is available for execution on the device at /pytorch/aten/src/THC/generic/THCTensorMath.cu:238

From what I can gather, pytorch finds the GPU, but says it is too old.
 Found GPU0 Quadro 4000 which is of cuda capability 2.0.
    PyTorch no longer supports this GPU because it is too old.

However, that is a warning. What I read was that the gpu is no longer supported by pytorch (despite cuda working with the gpu and this version of pytorch is recommended for cuda 8.0). I was wondering if there were a remedy to this problem (other than getting a new gpu)? I have read on here that it might be possible to build pytorch from source, but I have no idea how to do that.
Any guidance is much appreciated. Thanks in advance!