Skip to content

How to debug deployed model endpoint? #362

@plynch-chwy

Description

@plynch-chwy

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions