spacy nlp webtrf GPU error #11330
-
On google colab, I am getting an error since yesterday. I have GPU and is detected. spacy.require_gpu() returns true. /usr/local/lib/python3.7/dist-packages/spacy_transformers/align.py in |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 13 replies
-
Thanks for the report, I tried to replicate this in colab both with and without a GPU and didn't run into this error. Can you first check if restarting the runtime fixes the problem? If it's still not working, can you provide the full code that leads to this error or an example colab notebook that shows the errors? (When copying and pasting code or error messages, please format using markdown code blocks with three backticks before and after the code.) |
Beta Was this translation helpful? Give feedback.
-
The colab code works. if nlp("test") is in the same cell , then it runs
in GPU time (0s) . However, if nlp('test') is in another cell, I get the error
…On Thu, Aug 18, 2022 at 1:30 PM Adriane Boyd ***@***.***> wrote:
One thing you can try is downgrading to spacy-transformers==1.1.7 because
it's possible one of the changes in v1.1.8 is causing this. In general,
though, if we can't replicate it it's hard for us to debug.
Just to double-check, can you run this colab notebook?
https://colab.research.google.com/drive/12lG2NQRqvjxuOuH5nD1LMGlkKqgQkczt?usp=sharing
—
Reply to this email directly, view it on GitHub
<#11330 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKBELOZWKJNQ7BC6AVVF3N3VZZXMTANCNFSM56ZLVMEQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I got the same error, see post simply replace code lines as; nlp = spacy.load('en_core_web_trf) |
Beta Was this translation helpful? Give feedback.
-
Well, it works. You can simply observe GPU Memory usage on Colab. Indeed, I work with big data mostly, roughly 5 million words corpus. Everything seems like working.
|
Beta Was this translation helpful? Give feedback.
-
@adrianeboyd I just recently ran into the exact same issue. Having run my colab notebook ~3 months ago, it now wouldn't detect the GPU, i.e.,
For me the trick was to change my installations from |
Beta Was this translation helpful? Give feedback.
Thanks for the report, I tried to replicate this in colab both with and without a GPU and didn't run into this error. Can you first check if restarting the runtime fixes the problem?
If it's still not working, can you provide the full code that leads to this error or an example colab notebook that shows the errors? (When copying and pasting code or error messages, please format using markdown code blocks with three backticks before and after the code.)