-
Notifications
You must be signed in to change notification settings - Fork 33
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
lleaves costs too much memory #28
Comments
Interesting, not a problem that I have encountered before. Your settings look fine. Some ideas / questions:
|
@siboehm 1. Yes. OOM during compilation. I have tried setting |
I'm still thinking about this but here are my current conclusions:
So my advice would be:
If it is true that the OOM error occurs on the line that I mentioned in Conclusion (3), then I'd consider this an edgecase of lleaves usage (your model.txt is enormous) and not something I'll mitigate in the near future. |
@siboehm |
Just a note for myself: The way to fix this problem would be to split the model internally into functions (blocks of trees iteration over data), to ensure that every call to lleaves contains exactly N function calls. Then I can disable inlining for these N functions, meaning they're compiled independently (=much less memory demand than one large function), and the cost is still reasonable (a few function calls per |
I have similar memory issues. I'm compiling forests with 500 trees and 250 leaves per tree on a 32GB machine. The compilation time is way too long and I run out of memory.
|
same on my side. I have a forest of 3000+ trees (30Mb+), and compilation never ends (what would be an estimated compilation time for this running in a 16Mb memory machine? I build the project locally and noticed that it got stucked on the optimization part. |
Thanks for your great work.
I want to try it out, but the memory consumption is staggering. I can't use it on a machine with 32G memory, out of memory will occur
Is there something I haven't set right?
The text was updated successfully, but these errors were encountered: