amazon-sagemaker-examples icon indicating copy to clipboard operation
amazon-sagemaker-examples copied to clipboard

Cannot Create Sagemaker Model for Multi-Model Enpoint. AWS docker images do not contain the required Docker Label

Open ctmckee opened this issue 3 years ago • 2 comments

Describe the bug This can be recreated from the AWS Console (I also confirm this occurs when calling sagemaker.model.Model.deploy()).

Using AWS Console choose Create Model (Sagemaker/Inference/Models page):

  1. set "Container input options" : "Provide model artifacts and inference image location"
  2. set "Provide model artifacts and inference iamge options" : "Use multiple models"
  3. set "Location of inference code image" as: "763104351884.dkr.ecr.us-west-2.amazonaws.com/tensorflow-inference:2.1.0-gpu" (i also tried 2.3.1 and 2.7.0, both gave same error)
  4. set "Location of model artifacts" : "I set the s3 prefix to location of my tensorflow .tar.gz models"
  5. Click Create Model

The AWS Console returns this error: ValidationException Your Ecr Image 763104351884.dkr.ecr.us-west-2.amazonaws.com/tensorflow-inference:2.1.0-gpu does not contain required com.amazonaws.sagemaker.capabilities.multi-models=true Docker label(s).

ctmckee avatar Apr 13 '23 21:04 ctmckee

Seeing the same issue here.

kevoriordan avatar Apr 14 '23 16:04 kevoriordan

AWS support responded that the above route only supports AWS CPU docker images. They directed me to the following repos demonstrating how to host multiple TF models on a GPU endpoint, using a SageMaker Triton Inference server.

https://github.com/aws/amazon-sagemaker-examples/blob/main/sagemaker-triton/TensorFlow/Deploy-TensorFlow-Model-Using-NVIDIA-Triton.ipynb https://github.com/aws/amazon-sagemaker-examples/tree/main/multi-model-endpoints

ctmckee avatar Apr 27 '23 17:04 ctmckee