Skip to content

APIs to retrieve model info deployed on Sagemaker

0

Hi , I have few queries regarding sagemaker. Are there any APIs that will provide-

  1. DETAILED info on the running models (instances) deployed on Sagemaker endpoint ?
  2. DETAILED info on the list of Models (+ Specification) available on Sagemaker.
  3. info on whether a specific model deployed at certain time and what’s the current status of it? (in terms of resource consumption, other Non-functional parameters…)

Thanks in advance.

1 Answer
0

Yes, there are several APIs and methods available in Amazon SageMaker to retrieve detailed information about deployed models and endpoints. Let me address your queries one by one:

  1. For detailed information on running models (instances) deployed on SageMaker endpoints: You can use the "DescribeModelPackage" API operation. This API returns comprehensive information about a specified model package, including details about the model deployed on an endpoint. It provides information such as approval description, creation and last modified times, metadata properties, and inference specifications.

  2. To get detailed information on the list of models and their specifications available on SageMaker: You can use the Model Registry feature in SageMaker. By accessing the Model Registry through either Amazon SageMaker Studio or Amazon SageMaker Studio Classic, you can view a list of all model versions within a Model Group. This provides detailed information about each model, including its specifications.

  3. For information on whether a specific model is deployed and its current status: You can use the Model Dashboard in the SageMaker AI console. This dashboard allows you to view the status and performance of your endpoints. You can see real-time graphs of various metrics such as CPU utilization, memory utilization, and disk utilization. These metrics can also be monitored in Amazon CloudWatch.

    To get this information:

    • Open the SageMaker AI console
    • Navigate to the Governance section and choose Model Dashboard
    • Select the model name of the endpoint you want to view
    • Choose the specific endpoint name

    This will provide you with detailed information about the endpoint's status, including resource consumption and other non-functional parameters.

Additionally, in Amazon SageMaker Studio, you can view and manage your SageMaker AI Hosting endpoints. You can access a list of all your endpoints, their status, and detailed information for each endpoint, including its ARN, creation time, and instance type.

These methods allow you to retrieve comprehensive information about your deployed models, available models, and their current status in SageMaker.
Sources
DescribeModelPackage - Amazon SageMaker
View the Deployment History of a Model - Amazon SageMaker
View Endpoint Status - Amazon SageMaker AI
View endpoint details in SageMaker Studio - Amazon SageMaker AI

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.