如果開發人員有建構 Kubeflow 管道的經驗,請務必瞭解 Agent Platform Pipelines 與 Kubeflow Pipelines 的下列差異。
資料傳遞 (輸入/輸出)
- Kubeflow Pipelines SDK v1 和 Kubeflow Pipelines SDK v2 使用輸入和輸出傳遞資料的方式不同。Kubeflow Pipelines SDK v2 會區分參數和構件,兩者無法互相傳遞。詳情請參閱「Kubeflow Pipelines 管道基本概念」和「Kubeflow Pipelines 資料類型」。
網域特定語言 (DSL) 版本使用情形
Agent Platform Pipelines 可執行使用 TFX 0.30.0 以上版本建構的管道,「或」Kubeflow Pipelines SDK 2.0 版特定領域語言 (DSL)。
Kubeflow Pipelines SDK 第 2 版 DSL 適用於 Kubeflow Pipelines SDK 第 1.6 版以上版本。
Kubeflow Pipelines 可執行使用 Kubeflow Pipelines SDK 建構的管道。Kubeflow Pipelines 1.6 以上版本也可以執行使用 Kubeflow Pipelines SDK v2 DSL 建構的管道。
儲存空間
Kubeflow Pipelines 和 Agent Platform Pipelines 處理儲存空間的方式不同。在 Kubeflow Pipelines 中,您可以使用 Kubernetes 資源,例如永久磁碟區要求。在 Agent Platform Pipelines 中,資料會儲存在 Cloud Storage,並使用 Cloud Storage FUSE 掛接至元件。
在 Agent Platform Pipelines 中,您可以使用 Google Cloud 服務提供資源,例如使用 Cloud Storage FUSE,在管道步驟中將 Cloud Storage bucket 做為掛接磁碟區存取。如果 Cloud Storage URI 是
gs://example-bucket/example-pipeline,管道元件的容器可以使用 Cloud Storage FUSE,透過下列路徑存取該 URI:/gcs/example-bucket/example-pipeline。使用 Agent Platform Pipelines 執行管道時,必須在
@pipeline註解中或建立管道執行作業時指定管道根目錄。在 Kubeflow Pipelines 中,您可以選擇是否指定管道根目錄。根據預設,管道執行的構件會使用 MinIO 儲存。
Agent Platform 管道不支援的功能
Agent Platform Pipelines 不支援下列 Kubeflow Pipelines 功能。
快取到期:在 Kubeflow Pipelines 中,您可以使用 Kubeflow Pipelines SDK v1 DSL,指定快取元件執行作業在指定時間後到期。
您無法使用 Kubeflow Pipelines SDK v2 DSL,指定元件執行作業在指定時間後到期。
在 Agent Platform Pipelines 中,使用
create_run_from_job_spec執行管道時,可以透過enable_caching引數指定這項管道執行作業不使用快取。遞迴:在 Kubeflow Pipelines 中,您可以指定以遞迴方式呼叫的管道元件。
Agent Platform Pipelines 不支援遞迴呼叫的管道元件。