-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
SpaCy 3.8.2 CUDA extras are not compatible with numpy 2.0 #13681
Comments
see also #13669 |
This is a common compatibility issue due to version conflicts between spaCy, CuPy, and NumPy. Here are a few approaches you could try to resolve the issue:
pip install numpy<2.0
pip install "spacy[cuda113]" # Replace 113 with the correct version for your CUDA toolkit
pip install cupy-cuda113 # Replace 113 with your CUDA version
import spacy
conda create -n spacy-gpu-env python=3.10
One of these workarounds should help you proceed with GPU support on spaCy. Let me know if you need further guidance on any of these steps! |
We wanted to use GPUs for spacy after recently upgrading to
spacy v3.8
, but this was impossible due to conflicting requirements. Thespacy[cudaXXX]
still depend oncupy < 13.0.0
, which is incompatible with numpy 2.0. Support for this has been added incupy 13.2
back in june.How to reproduce the behaviour
Try to install
spacy[cuda12x]==3.8.2
.Details
Your Environment
The text was updated successfully, but these errors were encountered: