Vertex AI Pipelines は GCP の MLOps 基盤で、Kubeflow Pipelines (KFP) v2 と TFX をマネージド実行します。 Continuous Training (CT)、Model Registry、Model Monitoring、Feature Store と組み合わせて完全な MLOps を構築できます。
| レベル | 特徴 | 必要なツール |
|---|---|---|
| 0 | 手動 (Notebook で学習・デプロイ) | Vertex AI Workbench |
| 1 | パイプライン自動化、CT (Continuous Training) | + Pipelines、Model Registry、Feature Store |
| 2 | CI/CD/CT 全自動 (Github Push → 再学習 → デプロイ) | + Cloud Build、Cloud Deploy、Model Monitoring |
from kfp import dsl, compiler
from kfp.dsl import component, pipeline, Input, Output, Model, Dataset
@component(base_image="python:3.11", packages_to_install=["pandas", "scikit-learn"])
def load_data(output_data: Output[Dataset]):
import pandas as pd
df = pd.read_csv("gs://my-bucket/train.csv")
df.to_csv(output_data.path, index=False)
@component(packages_to_install=["scikit-learn", "joblib"])
def train(data: Input[Dataset], model: Output[Model]):
import pandas as pd, joblib
from sklearn.linear_model import LogisticRegression
df = pd.read_csv(data.path)
clf = LogisticRegression().fit(df.drop("y", axis=1), df["y"])
joblib.dump(clf, model.path)
@pipeline(name="train-pipeline")
def my_pipeline():
data_op = load_data()
train_op = train(data=data_op.outputs["output_data"])
compiler.Compiler().compile(my_pipeline, "pipeline.json")
# 実行
from google.cloud import aiplatform
aiplatform.PipelineJob(
display_name="my-run",
template_path="pipeline.json",
pipeline_root="gs://my-bucket/pipelines",
).run()| 項目 | 料金 |
|---|---|
| Pipeline 実行 | $0.03/run |
| Worker (n1-standard-4) | $0.19/h |
| GPU (T4) | +$0.35/h |
| Endpoint (オンライン予測) | $0.10/h (n1-standard-2)〜 |
| Model Monitoring | $0.34/M analyzed instances |
| 項目 | Vertex AI Pipelines | SageMaker Pipelines | Azure ML Pipelines | MLflow + Databricks |
|---|---|---|---|---|
| SDK | KFP v2 / TFX | SageMaker Python SDK | Azure ML SDK | MLflow |
| OSS 互換 | ◎ (KFP OSS) | △ | △ | ◎ (MLflow OSS) |
| Model Registry | ◎ | ◎ | ◎ | ◎ |
| Monitoring | ◎ | ◎ | ◎ | ○ |
Vertex AI Pipelines と Kubeflow Pipelines の関係は?
Vertex AI Pipelines は Kubeflow Pipelines (KFP) v2 のマネージドサービス。KFP SDK で書いたパイプラインをそのまま Vertex 上で実行可能。
TFX との違いは?
TFX は TensorFlow 中心の ML パイプライン、KFP は汎用 (PyTorch / scikit-learn 等)。Vertex AI Pipelines は両方サポート、KFP がより主流。
料金体系は?
Pipeline 実行 $0.03/run + Worker (Vertex AI Training インスタンス時間)。安価で MLOps 始めやすい。
MLOps の成熟度レベルは?
Google 提唱の 0/1/2 レベル: Level 0 = 手動、Level 1 = 自動化、Level 2 = CI/CD/CT (Continuous Training)。Pipelines は Level 1〜2 の中核。
Continuous Training (CT) はどう実装する?
Cloud Scheduler / Pub/Sub トリガー → Vertex AI Pipelines 起動 → 学習 → 評価 → Model Registry 登録 → Endpoint デプロイ。Feature Store と組み合わせ。
Model Monitoring はある?
Vertex AI Model Monitoring で予測分布ドリフト、特徴量ドリフト、データ品質を自動検出。閾値超過で Pub/Sub 通知 → 再学習トリガー。
AWS SageMaker Pipelines との比較は?
SageMaker Pipelines は SageMaker 統合、Vertex AI Pipelines は KFP オープン互換 + GCP 統合。OSS 移植性は Vertex が優位。
Cloud Composer との使い分けは?
Pipelines = ML 専用、Composer = 汎用ワークフロー。ML 中心なら Pipelines、データ ETL + ML 混在なら Composer。両方併用も。
関連記事・MLOps / Vertex AI
Vertex AI Feature Store 完全ガイド|新版 (BigQuery ベース)・MLOps (GCP)
Google Cloud Vertex AI Feature Store の全機能解説。2024 新版 (BigQuery ベース)、Online / Offline Store、Feature View、Point-in-time Lookup、Embedding 保存、料金、SageMaker Feature Store 比較を網羅。
Vertex AI 入門|Google Cloud 統合 ML プラットフォームの全機能 (GAIL/PMLE/PCD 必須知識)
Google Cloud Vertex AI の入門解説。Vertex AI Studio / Agent Builder / Model Garden / Search / Pipelines / Training の全機能、Gemini モデルファミリー (Pro/Flash/Ultra)、Azure OpenAI との比較、料金体系、Responsible AI 機能を日本語で整理。
Vertex AI Agent Builder 完全ガイド|Conversational Agents・Vertex AI Search・Tool Use (GCP)
Google Cloud Vertex AI Agent Builder の全機能解説。Conversational Agents (Dialogflow CX 後継)、Vertex AI Search、Tool Use、Grounding、Playbook、料金、ChatGPT GPTs / Copilot Studio 比較を網羅。
Vertex AI Model Garden 完全ガイド|Claude・Llama・Gemini・Imagen 統合 (GCP)
Google Cloud Vertex AI Model Garden の全機能解説。Gemini / Imagen / Chirp、Anthropic Claude、Llama / Mistral / Gemma 等 100+ モデル、Fine-tuning、料金、AWS Bedrock 比較を網羅。
※ Google Cloud、Vertex AI は Google LLC の商標です。最新情報は Vertex AI Pipelines 公式 をご確認ください。
NicheeLab編集部
データエンジニアリング・クラウド資格の専門家。Databricks・Snowflake等の認定資格を保有し、実務経験に基づいた問題作成・解説を行っています。NicheeLab運営。
Google Cloud (GCP) 認定資格ロードマップ 2026 完全版|全 15 試験を体系化
Google Cloud 認定資格 全 15 試験 (Foundational 2 + Associate 3 + Pr...
Cloud Digital Leader (CDL) 完全ガイド|出題範囲・学習リソース・合格戦略
Google Cloud Cloud Digital Leader (CDL) の完全ガイド。6 ドメイン 92 bul...
Generative AI Leader (GAIL) 完全ガイド|Google Cloud 生成 AI 認定
Google Cloud Generative AI Leader (GAIL、2025-05-14 リリース) の完全...
Vertex AI 入門|Google Cloud 統合 ML プラットフォームの全機能
Google Cloud Vertex AI の入門解説。Vertex AI Studio / Agent Builde...
GCP Associate Cloud Engineer (ACE) 完全ガイド|試験範囲・受験料・学習ロードマップ
Google Cloud Associate Cloud Engineer (ACE) の試験範囲・受験料 125 US...