ValueError: No GPU devices detected #12640
-
Hi, I have an issue with GPU - it seems like SpaCy does not detect any GPUs. This gives me True:
but this gives me False:
Why torch detects GPU but SpaCy does not? None of the solutions found on the Internet helped me: already tried to re-install cupy many times, downgraded the version of spacy - did not solve my issue. Maybe there is something I am missing? OS: Linux
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
spaCy and Thinc (our machine learning library) use CuPy for GPU operations. So to debug this, it is best to check what CuPy's view of the world is. What it the output of the following in your environment? I have included the output from one of our GPU machines to show what to expect: >>> import cupy
>>> cupy.cuda.runtime.getDeviceCount()
1
>>> cupy.cuda.device.Device(0)
<CUDA Device 0> |
Beta Was this translation helpful? Give feedback.
This usually means that the CUDA libraries are not correctly installed on the machine,
libcudart
is a library from the CUDA toolkit and CuPy uses the system-provided CUDA.