How to configure a serverless sagemaker endpoint?

0

I am expermenting with a sagemaker serverless endpoint (sample code below to create an endpoint from aws documentation). but I keep getting error when the endpoint is invoked , has anyone run into this issue - 'Error - / .sagemaker/ts/models/model.mar already exists. Please specify --force/-f option to overwrite the model archive output file' .

response = client.create_endpoint_config(
   EndpointConfigName="<your-endpoint-configuration>",
   ProductionVariants=[
        {
            "ModelName": "<your-model-name>",
            "VariantName": "AllTraffic",
            "ServerlessConfig": {
                "MemorySizeInMB": 2048,
                "MaxConcurrency": 20
            }
        } 
    ]
)
1回答
1

Hi! Can you share a screenshot of the error message and the command you run to get the error message? The reason I'm asking is that the code snippet you provided is just one part of setting up the endpoint and it might not be related to the actual error message.

AWS
Heiko
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ