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
Hi @mukeshyadav , did you import transformers in your inference.py script? If so, it might be that the container failed to install modules listed in requirements.txt.
Hi @ChuyangDeng Thanks for sharing the link, I resolved the issue but now during calling predict function getting below error:
An error occurred (ModelError) when calling the InvokeEndpoint operation: Received server error (0) from the model with message "Your invocation timed out while waiting for a response from container model. Review the latency metrics for each container in Amazon CloudWatch,
Activity
chuyang-deng commentedon Jul 21, 2020
Hi @mukeshyadav , did you import
transformersin your inference.py script? If so, it might be that the container failed to install modules listed in requirements.txt.When you init the
PyTorchModel, did you provide thesource_dirwith both inference.py and requirements.txt at the root level ofsource_dir? Here's documentation on how to include requirements.txt: https://sagemaker.readthedocs.io/en/stable/frameworks/pytorch/using_pytorch.html#using-third-party-librariesmukeshyadav commentedon Jul 27, 2020
Hi @ChuyangDeng Thanks for sharing the link, I resolved the issue but now during calling predict function getting below error:
An error occurred (ModelError) when calling the InvokeEndpoint operation: Received server error (0) from the model with message "Your invocation timed out while waiting for a response from container model. Review the latency metrics for each container in Amazon CloudWatch,
laurenyu commentedon Jul 27, 2020
Could you share your CloudWatch logs from the endpoint?