Skip to content

sandipmukherjee/Sagemaker-container-mode-deployment

Repository files navigation

Deploy a custom model with Sagemaker container mode

We use DIS segmentation model wrapped in a service with option to deploy in sagemaker Below is the link to the model https://github.com/xuebinqin/DIS

The repo contains

  1. Option to start the service locally
  2. Deploy the model in Sagemaker
  3. CI/CD pipeline to trigger tests and deploy on pull request comment.

Starting the service locally

  1. Please put the saved model in src/saved_model before building docker image docker build -t dis-segmenter .

docker run -p 8080:8080 --rm dis-segmenter serve

Improvements

  1. The classifier should have test for all the method including loading and predictions
  2. Will implement api level testing to test the input and output formats of endpoints
  3. Would do the model loading on application startup and not on first request
  4. will implement the ping health check for sagemaker endpoints
  5. Use typing in all places and do mypy check
  6. Use object models (pydantic, cattr) for request and response data models.

About

Deploy custom model with docker container in Sagemaker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published