【问题标题】:Rasa NLU model loading takes significant amount of timeRasa NLU 模型加载需要大量时间
【发布时间】:2020-02-11 19:45:26
【问题描述】:

我在我的用例中单独使用 rasa nlu。我正在使用 rasa.nlu.model.Trainer 训练 rasa 模型,并使用 rasa.nlu.model.Interpreter 加载模型。我有 5+ 种不同的 nlu 模型。

我有以下问题,

  1. 模型加载大约需要 35 到 40 秒。所以对于 5 个模型,它是 200 秒。我想更快地加载模型。
  2. 所以,我打算用泡菜转储。并试图加载。在这种情况下,我收到以下错误。

    TypeError: can't pickle _thread.RLock objects

我正在使用 Rasa 1.5.3。

任何帮助将不胜感激。提前致谢

【问题讨论】:

    标签: performance rasa-nlu rasa


    【解决方案1】:

    @Seeni 这里是关于 SO 的一个相关问题,它解决了类似的查询。 总之,supervised_embeddings 管道应该花费最少的时间来加载您的训练模型。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-22
      • 1970-01-01
      相关资源
      最近更新 更多