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

Add additional step to pipeline to generate a metrics report #241

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MichaelClifford
Copy link
Collaborator

This PR adds a new step to the end of the pipeline,generate_metrics_report_op. The purpose of this step is to create a number of kfp Mertic artifacts that can help users easily compare the performance between different runs using the compare runs feature of the Data Science Pipeline UI.

eval/final/components.py Outdated Show resolved Hide resolved
@MichaelClifford MichaelClifford force-pushed the metrics branch 3 times, most recently from cad432f to 8a6be72 Compare December 19, 2024 21:50
@MichaelClifford
Copy link
Collaborator Author

@tumido updated the PR to use PVC's instead of interim output artifacts.

pipeline.py Outdated Show resolved Hide resolved
eval/final/components.py Outdated Show resolved Hide resolved
eval/mt_bench/components.py Outdated Show resolved Hide resolved
eval/mt_bench/components.py Outdated Show resolved Hide resolved
eval/final/components.py Outdated Show resolved Hide resolved
eval/final/components.py Outdated Show resolved Hide resolved
eval/final/components.py Outdated Show resolved Hide resolved
eval/final/components.py Show resolved Hide resolved
eval/final/components.py Outdated Show resolved Hide resolved
eval/final/components.py Show resolved Hide resolved
eval/final/components.py Outdated Show resolved Hide resolved
eval/final/components.py Outdated Show resolved Hide resolved
eval/final/components.py Show resolved Hide resolved
eval/final/components.py Outdated Show resolved Hide resolved
eval/mt_bench/components.py Outdated Show resolved Hide resolved
Copy link
Member

@tumido tumido left a comment

Choose a reason for hiding this comment

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

I have one last suggestion, otherwise LGTM. 👍 🙌

@@ -463,6 +484,21 @@ def pipeline(
model_pvc_delete_task = DeletePVC(pvc_name=model_pvc_task.output)
model_pvc_delete_task.after(final_eval_task)

generate_metrics_report_task = generate_metrics_report_op()
generate_metrics_report_task.after(output_mt_bench_task, final_eval_task)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this requires to be run after output_mt_bench_task. That task only uploads artifacts. In fact both output_mt_bench_task and generate_metrics_report_task can run in parallel, they only read the same data.

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.

3 participants