explosion / spaCy

💫 Industrial-strength Natural Language Processing (NLP) in Python
https://spacy.io
MIT License
29.84k stars 4.38k forks source link

UserWarning: User provided device_type of 'cuda', but CUDA is not available. #9570

Closed system1system2 closed 2 years ago

system1system2 commented 2 years ago

Hi. I installed spaCy on an x86 Apple laptop without a CUDA-capable GPU as indicated in the documentation:

pip install -U pip setuptools wheel pip install -U spacy

The command triggered the installation of all necessary dependencies. In this particular case:typing-extensions, numpy, murmurhash, cymem, catalogue, wasabi, typer, srsly, smart-open, pyparsing, pydantic, preshed, MarkupSafe, blis, thinc, spacy-legacy, pathy, packaging, jinja2, spacy.

It works fine, but as soon as my Python script starts, I receive the following warning:

/usr/local/lib/python3.9/site-packages/torch/autocast_mode.py:141: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
  warnings.warn('User provided device_type of \'cuda\', but CUDA is not available. Disabling')

My Environment

polm commented 2 years ago

I guess this was created by mistake? Thanks for closing it, I'll just link in #9571 for posterity.