New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spacy[cuda100] installs cupy-cuda100 8.0.0b1, which has a breaking change #5193
Comments
Thanks for the report! We should restrict it (at least temporarily) to |
I agree that seems sensible for now. I've submitted #5194 which implements your suggestion. |
oh, actually I have a local fix to use cupyx instead, I'll submit it to thinc (I should have done that few days ago, sorry!) |
@svlandeg Can you post the fix in this thread because I'm also facing the same issue. |
The PR mentioned just above your comment has the fix, cf https://github.com/explosion/thinc/pull/330/files (the fix will be in spaCy from 3.0 onwards (thinc >= v8.0.0a3)) The other option, as originally posted, is to restrict your |
Hi all, I wanted to create new issues regarding this but luckly i found this which is about same topic. I have same problem when i run spacy training on gpu. I already had installed nvidia drivers and cuda 10.0. What i did to start training spacy on gpu is: Everything passed well during installations. In my code i added this: import thinc_gpu_ops rest of code is just example from spacy documentation for training. It is working on cpu. This is what i am getting when i start training on gpu: AttributeError Traceback (most recent call last) in train_spacy(data, iterations) ~/anaconda3/lib/python3.7/site-packages/spacy/language.py in begin_training(self, get_gold_tuples, sgd, component_cfg, **cfg) nn_parser.pyx in spacy.syntax.nn_parser.Parser.begin_training() _parser_model.pyx in spacy.syntax._parser_model.ParserModel.begin_training() ~/anaconda3/lib/python3.7/site-packages/thinc/check.py in checked_function(wrapped, instance, args, kwargs) ~/anaconda3/lib/python3.7/site-packages/thinc/neural/_classes/model.py in begin_training(self, train_X, train_y, **trainer_cfg) ~/anaconda3/lib/python3.7/site-packages/spacy/_ml.py in (model, X, y) ~/anaconda3/lib/python3.7/site-packages/spacy/_ml.py in init_weights(model) ~/anaconda3/lib/python3.7/site-packages/spacy/_ml.py in predict(ids, tokvecs) ops.pyx in thinc.neural.ops.CupyOps.scatter_add() AttributeError: module 'cupy' has no attribute 'scatter_add' How i can fix this, what should i do? Environment:
Thank you, |
Hi Ivan - I think the easiest way for you to fix this would be to run: pip install -U 'cupy-cuda100==7.3.0' which should downgrade your installed |
Thank you @tommilligan now it is working! |
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. |
1 similar comment
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. |
How to reproduce the behaviour
See the release notes of
cupy-cuda100==8.0.0b1
here: https://github.com/cupy/cupy/releases/tag/v8.0.0b1Runtime Error
This results in the following runtime error in my application, but I'm sure would be similarly picked up by your unit tests:
Your Environment
The text was updated successfully, but these errors were encountered: