siboehm / lleaves

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

C/C++ Api support #72

Closed Bacteriaphage closed 9 months ago

Bacteriaphage commented 9 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 9 months ago

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