-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
segfault during predict #4156
Comments
Is it possible to provide a self-contained reproducible example? I tried to reproduce the problem from your description as follows, but this runs without error.
|
Sorry, did you try the script and pickle I provided? That is quite contained. |
I meant could you provide a script that includes the model training and pickle steps (ideally using random data or a built-in dataset from sklearn etc). That would help isolate the source of the problem. As a workaround, you could try using LightGBM's |
The predict that failed is at end of non-trivial steps. It has nothing to do with pickle itself. It's just that lightgbm segfaults with this particular model. |
I encountered a similar issue. I am deploying a lgb model within the Tornado framework. Is there a way to solve or work around this issue? Please advise. |
@peixin-lin if you could provide some additional information, we'd be happy to investigate:
|
Thanks for the reply. The details are as below:
|
Thanks for that information! I might not have been clear...I'm asking if you can actually provide here the text-format model file and a sample input data that causes prediction to segfault. That way, we could try experimenting with a heavily-instrumented version of LightGBM to try to find the source of the segfault. |
@peixin-lin can you provide a reproduce example? |
This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. Thank you for taking the time to improve LightGBM! |
This shouldn't be closed, I gave a MRE for the fitted state, should be good enough. |
@shiyu1994 can the new CUDA version run this example successfully? |
@guolinke I run the example provided by @pseudotensor successfully with both
@pseudotensor Could you please take a look at this output to see if it is the identical with your previous trials? |
Closing this due to lack of response from @shiyu1994 's post in May 2022: #4156 (comment) |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
data can be anything for predict, 1 row or whatever fails. Only special thing is extra_trees=True
lgbsegfault.pkl.zip
The text was updated successfully, but these errors were encountered: