Sagemaker Asynchronous Endpoint Configuration

0

We deployed a LighGBM Regression model and endpoint using Sagemaker Jumpstart. We have attempted to configure this endpoint as 'asynchronous' via the console. Receiving Error: ValidationException-Network Isolation is not supported when specifying an AsyncInferenceConfig.

Looking at the model's network details the model has Enable Network Isolation set as 'True'. This was default output setting set by JumpStart.

How can we diasble Network Isolation to in order to make this endpoint asynchronous?

1개 답변
1
수락된 답변

Vanilla SageMaker "Models" (as opposed to versioned ModelPackages) are immutable in the API with no "UpdateModel" action... But I think you should be able to create a new Model copying the settings of the current one.

I'd suggest to:

  1. Use DescribeModel (via boto3.client("sagemaker").describe_model(), assuming you're using Python) to fetch all the parameters of the existing JumpStart model such as the S3 artifact location and other settings
  2. Use CreateModel (create_model()) to create a new model with same configuration but network isolation disabled
  3. Use your new model to try and deploy an async endpoint

Probably you'd find the low-level boto3 SDK more intuitive for this task than the high-level sagemaker SDK's Model class - because the latter does some magic that makes typical build/train/deploy workflows easier but can be less natural for hacking around with existing model definitions. For example, creating an SMSDK Model object doesn't actually create a Model in the SageMaker API, because deployment instance type affects choice of container image so that gets deferred until a .deploy() call or similar later.

AWS
전문가
Alex_T
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인