Skip to content

Size of spacy-transformers on x86_64 amd is huge. #13411

Closed Answered by svlandeg
srikamalteja asked this question in Help: Installation
Discussion options

You must be logged in to vote

Thanks! That clarifies things for me as I don't get these nvidia libraries installed on my machine.

So this must be due to how PyTorch gets installed - looks like it's installing the latest Pytorch 2.2.2 for Cuda 12.1.

Instead of relying on spacy[transformers] to pull in torch, I would suggest to install it beforehand, so you can customize how that happens. Then afterwards spaCy will skip it if it's already present in the environment.

If you look at the instructions over at https://pytorch.org/, there is a CPU version of the pip install command that might be relevant to you, for 2.2.2 on Linux with Pip this should be:

pip3 install torch torchvision torchaudio --index-url https://download.…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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 srikamalteja
Comment options

You must be logged in to vote
1 reply
@svlandeg
Comment options

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
2 participants