- Newest
- Most votes
- Most comments
Hello,
Thank you for reaching out the repost community. Hope you are doing well.
-
Can you please check the CloudWatch logs of the endpoint(
/aws/sagemaker/Endpoints/[EndpointName] [production-variant-name]/[instance-id]) for the failed endpoint to understand why the invocations were failing? -
Since you are using a PyTorch container, it could be possible that there might be some errors related to CPU, GPU, memory utilisation based whether your model is running on GPU/CPU which may be the cause of the failure and more information can be seen from the resource utilisation metrics from the CloudWatch logs.
-
Better way identify these issues could be running the docker container in local mode on a notebook instance of same type using Sagemaker local mode where you have more visibility into above metrics/logs.
If you did not find anything in the cloud watch logs and cloud metrics, please raise a ticket to AWS Support Team for further investigation.
If you found my answer helpful in resolving your issue, please accept the answer so that it will help others facing similar issues.
answered 2 years ago
Thank you for this help But we already tried these things and they are not working and giving same error. And cloud watch logs showing Error : load model failed
answered 2 years ago
The error Error : load model failed, seems to be coming from the loading function where your model is failing to get loaded. The possible reasons could be
- The model.tar.gz is corrupted are in a different format that is not supported by the frame works.
- You can try to load the model file locally using the same model class object and try to see if that works to identify these errors.
Additional resources: https://repost.aws/knowledge-center/sagemaker-endpoint-creation-fail#:~:text=.%20For%20example%2C%20the%20code%20might%20fail%20because%20of%20the%20model_fn%20for%20PyTorch.
answered 2 years ago
We have tried the same thing still getting the same error.We also verfied the tarball and it is supooirting the framework.
answered 2 years ago
Relevant content
asked 4 years ago
asked 4 years ago
