Hey Matthew,
I don’t know if this is the place to ask this, but I am trying to run ner.batch-train
on a GCE instance, with a GPU. I have followed your script to pretty much the line. However, when I come to running batch-train I get the error below:
Exception ignored in: <bound method Stream.__del__ of <cupy.cuda.stream.Stream object at 0x7ff6db28cc88>>
Traceback (most recent call last):
File "cupy/cuda/stream.pyx", line 161, in cupy.cuda.stream.Stream.__del__
AttributeError: 'Stream' object has no attribute 'ptr'
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/mitch/spacy-env/lib/python3.6/site-packages/prodigy/__main__.py", line 331, in <module>
controller = recipe(*args, use_plac=True)
File "cython_src/prodigy/core.pyx", line 211, in prodigy.core.recipe.recipe_decorator.recipe_proxy
File "/home/mitch/spacy-env/lib/python3.6/site-packages/plac_core.py", line 328, in call
cmd, result = parser.consume(arglist)
File "/home/mitch/spacy-env/lib/python3.6/site-packages/plac_core.py", line 207, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/home/mitch/spacy-env/lib/python3.6/site-packages/prodigy/recipes/ner.py", line 526, in batch_train
baseline = model.evaluate(evals)
File "cython_src/prodigy/models/ner.pyx", line 458, in prodigy.models.ner.EntityRecognizer.evaluate
File "cython_src/prodigy/models/ner.pyx", line 460, in prodigy.models.ner.EntityRecognizer.evaluate
File "/home/mitch/spacy-env/lib/python3.6/site-packages/spacy/language.py", line 548, in pipe
for doc, context in izip(docs, contexts):
File "/home/mitch/spacy-env/lib/python3.6/site-packages/spacy/language.py", line 572, in pipe
for doc in docs:
File "nn_parser.pyx", line 374, in pipe
File "nn_parser.pyx", line 400, in spacy.syntax.nn_parser.Parser.parse_batch
File "/home/mitch/spacy-env/lib/python3.6/site-packages/spacy/util.py", line 238, in get_cuda_stream
return CudaStream() if CudaStream is not None else None
File "cupy/cuda/stream.pyx", line 158, in cupy.cuda.stream.Stream.__init__
File "cupy/cuda/runtime.pyx", line 331, in cupy.cuda.runtime.streamCreate
File "cupy/cuda/runtime.pyx", line 334, in cupy.cuda.runtime.streamCreate
File "cupy/cuda/runtime.pyx", line 144, in cupy.cuda.runtime.check_status
cupy.cuda.runtime.CUDARuntimeError: cudaErrorUnknown: unknown error
Using:
Ubuntu 18.06
Prodigy 1.7.1
Spacy 2.0.18
cupy 5.4.0
cuda 9.2
cudnn 9.2
I can’t really workout where I have gone wrong, other than a different spacy to what you used?
Cheers,
Mitch