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년 전

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

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

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

관련 콘텐츠