You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After this pr, models are lazily initialized when the first prediction occurs. That leads to the cached artifacts being retrieved for every prediction, which adds latency. Also, this means that the latency for downloading models is added in the first prediction, rather than the module initialization, which could be done at building time.
We should more extensively test to assess how much latency it adds, and think of ways to trigger the initialization outside of an actual request.
The text was updated successfully, but these errors were encountered:
After this pr, models are lazily initialized when the first prediction occurs. That leads to the cached artifacts being retrieved for every prediction, which adds latency. Also, this means that the latency for downloading models is added in the first prediction, rather than the module initialization, which could be done at building time.
We should more extensively test to assess how much latency it adds, and think of ways to trigger the initialization outside of an actual request.
The text was updated successfully, but these errors were encountered: