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

tfjs-node size exceeds in aws lambda #2817

Closed
saumilsdk opened this issue Mar 4, 2020 · 2 comments
Closed

tfjs-node size exceeds in aws lambda #2817

saumilsdk opened this issue Mar 4, 2020 · 2 comments
Assignees
Labels

Comments

@saumilsdk
Copy link

TFJS Node Version
"@tensorflow/tfjs-node": "^1.5.2"

Problem:
Unable to use tfjs-node while deploying serverless project.

Function exceeds the maximum allowed size of 262144000 bytes. The actual size is 368100943 bytes.

@gbaned gbaned self-assigned this Mar 4, 2020
@gbaned gbaned assigned rthadur and unassigned gbaned Mar 4, 2020
@rthadur rthadur closed this as completed Mar 4, 2020
@rthadur rthadur reopened this Mar 4, 2020
@rthadur rthadur added the type:feature New feature or request label Mar 4, 2020
@rthadur
Copy link
Contributor

rthadur commented Mar 4, 2020

This will be a feature request , thank you

@kangyizhang
Copy link
Contributor

kangyizhang commented Mar 4, 2020

The tfjs-node library is depending on tensorflow c library(https://www.tensorflow.org/install/lang_c), which is ~300MB. It's even bigger for gpu version. There is no way to reduce the library size dramatically. You will need to increase the size limit of your serverless environment.

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

4 participants