-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module 'thinc_gpu_ops' has no attribute 'hash' #79
Comments
I've got the same error (I'm on Ubuntu is I was unable to get spaCy+GPU to work on Windows 10) ... OS: Ubuntu 18.04 |
Exactly the same issue here. Anxious for a resolution. |
I'm really not sure why it hasn't built correctly. If you look at the I'm pretty confident this is an installation error, it's not a bug in the actual code. If you have a look here: https://github.com/explosion/thinc_gpu_ops/blob/master/thinc_gpu_ops/__init__.py you can see that we import * from the |
Hi, I'm still unable to get spaCy working with GPU - just on Linux, failing on the above error (sorry for my previous cross-thread posting). I'm about to get some serious CUDA cards, and am wondering if training&running spaCy NLP will work & benefit with this. Would you be able to recommend the (latest) versions which work with the current version of spaCy, using Python 3 on Linux? Any detail would be useful, even which Python IDE. It seems various including me are really keen on finding a working (software) configuration. Thanks again. |
Does cupy work for you? I'm really not sure what the problem might be. On my servers, with CUDA 9.2 installed |
Here's the script I use to install CUDA and CuDNN
|
Did you set your
|
On macOS I've solved this error by first creating a symlink in the CUDA path (since the
and then run install with
@honnibal I am just documenting my process and hopefully it will provide some pointers for you to fix this problem. Maybe there is something similar happening on OP's Windows setup. |
I think the root cause is issue 1745
|
Just released v0.0.4 of |
I'm trying to use it with CUDA 10.0
???? File "C:\Users\hbb9279\AppData\Local\Continuum\anaconda3\lib\site-packages\spacy\language.py", line 346, in call |
@gerardogarciag1 The error means the library hasn't been compiled properly. Do you have a compiler installed? It may be easier to debug if you clone the |
I do not have compiler I ran the installation again Any other suggestions? |
Same error as @gerardogarciag1 but in a python 3.6 conda env on ubuntu 16.04. Spacy recognizes the gpu availability but thinc_gpu_ops seems failing to import the Cython module in
I further looked into the package installation path and found
UPDATE It seems like the compilation is not triggered by default.
|
facing the same issue .....rebuilt thinc_gpu_ops but it doesn't seem to help. @honnibal |
I'm also having this issue AttributeError: module 'thinc_gpu_ops' has no attribute 'hash'
I tried the command mentioned above
but it did not help |
I hit the same problem. I have a 2080Ti, and used the following Dockerfile, which I built in Ubuntu 18.04:
Note
I also checked my path variables, following @honnibal's advice
Happy to do more tests if they might be useful. Let me know if I can help. |
@honnibal
and i have for my cuda toolkit
and everytime I run my application with the i get the following
|
@honnibal why is this issue closed? the same issue still exists i have the same issue by the way |
Have the same error on Ubuntu with latest pip version of spaCy. There are some references on how to solve it but none of them helps to fix my case. Other GPU-dependant libraries work well (i.e. PyTorch, TensorFlow, Catboost, etc.). Could you please create some README with the most recent recommendations on how to enable GPU training? Right now it is a bit difficult to make spaCy work with GPU. |
I have the same problem. After this it's better: Before the reinstall it was False. |
I am having the same issue on Windows 7. Cuda 9.0:
Python 3.7
Successfully run spacy install with cuda for the correct version: Test if cupy is working:
Test thinc-gpu-ops:
Uninstall thinc-gpu-ops and reinstall with the command above:
Test thinc-gpu-ops one last time and Failed:
|
@honnibal - Might the
Doesn't look this reflects the directory structure of CUDA_HOME on Windows? Firstly the value for |
I have the same problem. but still no resolve
|
Has anyone resolved this? I first filed this issue in October but this thread is more lively. |
Still an issue on Windows 10. Same as above for Cuda 10.1 and cupy-cuda101 |
I think that the problem might be with the setup.py file for thinc_gpu_ops, especially for Windows but might also affect Linux distributions (at least in the github accessible 0.0.3 version) In my latest CUDA installation (10.1), the CUDA_HOME variable doesn't exist. I have CUDA_PATH and CUDA_PATH_V10_1. If you create that variable and add your CUDA installation directory, the lack of an ".exe" extension makes the CUDA variable That will later prevent the build of gpu_ops module The solution will be download the source, adapt CUDA_HOME to CUDA_PATH (or create a CUDA_HOME variable), and change nvcc to nvcc.exe for Windows compilation. I will try it tomorrow and let you know. |
I think there is a little more to it. I've attempted each/all of these
changes and am still hitting a wall. Good luck. I'd love to break through
this wall...
…On Tue, Aug 27, 2019 at 5:39 PM Miguel Muñoz ***@***.***> wrote:
I think that the problem might be with the setup.py file for
thinc_gpu_ops, especially for Windows but might also affect Linux
distributions (at least in the github accessible 0.0.3 version)
https://github.com/explosion/thinc_gpu_ops/blob/master/setup.py#L128-L130
In my latest CUDA installation (10.1), the CUDA_HOME variable doesn't
exist. I have CUDA_PATH and CUDA_PATH_V10_1.
If you create that variable and add your CUDA installation directory, the
lack of an ".exe" extension makes the CUDA variable None
https://github.com/explosion/thinc_gpu_ops/blob/master/setup.py#L146-L149
https://github.com/explosion/thinc_gpu_ops/blob/master/setup.py#L153
That will later prevent the build of gpu_ops module
https://github.com/explosion/thinc_gpu_ops/blob/master/setup.py#L203-L207
The solution will be download the source, adapt CUDA_HOME to CUDA_PATH (or
create a CUDA_HOME variable), and change nvcc to nvcc.exe for Windows
compilation.
I will try it tomorrow and let you know.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#79?email_source=notifications&email_token=AFOVOMNNQWCJ63PHG6322ELQGWNJ3A5CNFSM4F7JCO3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5JGNUQ#issuecomment-525493970>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFOVOMLFLAMGV5UIF3DOLCTQGWNJ3ANCNFSM4F7JCO3A>
.
|
@pythonBerg @mmunozm To save you some time: #92 (comment) |
This solution worked for me: https://www.gitmemory.com/issue/explosion/spaCy/3682/489917991 |
Just update to the latest release and it's fixed there. |
On Win10, thinc 6.12.0, spacy 2.0.16, cupy 4.1.0
The text was updated successfully, but these errors were encountered: