xgboost: Python predict() does not work with multiprocessing
Related:
It has been reported that the predict() function in the Python interface does not work well with multiprocessing. We should find a way to allow multiple processes to predict with the same model simultaneously.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (5 by maintainers)
Is there any update on this. It seems that this is complete stoper from using xgb on Production…?
Thanks for reminding. Let’s see if I can get to this at the weekend.
A quick update on this, thread safe prediction/inplace-prediction are now supported.
Hi, the inplace predict is an alternative to using multi-process. The hang is caused by fork safety issue in libgomp in gcc, which we cannot fix. Please take a look at https://github.com/dmlc/xgboost/issues/7044#issuecomment-1039912899 for a potential workaround and more background.
On 11/20/22 21:48, Evan Sangaline wrote: