Skip to content
Discussion options

You must be logged in to vote

That's a really an interesting question! Since spacy-transformers uses PyTorch, it requires the torch package. The default build of PyTorch of PyTorch includes GPU support and for that it installs these additional CUDA packages. You can avoid this by installing a CPU-only build of PyTorch. You can find more information about how to install the CPU version on the PyTorch download page. But it amounts to installing Torch from their CPU package index:

$ pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

If you install the CPU package before installing spacy-transformers, it should not download the GPU version of Torch, since the torch dependency is al…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@azeem-scienaptic
Comment options

Answer selected by danieldk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Installation issues feat / transformer Feature: Transformer
2 participants