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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则