-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support pipeline parameter definition by interacting with dsl.Pipeline #1942
Comments
do you mean that we can run a pipeline by passing the parameter into pipeline? for example, we load a pipeline file, then run the pipeline with new parameters? I have done this before, I can send a pr for this. |
Actually a bit of different. Currently through the signature of the pipeline function, we can define pipeline parameters. However, pipeline function signature is immutable in itself. If we further need to specify the pipeline parameter (not only their runtime values) in a more programmatical way, some alternatives are needed. |
I see, you mean that user can add more parameters to the pipeline ? |
Yes. But this feature is not of high priority, though.
…On Mon, Sep 9, 2019, 10:56 PM Mingjie Tang ***@***.***> wrote:
I see, you mean that user can add more parameters to the pipeline ?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1942?email_source=notifications&email_token=ACJIYGRWMJJYKWFDVUAJSE3QI4ZIJA5CNFSM4IPEMPHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6J5NUY#issuecomment-529782483>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACJIYGTVBVJKWANOWB2KYB3QI4ZIJANCNFSM4IPEMPHA>
.
|
|
That would be ideal if we can support that without interacting with dsl.Pipeline. However I couldn't think of an easy way to that. |
Let me give another look. I think we have some publc APIs that can be used currently. Maybe I don't need to directly manipulate dsl.Pipeline |
Are we planning to take dsl.Pipeline private? If so, why? pipelines/sdk/python/kfp/dsl/_pipeline.py Line 54 in a4fa1ed
Of course, having a simple interface and having the SDK generate the dsl.Pipeline is great for new users. However, exposing the full control of the Pipeline can unblock advanced users for custom scenarios. |
I'm good with either private or public dsl.Pipeline. However I feel like we need a way to do something like (tentatively, did not carefully think it through) |
thanks @num |
Added an API in #2082, which allows users to generate the workflow spec of the pipeline in a programmable way. Marked as fixed for now. |
Currently the only way to define pipeline params in KFP dsl is through the signature of the pipeline function. A more systematic and dynamic way is needed to support use cases where the set of pipeline parameters are passed from external.
Example:
TFX's KFP dag runner
The text was updated successfully, but these errors were encountered: