- Newest
- Most votes
- Most comments
Hi,
AWS SageMaker list-models ( see https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/list-models.html for CLI version - See https://boto3.amazonaws.com/v1/documentation/api/1.26.98/reference/services/sagemaker/client/list_models.html for Python) will allow you to list all models.
There is a sort-by parameter with which you can sort by creationTime.
Re. update, you can add you new model and remove the oldest one by following https://docs.aws.amazon.com/sagemaker/latest/dg/add-models-to-endpoint.html
If you need to be more sophisticated (blue/green deployment, etc.), please follow https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UpdateEndpoint.html
Finally, best practices for model deployment: https://docs.aws.amazon.com/sagemaker/latest/dg/deployment-best-practices.html
Best,
Didier
Relevant content
- Accepted Answer
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
How to 'automatically' implement this? In other words, how would the deployment pipeline know that a recent model has appeared in model registry?
Re. update, how to replace the first version with the second (I don't want two models at a time in the endpoint)?
Hi, you pipeline (after it created a new model) has to list the models active behind the endpoint. Then, using the creation time of such models, the pipeline removes the oldest model and replaces it with the newly created one.