Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Encountered error: 'XGBModel' object has no attribute 'gpu_id'

Hi,

I was deploying an XGBoost model with GridSearchCV using Vertex AI Workbench Notebook. The model was successfully deployed, but when I tried to predict instances, it resulted an error:

500 {"detail":"The following exception has occurred: AttributeError. Arguments: (\"'XGBModel' object has no attribute 'gpu_id'\",)."}

I didn't specify any GPU parameters in the model, therefore I could not solve the issue. Anyone can help?

1 REPLY 1

Hi, do you know how to fix it now?