-
Notifications
You must be signed in to change notification settings - Fork 6
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
Cannot serve the first and second models on Databricks V2 serving #2
Comments
Hey @AnastasiaProkaieva - |
For the second model, I am not sure why V2 cannot serve it. There isn't enough log to determine the cause.
The second model can be served with serving V1, with some minor update in the input_json format in the mlflow 2.x style. Made a PR for these fixes: #4 |
First Part
First part of the SA contains a dff_model, this notebooks present a
XGBWrapper
, the best model that was registered.While serving encountering an error:
BAD_REQUEST: Encountered an unexpected error while evaluating the model. Verify that the serialized input Dataframe is compatible with the model for inference. Error ''XGBModel' object has no attribute 'callbacks''
The code to serve model was the following:
The input to serve was following:
I also tried with different input, but then another error was raised (which I believe is due to the bad input this time) :
BAD_REQUEST: Encountered an unexpected error while evaluating the model. Verify that the serialized input Dataframe is compatible with the model for inference. Error ‘only integers, slices (
:), ellipsis (
...), numpy.newaxis (
None) and integer or boolean arrays are valid indices’
Input was the following one:
“inputs”: [[10.0, 11500.0, 20153.38, 23000.0, 2647.55, 2.0, 0.0, 10.33, 209.4, 51.0, 0.0, 0.0, 0.0, 779.0, 0.0, 18.0, 0.0, 90.0, 10.48], [12.0, 2500.0, 2639.33, 5000.0, 2200.72, 3.0, 0.0, 12.44, 172.39, 22.0, 0.0, 0.0, 0.0, 999.0, 577.0, 781.0, 0.0, 90.0, 0.0]]}
Second part
Second part of the SA dff_orchestrator contains model serving, but it seems some libraries cannot be installed on V2 serving option - would be great to add a fix into it.
The error says:
The text was updated successfully, but these errors were encountered: