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

implement wait-for-model/tool helper #168

Open
keighrim opened this issue Jul 14, 2023 · 0 comments
Open

implement wait-for-model/tool helper #168

keighrim opened this issue Jul 14, 2023 · 0 comments
Labels
▶️F Migrate to next phase

Comments

@keighrim
Copy link
Member

Because

Because some wrapper CLAMS apps use fairly large models that take a few minutes to fully load in the memory, if an app user sends POST requests during that initiation time of underlying models/tools, the app would most likely behave badly. This already has happened in clamsproject/app-dbpedia-spotlight-wrapper#3, and we'd like to make a SDK-level helper function to make sure apps don't "die" in such synchronous/asynchronous model initiation scenarios.

Done when

SDK has an implementation of

  1. external server timeout checker
  2. internal (in-memory) model readiness check
  3. and more...?

Additional context

This will be more of a problem soon, as vision-related apps are moving toward ViT-based models.

@clams-bot clams-bot added this to infra Jul 14, 2023
@github-project-automation github-project-automation bot moved this to Todo in infra Jul 14, 2023
@keighrim keighrim added the ▶️F Migrate to next phase label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
▶️F Migrate to next phase
Projects
Status: Todo
Development

No branches or pull requests

1 participant