kfp

Kubeflow Pipelines SDK

154 个版本 Python >=3.9.0
安装
pip install kfp
poetry add kfp
pipenv install kfp
conda install kfp
描述

Kubeflow Pipelines is a platform for building and deploying portable, scalable machine learning workflows based on Docker containers within the Kubeflow project.

Use Kubeflow Pipelines to compose a multi-step workflow (pipeline) as a graph of containerized tasks using Python code and/or YAML. Then, run your pipeline with specified pipeline arguments, rerun your pipeline with new arguments or data, schedule your pipeline to run on a recurring basis, organize your runs into experiments, save machine learning artifacts to compliant artifact registries, and visualize it all through the Kubeflow Dashboard.

Installation

To install kfp, run:

pip install kfp

Getting started

The following is an example of a simple pipeline that uses the kfp v2 syntax:

from kfp import dsl
import kfp


@dsl.component
def add(a: float, b: float) -> float:
    '''Calculates sum of two arguments'''
    return a + b


@dsl.pipeline(
    name='Addition pipeline',
    description='An example pipeline that performs addition calculations.')
def add_pipeline(
    a: float = 1.0,
    b: float = 7.0,
):
    first_add_task = add(a=a, b=4.0)
    second_add_task = add(a=first_add_task.output, b=b)


client = kfp.Client(host='<my-host-url>')
client.create_run_from_pipeline_func(
    add_pipeline, arguments={
        'a': 7.0,
        'b': 8.0
    })

版本列表
2.16.1 2026-05-05
2.16.0 2026-02-25
2.15.2 2025-12-03
2.15.1 2025-11-25
2.15.0 2025-11-25
2.14.6 2025-10-13
2.14.5 2025-10-09
2.14.4 2025-09-29
2.14.3 2025-08-28
2.14.2 2025-08-07
2.14.1 2025-08-05
2.13.0 2025-04-28
2.12.2 2025-04-24
2.12.1 2025-02-28
2.12.0 2025-02-27
2.11.0 2024-12-09
2.10.1 2024-11-14
2.10.0 2024-11-08
2.9.0 2024-09-09
2.8.0 2024-06-22
2.7.0 2024-02-14
2.6.0 2024-01-11
2.5.0 2024-01-08
2.4.0 2023-10-27
2.3.0 2023-09-22
2.2.0 2023-09-14
2.1.3 2023-09-06
2.1.2 2023-07-28
2.1.1 2023-07-27
2.0.1 2023-06-21
2.0.0 2023-06-20
2.0.0rc2 2023-06-09
2.0.0rc1 2023-05-16
2.0.0b9 2022-12-21
2.0.0b8 2022-11-30
2.0.0b7 2022-11-28
2.0.0b6 2022-10-18
2.0.0b5 2022-09-26
2.0.0b4 2022-09-01
2.0.0b3 2022-08-17
2.0.0b2 2022-08-10
2.0.0b17 2023-05-08
2.0.0b16 2023-05-04
2.0.0b15 2023-04-24
2.0.0b14 2023-04-12
2.0.0b13 2023-02-28
2.0.0b12 2023-02-08
2.0.0b11 2023-01-20
2.0.0b10 2022-12-29
2.0.0b1 2022-07-07
2.0.0b0 2022-06-28
2.0.0a5 2022-06-02
2.0.0a4 2022-05-25
2.0.0a3 2022-05-06
2.0.0a2 2022-04-05
2.0.0a1 2022-03-17
2.0.0a0 2022-03-16
1.8.24 2026-03-10
1.8.23 2025-08-05
1.8.22 2023-05-17
1.8.21 2023-05-04
1.8.20 2023-04-06
1.8.19 2023-02-17
1.8.18 2022-12-21
1.8.17 2022-12-09
1.8.16 2022-11-17
1.8.15 2022-11-17
1.8.14 2022-09-21
1.8.13 2022-07-11
1.8.12 2022-03-30
1.8.11 2022-01-24
1.8.10 2021-12-08
1.8.9 2021-11-04
1.8.8 2021-11-03
1.8.7 2021-10-28
1.8.6 2021-10-19
1.8.5 2021-10-12
1.8.4 2021-10-04
1.8.3 2021-09-29
1.8.2 2021-09-16
1.8.1 2021-09-10
1.8.0 2021-09-03
1.7.2 2021-08-26
1.7.1 2021-08-17
1.7.0 2021-08-07
1.6.6 2021-07-23
1.6.5 2021-07-19
1.6.4 2021-06-24
1.6.3 2021-06-03
1.6.2 2021-05-19
1.6.1 2021-05-18
1.6.0 2021-05-18
1.6.0rc0 2021-05-14
1.4.0 2021-02-03
1.4.1rc1 2021-03-18
1.4.1rc0 2021-03-18
1.4.0rc1 2021-02-01
1.3.0 2021-01-08
1.2.0 2020-12-18
1.1.2 2020-12-05
1.1.1 2020-11-12
1.1.0 2020-11-09
1.1.1rc0 2020-11-11
1.1.1b1 2020-11-26
1.1.0a1 2020-11-02
1.0.4 2020-10-22
1.0.3 2020-10-13
1.0.1 2020-09-14
1.0.0 2020-07-20
1.0.3rc1 2020-10-10
1.0.1rc1 2020-09-08
1.0.0rc5 2020-07-13
1.0.0rc4 2020-07-08
1.0.0rc3 2020-07-03
1.0.0rc2 2020-06-16
1.0.0rc1 2020-06-05
0.5.2 2021-03-02
0.5.1 2020-05-07
0.5.0 2020-04-24
0.4.0 2020-04-07
0.3.0 2020-03-23
0.2.5 2020-02-27
0.2.4.1 2020-02-20
0.2.4 2020-02-19
0.2.2.1 2020-02-11
0.2.2 2020-02-05
0.2.1 2020-02-03
0.2.0 2020-01-20
0.1.40 2020-01-09
0.1.39 2020-01-06
0.1.38 2019-12-20
0.1.37 2019-12-05
0.1.36 2019-11-27
0.1.35 2019-11-14
0.1.34 2019-11-09
0.1.33 2019-11-02
0.1.32.2 2019-10-27
0.1.32.1 2019-10-24
0.1.32 2019-10-18
0.1.31.2 2019-10-09
0.1.31.1 2019-10-01
0.1.31 2019-09-24
0.1.30 2019-09-14
0.1.29 2019-09-08
0.1.27 2019-08-22
0.1.26 2019-08-16
0.1.25 2019-07-30
0.1.24 2019-07-13
0.1.23 2019-06-28
0.1.22 2019-06-28
0.1.19 2019-05-08
0.1.18 2019-04-26
0.1.16 2019-04-11
0.1.11 2019-03-06