Extremely slow load_model times in docker container #7628
-
I am currently using spacy 2.3.2 my nlp pipeline consists of 2 text cats an NER and a custom phrase matching component which populates doc entities. I have created a custom loading function that adds then custom component to the Language.factories and the calls Docker file:
Our flask applications is failing to get scheduled on k8s because of the extreme loading times. I have ran a terminal in this docker container on my local machine where my custom wheel is installed and the result of running is
Does anyone know why there would be such a discrepancy in load times and how would go about reducing these times? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
As a quick hunch - could it be that it's the |
Beta Was this translation helpful? Give feedback.
As a quick hunch - could it be that it's the
PhraseMatcher
causing this delay in loading times? Could you experiment with leaving it out and check the times? (just to find the culprit)