Skip to content

Need a "tl2cgen-runtime" package to fit into AWS Lambda #46

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

Open
klaws opened this issue May 15, 2025 · 1 comment
Open

Need a "tl2cgen-runtime" package to fit into AWS Lambda #46

klaws opened this issue May 15, 2025 · 1 comment

Comments

@klaws
Copy link

klaws commented May 15, 2025

Absolutely love treelite. Was able to fit an entire XGBoost model into a 5MB package for AWS Lambda.

But...there is no "tl2cgen-runtime" the way you had a "treelite-runtime". I had to make my own by "stubbing out" scipy and sklearn. Otherwise it imports literally hundreds of megs of libraries and so cannot fit into an AWS Lambda package.

It seems like it would only be a few hours of work to either lazy-load or make a "tl2cgen-runtime" so that I can use the model without needing all the heavyweight stuff that generates the model.

Thanks for all the work on this, it's an amazing accomplishment...

@hcho3 hcho3 transferred this issue from dmlc/treelite May 15, 2025
@hcho3
Copy link
Collaborator

hcho3 commented May 15, 2025

I have not been motivated to maintain tl2cgen lately, would you like to take over?

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