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

Create AWS Lambda Layer with PyTorch #41

Open
nietzscheson opened this issue Mar 22, 2020 · 1 comment
Open

Create AWS Lambda Layer with PyTorch #41

nietzscheson opened this issue Mar 22, 2020 · 1 comment

Comments

@nietzscheson
Copy link
Contributor

AWS Lambda have restrictions. PyTorch is too longer. When trying to deploy the project, AWS Lambda reports the out of memory error. PyTorch weighs: 758MB.

There is PyTorch layers with other versions. It could be a problem. We need to control the versions of the dependencies that we are going to use.

An alternative is:

  • Create and publish our own layer. With the specifications that requirements the project.
  • Take PyTorch from requirements.txt and use it only in development or on Docker.

Related: #18, #20, #29, #30

@jisazaTappsi
Copy link
Contributor

We can start prototyping with this layer that its publicly available:

arn:aws:lambda:AWS_REGION:934676248949:layer:pytorchv1-py36:2

caveat: its version 1.1 of pytorch while we are using 1.4

I already checked the layer and its working!

and following this tutorial:

https://course.fast.ai/deployment_aws_lambda.html

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

No branches or pull requests

2 participants