KFP pipeline job executes successfully, but upon hitting the endpoint, am getting an empty predictions array ([]). I suspect the issue is in the model upload, where the model is not registered correctly somehow. Any tips are appreciated.
Code to upload model deploy task:
#Import a model programmatically
model_upload = aiplatform.Model.upload(
display_name = DISPLAY_NAME,
serving_container_image_uri = serving_container_image_uri,
serving_container_health_route="/health_check",
serving_container_predict_route="/predict",
serving_container_ports=[8080],
serving_container_environment_variables={
"MODEL_NAME": MODEL_NAME,
},
)
Code to get predictions:
response = endpoint.predict({"user_id": 150})
# response = endpoint.predict({"instances":{"user_id": 150}})
response
Response:
Prediction(predictions=[], deployed_model_id='4656867150235959296', explanations=None)