- Notifications
You must be signed in to change notification settings - Fork22
Deploy transformers serverless on AWS Lambda
License
NotificationsYou must be signed in to change notification settings
bhavsarpratik/serverless-transformers-on-aws-lambda
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
You need no servers
Go through thisvideo andslide deck for full info.
Current available pipelines
- classification
- sentence encoding
- translation(coming soon)
- token classification
- text generation
- zero shot classification
- ability to run transformers without servers
- complete CI/CD
- concurrency upto 1000 (default AWS limit)
- clone the repo
- keep the pipeline folder you want to use
- modify the source and tests
- keep the corresponding github action in
.github/workflows
- modify directory, registry and lambda function name in workflow
- create repository in AWS ECR
- update ECR path in the workflow
- set up secrets in repo (needed for access to AWS; this creds should have access to ECR and Lambda)
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- push the code
- create PR
- this will build the container
- run all the tests
- push container to ECR registry
- update lambda with the new container (this will not happen when you push the first time)
- create lambda function if it does not exist
- give appropriate IAM role
- set timeout and RAM
- create API in API gateway and link to lambda
Done! Now you can call the lambda using the API
About
Deploy transformers serverless on AWS Lambda
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.