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
issue with google_cloud_pipeline_components 0.1.9 ModelUploadOp ("invalid value") #6848
Comments
Here's what the set of input args looks like in the console: https://screenshot.googleplex.com/HdYMJLiz8oVhxjB |
@amygdala try configuring port as below - |
Interesting -- the api spec says: |
We spent hours trying to find an answer to this. We need better alignment between the documentation in here https://google-cloud-pipeline-components.readthedocs.io/en/google-cloud-pipeline-components-0.2.0/google_cloud_pipeline_components.aiplatform.html and here https://cloud.google.com/vertex-ai/docs/predictions/use-custom-container |
Stumbled upon this issue after more time I'd like to publicly admit. Passing the port argument as @jagadeeshi2i mentioned did the trick for me. I am now struggling to set model_upload_op = gcc_aip.ModelUploadOp(
project="and-reporting",
location="us-west1",
display_name="session_model",
serving_container_image_uri="gcr.io/and-reporting/pred:latest",
# The following is creating troubles...
serving_container_environment_variables={"MODEL_BUCKET": "ml_session_model/model},
serving_container_ports=[{"containerPort": 5000}],
serving_container_predict_route="/predict",
serving_container_health_route="/health",
) Which produces the following error:
I think SolutionCan confirm serving_container_environment_variables=[
{"name": "MODEL_BUCKET", "value": "ml_session_model/model"}
], |
with the v0.1.9 of
ModelUploadOp
I'm seeing the following error. I confirmed that things work fine in 0.1.7.PORT
is set as follows:Then, in the pipeline definition,
ModelUploadOp
is configured as follows:This is the error I see (again, I do NOT see this problem with v0.1.7):
I wondered if something has changed about the expected format of this arg, but from the documentation (
serving_container_ports (Optional[Sequence[int]]=None
) it doesn't seem so. Again, this code runs fine with 0.1.7.The text was updated successfully, but these errors were encountered: