Error Loading Spacy pickle model to gpu #13277
-
I am trying to load spacy pickled model using spacy.load("path/model.pkl") as I wanted to use gpu. spacy.prefer_gpu() Above code giving me error. The data type of the model is spacy.lang.en.English, despite this I am getting error. Could you please suggest - how to use gpu to load the model to gpu and how to use it efficiently for inference? Your Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Do you get the same error without the |
Beta Was this translation helpful? Give feedback.
-
Hi Team, Thank you for the suggestion. The following approach worked in my case. I had model in .pkl format. I converted the model into spacy compatible format by using to_disk function. ,( .pkl file converted into multiple folder structure which was spacy gpu compatible) Aftar that I followed the same procedure that you recommended. Thank you. |
Beta Was this translation helpful? Give feedback.
Hi Team, Thank you for the suggestion. The following approach worked in my case.
I had model in .pkl format. I converted the model into spacy compatible format by using to_disk function. ,( .pkl file converted into multiple folder structure which was spacy gpu compatible) Aftar that I followed the same procedure that you recommended. Thank you.