-
Notifications
You must be signed in to change notification settings - Fork 32
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
No response from API when serving LightGBM model #28
Comments
Seem it's LightGBM issue related with |
I have stumbled upon the same issue, and it actually is a very big problem for R in general, as if you are developing models for production, lgb is one of the most useful libraries out there, and if you can not deploy it with Rserve, what else could one be using? Python!? |
I haven't had a chance to check your example yet. May be there is some
issue with forking - I believe lgbm use external pointers to internal C/C++
data structures. Have you tried to deploy it with RestRserve in
"cooperative" mode (this doesn't make fork for each request)? Also I
suggest to update Rserve to the latest version - 1.8.6 -
install.packages('Rserve',,'http://www.rforge.net/')
…On Fri, Jun 7, 2019 at 8:58 PM Deyan Spasov ***@***.***> wrote:
I have stumbled upon the same issue, and it actually is a very big problem
for R in general, as if you are developing models for production, lgb is
one of the most useful libraries out there, and if you can not deploy it
with Rserve, what else could one be using? Python!?
I believe RestRserve is a great contribution to the R ecosystem and the R
community should pay more attention to productionizing models using R.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABHC5XJLSRJ2UXMYOMLEVVDPZKHU5ANCNFSM4HTAUIFA>
.
--
Regards
Dmitriy Selivanov
|
@dselivanov I confirm this issue with the Rserve 1.8.6. |
Cross posted here: microsoft/LightGBM#2217 |
I'm closing this int favor of the microsoft/LightGBM#2217 - let's keep track of the issue there. |
I am trying to train a LightGBM, and then serve it using RestRServe. However after making a request to the microservice the process hangs and I receive no response. I also don't receive any error or warning messages.
Running top reveals that the forked process has been created and some memory has been allocated (In the actual workflow where I encountered the issue CPU usage by the forked process initially increases then drops to 0. In the example below CPU usage is negligible, so I couldn't track it).
Here is a minimal reproducible example:
And an example of a curl request that leads to the process hanging:
(The same example but replacing
result <- predict(bst, test$data)[1]
withresult <- 1
produces a result, so the issue must be with the predict call).It is hard to tell whether the issue relates more to RestRserve or to LightGBM, but any help tracking the cause is appreciated.
Environment info:
The text was updated successfully, but these errors were encountered: