-
Notifications
You must be signed in to change notification settings - Fork 56
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 ilab kfp pipeline to the DSPO repo #764
Add ilab kfp pipeline to the DSPO repo #764
Conversation
Skipping CI for Draft Pull Request. |
A new image has been built to help with testing out this PR: To use this image run the following: cd $(mktemp -d)
git clone [email protected]:opendatahub-io/data-science-pipelines-operator.git
cd data-science-pipelines-operator/
git fetch origin pull/764/head
git checkout -b pullrequest f41faec8325da596cf8fe63d1f17333dc0e170de
oc new-project opendatahub
make deploy IMG="quay.io/opendatahub/data-science-pipelines-operator:pr-764" More instructions here on how to deploy and test a Data Science Pipelines Application. |
Change to PR detected. A new PR build was completed. |
3 similar comments
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
api/v1/dspipeline_types.go
Outdated
// Include ilab KFP pipeline with the deployment of this DSP API Server. Default: false | ||
// +kubebuilder:default:=false | ||
// +kubebuilder:validation:Optional | ||
EnableIlabKFPPipeline bool `json:"enableIlabKFPPipeline"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's rename this (and all similar variables) to EnableInstructlabPipeline
. Its a has a little more clarity, and we should avoid using 'KFP' in DSP-specific functions like this one
@@ -105,6 +105,11 @@ spec: | |||
Server. Setting Deploy to false disables operator reconciliation. | |||
Default: true' | |||
type: boolean | |||
enableIlabKFPPipeline: | |||
default: false | |||
description: 'Include ilab KFP pipeline with the deployment of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar to above, lets remove 'KFP' and expand ilab
to Instructlab
. Perhaps include a little more context, like
Include instructlab multi-phase training and LLM generation pipeline with the deployment of this DSP API Server. Default: false
{{- end }} | ||
{{- if .EnableIlabKFPPipeline }} | ||
{ | ||
"name": "ilab-kfp-pipeline", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a human-readable name so lets give it a friendlier title, like [Instructlab] Multi-Phase Training Pipeline
{ | ||
"name": "ilab-kfp-pipeline", | ||
"description": "[source code](https://github.com/opendatahub-io/ilab-on-ocp) Ilab KFP pipeline", | ||
"file": "/pipelines/pipeline.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should name the pipeline something a little more clear than 'pipeline.yaml', ie instructlab.yaml
93e0d57
to
6977289
Compare
Change to PR detected. A new PR build was completed. |
042a446
to
6771c34
Compare
Change to PR detected. A new PR build was completed. |
@VaniHaripriya this looks good to me (though I'm new 😅 )! Could you please add an automated test? It looks like there's already test utility functions to see if a pipeline exists. For example: pipelineID, err := TestUtil.RetrievePipelineId(t, suite.Clientmgr.httpClient, APIServerURL, pipelineDisplayName)
require.NoError(t, err) |
@mprahl Thank you for reviewing, I am adding the tests as part of this RHOAIENG-16508 |
/lgtm |
/lgtm |
Agree with this, @VaniHaripriya for:
This is for e2e tests that will go here For this pr a simple test that verifies pipeline exists when dspa flag is enabled would be good to have. Since we are already deploying dspa twice (one with external data connections and one without) we can have just one configured to enable the provisioning, and test both enable/disable |
Change to PR detected. A new PR build was completed. |
2 similar comments
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
api/v1/dspipeline_types.go
Outdated
ArgoLauncherImage string `json:"argoLauncherImage,omitempty"` | ||
ArgoDriverImage string `json:"argoDriverImage,omitempty"` | ||
EnableSamplePipeline bool `json:"enableSamplePipeline"` | ||
// Include instructlab multi-phase training and LLM generation pipeline with the deployment of this DSP API Server. Default: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is user facing documentation in the CRD, we should fix the casing. Sorry for missing this before.
// Include instructlab multi-phase training and LLM generation pipeline with the deployment of this DSP API Server. Default: false | |
// Enable the Instructlab Multi-Phase Training pipeline with the deployment of this DSP API server. Default is false. |
2e7642e
to
fac0ff7
Compare
Change to PR detected. A new PR build was completed. |
d1edd08
to
7e06c07
Compare
Change to PR detected. A new PR build was completed. |
api/v1/dspipeline_types.go
Outdated
ArgoLauncherImage string `json:"argoLauncherImage,omitempty"` | ||
ArgoDriverImage string `json:"argoDriverImage,omitempty"` | ||
EnableSamplePipeline bool `json:"enableSamplePipeline"` | ||
// Enable the Instructlab Multi-Phase Training pipeline with the deployment of this DSP API server. Default is false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I didn't realize the booleans above had it formatted this way.
// Enable the Instructlab Multi-Phase Training pipeline with the deployment of this DSP API server. Default is false | |
// Enable the Instructlab Multi-Phase Training pipeline with the deployment of this DSP API server. Default: false |
api/v1alpha1/dspipeline_types.go
Outdated
ArgoLauncherImage string `json:"argoLauncherImage,omitempty"` | ||
ArgoDriverImage string `json:"argoDriverImage,omitempty"` | ||
EnableSamplePipeline bool `json:"enableSamplePipeline"` | ||
// Enable the Instructlab Multi-Phase Training pipeline with the deployment of this DSP API server. Default is false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Enable the Instructlab Multi-Phase Training pipeline with the deployment of this DSP API server. Default is false | |
// Enable the Instructlab Multi-Phase Training pipeline with the deployment of this DSP API server. Default: false |
@@ -206,8 +206,8 @@ spec: | |||
- mountPath: /etc/tls/private | |||
name: proxy-tls | |||
{{ end }} | |||
{{ if or .APIServer.EnableSamplePipeline .CustomCABundle }} | |||
{{ if .APIServer.EnableSamplePipeline }} | |||
{{ if or .APIServer.EnableSamplePipeline .CustomCABundle .APIServer.EnableInstructLabPipeline}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this if statement can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! Just a couple minor comments and then I'll approve it.
Change to PR detected. A new PR build was completed. |
e7ec310
to
5d0682e
Compare
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
@VaniHaripriya could you please squash the commits? After that, I'll go ahead and approve it! |
Signed-off-by: VaniHaripriya <[email protected]> Co-authored-by: Matt Prahl <[email protected]>
9ddf65d
to
d439d03
Compare
Thank you Matt! @mprahl |
Change to PR detected. A new PR build was completed. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mprahl The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The issue resolved by this Pull Request:
Resolves #<RHOAIENG-16507>
Description of your changes:
enableIlabKFPPipeline
(set to false by default), which can be set to true to enable the iLab KFP pipeline in the UI.Testing instructions
Provision both the Iris and InstructLab pipelines, create pipeline runs, and ensure they complete successfully.
Scenario 2:
Provision the Iris pipeline, create pipeline run, and ensure it completes successfully.
Scenario 3:
Provision the Instructlab pipeline, create pipeline run, and ensure it completes successfully.
Checklist