spaCy icon indicating copy to clipboard operation
spaCy copied to clipboard

GPU usage in inference mode

Open jonzarecki opened this issue 8 years ago • 4 comments

Is is possible to use the GPU in inference mode ? For example in the basic:

nlp = spacy.load('en')
doc = nlp('this sentence is an example')  # gpu usage here ?

I've added gpu support to spacy but it doesn't seem to do much when running these lines other than allocating some memory.

Are there any plans to add support for this ?

Your Environment

  • Python version: 2.7.12
  • Platform: Linux-4.10.0-28-generic-x86_64-with-Ubuntu-16.04-xenial
  • spaCy version: 2.0.10
  • Models: en

jonzarecki avatar Apr 01 '18 17:04 jonzarecki

@yonilx I encountered the same problem with you. Can you run inference on GPU now?

hellolovetiger avatar May 02 '18 07:05 hellolovetiger

Nope, I'm pretty sure SpaCy wasn't design to run on GPU in inference mode. At least for now.

jonzarecki avatar May 03 '18 04:05 jonzarecki

Got it,thx

hellolovetiger avatar May 03 '18 09:05 hellolovetiger

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jun 02 '18 10:06 lock[bot]