Skip to content
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

Updated generate (simple pipeline) pipeline #311

Merged
merged 8 commits into from
Jun 24, 2024

Conversation

D-Sai-Venkatesh
Copy link
Contributor

Why are these changes needed?

Updated simple pipeline generator to match current simple pipeline spec (which now supports KFP v2). Running instructions are same as the running instructions for previous pipeline generator.

Related issue number (if any).

@@ -8,4 +8,6 @@ mkdir -p ${ROOT_DIR}/${DIST_DIR}/
python3 -m venv venv
source venv/bin/activate
pip install pre-commit
python3 pipeline_generator.py -c ${DEF_FILE} -od ${ROOT_DIR}/${DIST_DIR}/
pip install jinja2
# python3 pipeline_generator.py -c ${DEF_FILE} -od ${ROOT_DIR}/${DIST_DIR}/
Copy link
Member

@roytman roytman Jun 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this line

Copy link
Member

@roytman roytman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Can you please add a Make file that will update the base_kfp_image in pipeline_definitions.yaml
  • image_pull_secret is defined in pipeline_definitions.yaml but is not propagated to the pipeline
  • can you extend the run.sh to add the argument names?


# define arguments to the Ray execution job
execute_job_params = get_execute_job_params_guf(pipeline_definitions[PIPELINE_TRANSFORM_INPUT_PARAMETERS])
pipeline_transform_input_parameters = pipeline_definitions[PIPELINE_TRANSFORM_INPUT_PARAMETERS]

component_spec_path = pipeline_parameters.get("component_spec_path", "")
if component_spec_path == "":
component_spec_path = "../../../../../kfp/kfp_ray_components/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can be wrong, usually in the DataPrep-Kit project, the Ray components are in "../../../../kfp/kfp_ray_components/".

ComponentUtils.set_s3_env_vars_to_component(execute_job, data_s3_access_secret)
execute_job.after(ray_cluster)
# Configure the pipeline level to one week (in seconds)
# dsl.get_pipeline_conf().set_timeout(ONE_WEEK_SEC)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove these two commented out lines

Copy link
Member

@roytman roytman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the PR

@roytman roytman merged commit 9bd6ff3 into IBM:dev Jun 24, 2024
17 checks passed
@roytman roytman mentioned this pull request Jun 24, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants