Closed ballcap231 closed 1 year ago
Hi @ballcap231 ,
Thank you for using Amazon SageMaker.
We don't support public PyTorch images at this point. Also have you tried PyTorch 1.5.1
.
The image you trying to use is from PyTorch 1.5.1 here: https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/image_uri_config/inferentia-pytorch.json#L5
Closing as answered. Feel free to reopen if needed or continue the discussion.
Describe the bug I am using PytorchModel to deploy a sagemaker endpoint. I define it using PytorchModel() and I feed in a string for image_uri and leave framework_version and py_version blank. Since this seems to be the suggested steps to take as shown:
https://sagemaker.readthedocs.io/en/v1.16.3/sagemaker.pytorch.html#sagemaker.pytorch.model.PyTorchModel
To reproduce Start new sagemaker kernel with conda_pytorch_latest_py36 and execute the code.
MY PIP ENVIRONMENT:
Expected behavior I expected this code to execute with no errors. I am passing in a string in the image_uri as requested so I don't understand why it's complaining about type error. I also tried replacing image_uri='GIBBITY GLOBBITY GOO HARRY POTTER' and It returned the same error above- i.e. TypeError.
If I replace PytorchModel() with:
Then it deploys with no problem and can predict correctly. As such, I concluded I may be feeding into image_uri incorrectly?
Screenshots or logs Error when executing code above:
System information A description of your system. Please provide: Amazon Linux AMI 2018.03 ID_LIKE="rhel fedora" I am using the default conda_pytorch_latest_py36 kernel provided by AWS sagemaker notebooks using ml.r5.xlarge instance types
Additional context
Ultimately, my GOAL IS TO DEPLOY ANY Sagemaker Endpoint that can predict using Pytorch version > 1.5. Here are some other steps I attempted, but don't receive the same bug error above.
I also tried including all 3 (image_uri, framework_version, and py_version) and it seems to work: However, I can't seem to get any image to work:
Returns this error:
Returns:
Returns: