Please fill out the form below.
System Information
- Framework: conda_mxnet_p36 kernel
- CPU or GPU: Deployed model, cpu
- Are you using a custom image: No
Describe the problem
I was able to successfully (no errors at least) deploy a model using a sagemaker notebook instance with the conda_mxnet_p36 kernel. I slightly modified this example and re-worked it using a MovieLens dataset. Here is my entry point code.
Trying to test a prediction with the SDK returns a ModelError/500 response and instructions to view the cloud watch logs. All I get from the cloud watch logs though is this: ERROR in serving: 'AssertionError' object has no attribute 'message'. My predict code is below
What is the best way to debug this error? I'd also like to know the best approach for updating the entry point. Do I need to re-deploy a new model with an updated script or can I edit the entry point without re-deploying?
- Exact command to reproduce:
predictor = sagemaker.mxnet.MXNetPredictor('sagemaker_name')
predictor.serializer = None
data = json.dumps({'userId':6, 'movieId':356})
predictor.predict(data)
Please fill out the form below.
System Information
Describe the problem
I was able to successfully (no errors at least) deploy a model using a sagemaker notebook instance with the conda_mxnet_p36 kernel. I slightly modified this example and re-worked it using a MovieLens dataset. Here is my entry point code.
Trying to test a prediction with the SDK returns a ModelError/500 response and instructions to view the cloud watch logs. All I get from the cloud watch logs though is this:
ERROR in serving: 'AssertionError' object has no attribute 'message'. My predict code is belowWhat is the best way to debug this error? I'd also like to know the best approach for updating the entry point. Do I need to re-deploy a new model with an updated script or can I edit the entry point without re-deploying?