Agent Platform SDK for Python 和Google Cloud 控制台均支援 Vertex AI Experiments。Vertex AI Experiments 需要並依賴 Vertex ML Metadata。
設定
- 登入 Google Cloud 帳戶。如果您是 Google Cloud新手,歡迎 建立帳戶,親自評估產品在實際工作環境中的成效。新客戶還能獲得價值 $300 美元的免費抵免額,可用於執行、測試及部署工作負載。
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the required API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles.-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the required API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles.- 建立服務帳戶。請參閱「建立具備必要權限的服務帳戶」。
- 安裝 Agent Platform SDK for Python。
- 檢查專案中是否有
default中繼資料儲存庫。(必要)- 如要查看專案是否具有
default中繼資料儲存庫,請前往 Google Cloud 控制台的Metadata頁面。 - 如果
default中繼資料儲存庫不存在,系統會在您- 執行第一個 PipelineJob,
- 或者,在 Agent Platform SDK for Python 中建立第一個實驗。
選用:如要使用 CMEK 進行設定,請參閱「設定專案的中繼資料儲存庫」。
- 如要查看專案是否具有
支援的地區
「功能適用範圍」表格列出 Vertex AI Experiments 的適用位置。使用 Vertex AI Pipelines 或 Vertex AI TensorBoard 時,這些服務必須與 Agent Platform 實驗位於相同位置。