siboehm / lleaves

Compiler for LightGBM gradient-boosted trees, based on LLVM. Speeds up prediction by ≥10x.
https://lleaves.readthedocs.io/en/latest/
MIT License
354 stars 29 forks source link

C/C++ Api support #72

Closed Bacteriaphage closed 7 months ago

Bacteriaphage commented 7 months ago

Thanks for your amazing work! I am wondering whether we have any C/C++ API to use the compiled model. Because we are targeting faster prediction, it probably makes sense to load the compiled model and run the prediction with C/C++ instead of python, so the time intensive applications can use this smoothly.

siboehm commented 7 months ago

https://lleaves.readthedocs.io/en/latest/development.html#interfacing-with-a-compiled-model-in-c