Try this workground: run the following code after import torch (should be fixed in 1.5): import ctypes ctypes.cdll.LoadLibrary('caffe2_nvrtc.dll')