Skip to content

About

Built docker images and deployed on ECR for Text Summarization and Named Entity Recognition using Hugging Face.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

serverless-lambda-docker

Built docker images for Text Summarization and Named Entity Recognition using Hugging Face.

Steps involved:

  • create a Python Lambda function with the Serverless Framework.
  • add the respective summarization and ner models to our function and create an individual inference pipeline.
  • Create a custom docker image for both
  • Deploy a custom docker image to Amazon ECR
  • Deploy AWS Lambda function with a custom docker image
  • Test Serverless APIs

arch

Follow the tutorial at https://www.philschmid.de/serverless-bert-with-huggingface-aws-lambda-docker to create docker images.

Huggung Face models:

Creating docker images:

Screen Shot 2022-04-15 at 12 11 55 AM

Screen Shot 2022-04-15 at 12 12 41 AM

Deploying on AWS ECR

Screen Shot 2022-04-15 at 12 13 08 AM

POST urls after deployment

Testing using Postman

Summarization

Screen Shot 2022-04-13 at 7 38 47 PM

Named Entity Recognition

Screen Shot 2022-04-13 at 8 36 38 PM

Link for the codelabs:

https://codelabs-preview.appspot.com/?file_id=1376pofyspTVM8YhhbUKDEpiNaxczACY9KN0wI6lGPEg#0

References:

  1. https://github.com/philschmid/serverless-bert-huggingface-aws-lambda-docker
  2. https://huggingface.co/dslim/bert-base-NER
  3. https://huggingface.co/sshleifer/distilbart-cnn-12-6

About

Built docker images and deployed on ECR for Text Summarization and Named Entity Recognition using Hugging Face.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages