Skip to content

MPS Device for SpaCy Transformers #12713

Discussion options

You must be logged in to vote

Hey awindsor,

If you have thinc-apple-ops installed the PyTorch models should use MPS if you run your code with the --gpu-id flag or you add spacy.require_gpu() to your code. For more information we have written a blogpost about hardware acceleration on Apple https://explosion.ai/blog/metal-performance-shaders. You can skip to the last section for usage instructions. Hope this helps!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@awindsor
Comment options

@luisjglz
Comment options

Answer selected by awindsor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf / speed Performance: speed plat / m1 Apple M1 architecture support
3 participants