Finetuned spacy-transformers Inference on CPU #12771
-
Hello there, To detect entities, I fine-tuned a Spacy NER model using
Version:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's a really an interesting question! Since
If you install the CPU package before installing |
Beta Was this translation helpful? Give feedback.
That's a really an interesting question! Since
spacy-transformers
uses PyTorch, it requires thetorch
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:If you install the CPU package before installing
spacy-transformers
, it should not download the GPU version of Torch, since thetorch
dependency is al…