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

How to convert a trained LGBM model to DAAL model by CPP interfaces? #2836

Open
AllenSun1024 opened this issue Jul 2, 2024 · 6 comments
Open

Comments

@AllenSun1024
Copy link

Describe the bug

  • In Python, we can simply use daal4py.get_gbt_model_from_lightgbm() to convert a trained LGBM model to oneDAL, and use daal4py.gbt_regression_prediction() to predict.
  • May I find the corresponding CPP interfaces to convert models and predict?
@razdoburdin
Copy link
Contributor

Hi, the conversion has only python implementation for now.

@AllenSun1024
Copy link
Author

Hi, @razdoburdin

Thanks for your kind reply.

Further, have your team started to implement the CPP converter interfaces?

Best,
Chao

@razdoburdin
Copy link
Contributor

Hi, @razdoburdin

Thanks for your kind reply.

Further, have your team started to implement the CPP converter interfaces?

Best, Chao

Could you please describe your use case? We don't have such plans for now.

@AllenSun1024
Copy link
Author

Hi, @razdoburdin

My use case is described below:

  • I have a LightGBM model trained through LightGBM's Python API
  • I use LightGBM's C++ API to load the pre-trained model and infer
  • To make the speed of inference faster, I need some C++ APIs which are similar to Python daal4py to convert the LightGBM model to DAL model.

Best,
Chao

@syakov-intel
Copy link

Hi @AllenSun1024 ,
On the last stage, do you have particular requirement/expectation? Is your case latency sensitive? Could you please elaborate more?

@AllenSun1024
Copy link
Author

Hi, @syakov-intel

My case is latency sensitive. I wanna use oneDAL to accelerate on Intel Xeon CPU. I think inferring on Intel Xeon CPU with oneDAL's C++ interfaces will make a great progress in speed just like Python daal4py, right?

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

3 participants