Hello World Pipeline
Create your first pipeline
Last updated
Create your first pipeline
Last updated
To get started with the tutorials, pip install kfp
v2:
Here is a simple pipeline that prints a greeting:
You can to YAML with the KFP SDK DSL :
The and decorators turn your type-annotated Python functions into components and pipelines, respectively. The KFP SDK compiler compiles the domain-specific language (DSL) objects to a self-contained pipeline .
The client will print a link to view the pipeline execution graph and logs in the UI. In this case, the pipeline has one task that prints and returns 'Hello, World!'
.
In the next few sections, you’ll learn more about the core concepts of authoring pipelines and how to create more expressive, useful pipelines.
You can submit the YAML file to a KFP-conformant backend for execution. If you have already deployed a and obtained the endpoint for your deployment, you can submit the pipeline for execution using the KFP SDK . The following submits the pipeline for execution with the argument recipient='World'
: