Improve loading time of multiple models #9067
Replies: 2 comments 1 reply
-
You code took 15s on my machine, but if I change this line:
to be like this:
It took 5s instead. So maybe try that? |
Beta Was this translation helpful? Give feedback.
-
@polm thanks for the advice, I am now using blank instead. Interestingly, I've added a print to show how much time each model took to load:
And these are the results: Somehow the French model is very slow. This is what i have installed: Any idea why is that? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using spacy to split sentences using the 'sentencizer' model.
I am loading a model for any of the following languages:
"zh", "da", "nl", "en", "fr", "de", "it", "pt", "ru", "es", "xx"
Loading these models one by one took on my pc about 55 seconds.
Making it parallel using a thread pool took about 51 seconds.
My code:
Is there any way to make it load faster?
Beta Was this translation helpful? Give feedback.
All reactions