I am using rasa nlu alone for my usecase. I am training the rasa model using rasa.nlu.model.Trainer and loading the model using rasa.nlu.model.Interpreter . I have 5+ different nlu models.
I have below issues,
Model loading takes nearly 35 to 40 secs. So for 5 models, its 200 secs. I would like to load model faster.
So, i planned to dump using pickle. And tried to load. In that case i am getting the following error.
TypeError: can’t pickle _thread.RLock objects
i am using Rasa 1.5.3.
Any help would be highly appreciated. Thanks in advance
Rasa isn’t designed to load multiple models at one time though, each model should have a different server running.
Right, I suspect you’re maybe using spacy in your pipeline? That takes a little longer to load. However, is the loading time a big issue? Because that should only need to be done once on startup