Closed kiarash-rezahanjani closed 1 year ago
Looking through similar issues, found the following which might be related but I am not entirely sure atm: https://github.com/rapidsai/cuml/issues/4715 -> https://github.com/rapidsai/cuml/pull/4752
Thanks for reporting this, @kiarash-rezahanjani! XGBoost changed its JSON format in version 1.7, and we have not yet updated to a Treelite version which supports it. We should be able to get that updated in version 23.01. I'm going to update the title of this issue as a reminder to myself to make sure the update goes through and to update documentation accordingly.
Oh, and I almost forgot: As a workaround, you should still be able to use XGBoost's binary format for serialization for now. Treelite should have an update shortly that will make it more robust to changes in XGBoost's JSON schema, so this hopefully won't crop up again too often.
Great! Thanks for the quick update @wphicks
Just adding a +1 here as I ran into the exact same thing: xgboost==1.7.1
with tritonserver docker version at 22.08. I'll use the binary format as a serialization workaround for now.
Thanks very much for your patience on this @kiarash-rezahanjani and @tylerhutcherson. The RAPIDS 22.12 release is not quite out yet, but I went ahead and created #314 so we can build and test with it as soon as it's available. Once that PR passes CI, I'll point you to instructions for building locally in case you need this right away. Otherwise, the fix should appear in the 23.01 Triton release.
Hi,
I am trying to load and serve an XGBoost (regressor) model serialized as JSON and I am receiving the following error when starting the server:
Here is the setup used:
Running tritonserver docker
version==22.11
locally on macOSDirectory structure:
config.pbtxt
content:The model is serialized using xgboost==1.7.1 and was verified as follows:
Note:
Creating instance xgboost_regressor_0 on CPU using artifact ''
. That does not seem to be the case as removing the model file causesNo such file or directory
xgboost.model
format ( and settingmodel_type: xgboost
in model conf) works as intended.I am curious if I am missing something in my setup or if this could be a bug ? I would be happy to share the model artifact or the code to generate it.
Thanks