get_model Takes more too long to initialise so the endpoint times out
See original GitHub issueIn the first get_model()
call, the weight needs to be loaded and model initialized which is taking 10mins or so. The problem is that Sagemaker endpoint timeout after 60 seconds so the model never has time to initialize.
Would you have any suggestions on ways to address this?
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Azure Machine Learning Python - Model class
With the Model class, you can package models for use with Docker and deploy them as a real-time endpoint that can be used...
Read more >Model — sagemaker 2.126.0 documentation
model_data_download_timeout (int) – The timeout value, in seconds, to download and extract model data from Amazon S3 to the individual inference instance ...
Read more >SageMaker — Boto3 Docs 1.26.34 documentation
Adds or overwrites one or more tags for the specified SageMaker resource. You can add tags to notebook instances, training jobs, hyperparameter tuning...
Read more >Delaying allocation when a node leaves | Elasticsearch Guide ...
For this reason, the default timeout is set to just one minute: even if shard relocation begins, cancelling recovery in favour of the...
Read more >sagemaker — AWS CLI 1.27.36 Command Reference
If you would like to suggest an improvement or fix for the AWS CLI, check out our contributing guide on GitHub. User Guide....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the input guys, I 've ended up using threading as well but with a less refined solution than @pm3310 suggest. I will try this out and confirm.
@m4nuC Perfect solution 😉