Skip to content

Spacy installation isn't installing correct pytorch version for gpu support on windows #8146

Discussion options

You must be logged in to vote

Yes, it's best to follow the pytorch instructions because pip can't really detect the right CUDA settings. We'd also recommend using the pytorch conda instructions in a conda venv, since that may be a better match for the rest of the environment.

Here are our general recommendations: https://spacy.io/usage/embeddings-transformers#transformers-installation

You can also install spacy from conda-forge instead, but we don't have conda-forge packages for every single extra package like spacy-transformers or spacy-lookups-data, in particular not for the pure python packages. I think transformers recently added support for conda, but similarly with their own custom directions requiring a specifi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by polm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Installation issues gpu Using spaCy on GPU
3 participants