-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
'cupy.core.core.Indexer' has no attribute '__reduce_cython__' #4287
Comments
This sounds very similar to this problem, which was caused by the wrong version of cupy: https://stackoverflow.com/questions/53953623/attributeerror-type-object-cupy-core-core-broadcast-has-no-attribute-reduc Could you run |
It is weird. Because it was in the container. As I described, I could not install it via Dockerfile. But after the container was built, I could. |
I think the reason is that when you download the model while you're building the container, it will execute spaCy in the Dockerfile (and that seems to fail because of a cuda version mismatch). If you're not downloading a model, spaCy itself won't be executed during setup. I don't know how you've configured your Dockerfile, but it seems to use your GPU, so you might want to install spaCy via |
Thanks @ines . I am attaching my Dockerfile.
I have the following variables: Currently, the following configurations have been tested and worked: I am also surprised that spacy[cuda100] would work in a CUDA 10.1 container. In addition, I still don't quite understand why I could install spacy and download after the container was built. |
It turns out that if I changed the default Docker runtime to NVIDIA runtime, |
Personally I think you can try to remove the dependency to CUDA for |
Glad it's working now! Thanks for sharing the details and your Dockerfile. And there's not really a "CUDA dependency". spaCy's machine learning library Thinc uses |
Thanks @ines for some of the details. So the nvidia container |
Hi all, So I do no see what to do.... It is bad as I am doing the coding test to see if I have a chance to work at Rasa... :-( Thanks Best regards Jerome |
Try the Docker container and the tricks I provided above. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
How to reproduce the problem
To download the Spacy language model in Dockerfile, an error occurs:
However, without downloading en in the Dockerfile, the image could be created successfully. Then I could download the en without problem.
Your Environment
The text was updated successfully, but these errors were encountered: