Cannot Create Sagemaker Model for Multi-Model Enpoint. AWS docker images do not contain the required Docker Label
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):
- set "Container input options" : "Provide model artifacts and inference image location"
- set "Provide model artifacts and inference iamge options" : "Use multiple models"
- 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)
- set "Location of model artifacts" : "I set the s3 prefix to location of my tensorflow .tar.gz models"
- 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).
Seeing the same issue here.
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