UserWarning: User provided device_type of 'cuda', but CUDA is not available. #9571
-
Hi. I installed spaCy on an x86 Apple laptop without a CUDA-capable GPU as indicated in the documentation:
The command triggered the installation of all necessary dependencies. In this particular case: It works fine, but as soon as my Python script starts, I receive the following warning:
I did nothing to indicate that this is a CUDA device so I'm a bit puzzled by the outcome. How can I disable the attempt to use CUDA? Thank you My Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 15 replies
-
You seem to be using a transformers pipeline, but you don't mention installing What does your code look like? Are you just calling Also note that while it is technically possible to use the Transformers models without a GPU, it is not recommended. You'll have a better time getting started with the CPU models. If you want to switch to Transformers later you can just swap them out, preferably on a machine with a GPU. |
Beta Was this translation helpful? Give feedback.
-
I had the same error using pytorch 1.10 in CPU, I am using 1.8 LTS instead and I dont have the error anymore. |
Beta Was this translation helpful? Give feedback.
-
Hi. I have a similar question. |
Beta Was this translation helpful? Give feedback.
-
I made a test. trf result: _1 lg result: |
Beta Was this translation helpful? Give feedback.
You seem to be using a transformers pipeline, but you don't mention installing
spacy-transformers
. Do you havespacy-transformers
installed?What does your code look like? Are you just calling
spacy.load
?Also note that while it is technically possible to use the Transformers models without a GPU, it is not recommended. You'll have a better time getting started with the CPU models. If you want to switch to Transformers later you can just swap them out, preferably on a machine with a GPU.