Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce PyTorch project bundle size to be able to deploy to Lambda #30

Open
franciscohanna92 opened this issue Mar 22, 2020 · 4 comments
Labels

Comments

@franciscohanna92
Copy link
Collaborator

The project is too heavy to run on AWS Lambda. It throws the following error when trying to deploy:

STDERR: ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device

Torch is the heaviest dependency. Almost 800MB.

@nietzscheson
Copy link
Contributor

AWS have a service: https://aws.amazon.com/es/pytorch/ locally we could use the PyTorch Docker image. In production the AWS service...

@elcronos
Copy link
Owner

Hmm we could have sage maker for that but it's a bit expensive. We will use it just if it's the last option.

@ajhenaor
Copy link

What about dockerizing the model and deploying it using AWS ECS?

@aenriquerg
Copy link

aenriquerg commented Mar 22, 2020

Lamdbas will last until we reach a high traffic (it will become expensive). We should consider basing the architecture on AWS ECS, so it can help to handle cost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants