Apple Macbook Pro M1 use GPU


I have issues using the GPU on the new macbook pro with the M1 GPU.


import spacy

activated = spacy.require_gpu()
nlp = spacy.load('en_core_web_sm')

throws an error

Traceback (most recent call last):
  File "/Users/..../PycharmProjects/test/", line 5, in <module>
    activated = spacy.require_gpu()
  File "/Users/.../PycharmProjects/test/venv/lib/python3.7/site-packages/thinc/", line 187, in require_gpu
    raise ValueError("GPU is not accessible. Was the library installed correctly?")
ValueError: GPU is not accessible. Was the library installed correctly?

And not finding support to run spacy on the GPU.

Thanks in advance!

Hi! We try to keep this forum very focused on Prodigy, so for general questions around spaCy, the discussion forum is usually a better place: Discussions · explosion/spaCy · GitHub

Also, make sure you've checked the docs on installing spaCy for GPU, and test that your GPU is accessible via cupy: