When does a GPU Matter? #9932
-
I am trying to figure out if a GPU / CUDA are beneficial if I only want to use Spacy to parse text, and not train models. Is there a benefit, or should I instead worry about getting the most CPU power? (The idea is to run spacy on a compute server.) Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
A GPU should always give increased performance (in terms of words per second processed). For CPU models this difference is noticeable but not major, for Transformers it's very significant. For Transformers particularly the difference is more exaggerated in training, but also present even if you're just doing inference. It should be easy to run the Transformers models on CPU and see if the speed is acceptable for you - for training I assume it's basically unusable. Some people have apparently been able to use it for inference, but I would assume that's the exception rather than the rule. |
Beta Was this translation helpful? Give feedback.
A GPU should always give increased performance (in terms of words per second processed). For CPU models this difference is noticeable but not major, for Transformers it's very significant. For Transformers particularly the difference is more exaggerated in training, but also present even if you're just doing inference.
It should be easy to run the Transformers models on CPU and see if the speed is acceptable for you - for training I assume it's basically unusable. Some people have apparently been able to use it for inference, but I would assume that's the exception rather than the rule.