Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce latency in lazy initialization #278

Open
FelipeAdachi opened this issue Mar 26, 2024 · 0 comments
Open

reduce latency in lazy initialization #278

FelipeAdachi opened this issue Mar 26, 2024 · 0 comments

Comments

@FelipeAdachi
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant