Closed pthieu closed 1 week ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.
Environment
MacOS
Python 3.11
Virtualenv
KFP version: 2.4.0
All dependencies version:
google-cloud-aiplatform==1.38.1 google-cloud-core==2.4.1 google-cloud-pipeline-components==2.8.0
from kfp import compiler, dsl from google_cloud_pipeline_components.v1.custom_job import CustomTrainingJobOp ... @dsl.pipeline(name="Training Pipeline", description="Training pipeline on Vertex AI") def training_pipeline(datetime_suffix: str): train_ranking_job_name = "train-ranking-model" train_ranking_job = CustomTrainingJobOp( project=PROJECT_ID, display_name=train_ranking_job_name, location="us-west1", worker_pool_specs=[ { "machine_spec": { "machine_type": "n1-standard-16", "accelerator_type": "NVIDIA_TESLA_T4", # See: https://cloud.google.com/vertex-ai/docs/training/configure-compute#gpu-compatibility-table "accelerator_count": 1, }, "replica_count": "1", "container_spec": { "image_uri": RANKING_TRAIN_IMAGE, "env": [ { "name": "ENTRYPOINT_SCRIPT", "value": "trainer.ranking.task", }, { "name": "ENVIRONMENT", "value": "prod", }, { "name": "MODEL_SUFFIX", "value": datetime_suffix, }, ], }, } ], ).set_display_name(train_ranking_job_name)
from google.cloud import aiplatform from datetime import datetime
def main(request=None): if request: request = request.get_data()
raise ValueError('Value must be one of the following types: ' ValueError: Value must be one of the following types: str, int, float, bool, dict, and list. Got: "{{channel:task=;name=datetime_suffix;type=String;}}" of type "<class 'kfp.dsl.pipeline_channel.PipelineParameterChannel'>".