AI Cloud Architect

LLM optimization integration for Amazon SageMaker Python SDK

AWSBlog post by Dan Ferguson, Hrushikesh Gangur, Mona Mona and Muzart TumanAWS Artificial Intelligence Blog

The Amazon SageMaker Python SDK v3 now exposes generative AI inference recommendations in Amazon SageMaker AI directly in your notebook. Benchmark an endpoint, generate data-driven deployment recommendations, and deploy the recommended configuration without leaving your notebook workflow.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

The SageMaker Python SDK v3 (3.17.0+) lets you benchmark an endpoint, get ranked deployment recommendations for generative AI models, and deploy the top configuration from a notebook.

Who it is for

Teams deploying generative AI models on SageMaker AI who want to pick instance and serving settings from a notebook instead of the console.

Key points

  • Requires sagemaker 3.17.0 or later; the recommendation and benchmark features are under sagemaker.serve.ai_inference_recommender.
  • Recommendations are also available in the SageMaker AI UI and Boto3 APIs.
  • Example benchmark used a synthetic workload with concurrency 1 and 10 requests on ml.g6.2xlarge; the post does not give pricing for the new features.

Timeline

  1. What it explainsAmazon SageMaker AI launches optimized generative AI inference recommendations · AWS · AnnouncementAlso published by AWS Artificial Intelligence Blog
  2. Explained inStreaming benchmark and recommendation results to MLflow with Amazon SageMaker AI · AWS · How-to
  3. This postLLM optimization integration for Amazon SageMaker Python SDK
  4. What it explainsNew agent skill: Amazon SageMaker optimized generative AI inference for your coding agent · AWS · Announcement

Go deeper