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

"Host a Pretrained Model on SageMaker" tutorial fails with "Received server error (500) from primary and could not load the entire response body." #4551

Open
thalesfc opened this issue Feb 1, 2024 · 3 comments

Comments

@thalesfc
Copy link

thalesfc commented Feb 1, 2024

Link to the notebook

https://github.com/aws/sagemaker-python-sdk/files/14076220/deploy-v4-any-pytorch-tutorial.md

Describe the bug
"Host a Pretrained Model on SageMaker" tutorial fails with "An error occurred (ModelError) when calling the InvokeEndpoint operation: Received server error (500) from primary and could not load the entire response body."

To reproduce
follow https://sagemaker-examples.readthedocs.io/en/latest/sagemaker-script-mode/pytorch_bert/deploy_bert_outputs.html#Deploy-Model

Logs

Expected behavior

image

error seeing

image

similar post

I made a similar post under aws/sagemaker-python-sdk: aws/sagemaker-python-sdk#4395

@thalesfc
Copy link
Author

thalesfc commented Feb 1, 2024

Additionally, I was trying to add extra logging, but unfortunately i hit this other issue, described at https://repost.aws/questions/QUMB6LvtnmT9adZ7RMw90iXQ/sagemaker-inconsistently-logging-user-log-statements

@thalesfc
Copy link
Author

thalesfc commented Feb 1, 2024

Also the install part of the tutorial is broken. Those two versions are not compatible with the latest conda:

image

@zhaoqizqwang
Copy link
Contributor

Do you have the requirements.txt in code folder? https://github.com/aws/amazon-sagemaker-examples/tree/main/sagemaker-script-mode/pytorch_bert/code In my test without this file we would have this ModelError

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

2 participants