設定 Vertex AI Experiments

Agent Platform SDK for Python 和Google Cloud 控制台均支援 Vertex AI Experiments。Vertex AI Experiments 需要並依賴 Vertex ML Metadata

設定

  1. 登入 Google Cloud 帳戶。如果您是 Google Cloud新手,歡迎 建立帳戶,親自評估產品在實際工作環境中的成效。新客戶還能獲得價值 $300 美元的免費抵免額,可用於執行、測試及部署工作負載。
  2. 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 the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. 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 the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

  5. 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 the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  6. Verify that billing is enabled for your Google Cloud project.

  7. 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 the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

  8. 建立服務帳戶。請參閱「建立具備必要權限的服務帳戶」。
  9. 安裝 Agent Platform SDK for Python
  10. 檢查專案中是否有 default中繼資料儲存庫。(必要)
    • 如要查看專案是否具有 default 中繼資料儲存庫,請前往 Google Cloud 控制台的 Metadata 頁面。
    • 如果 default 中繼資料儲存庫不存在,系統會在您
      • 執行第一個 PipelineJob
      • 或者,在 Agent Platform SDK for Python 中建立第一個實驗。
        選用:如要使用 CMEK 進行設定,請參閱「設定專案的中繼資料儲存庫」。

支援的地區

「功能適用範圍」表格列出 Vertex AI Experiments 的適用位置。使用 Vertex AI Pipelines 或 Vertex AI TensorBoard 時,這些服務必須與 Agent Platform 實驗位於相同位置。

後續步驟

相關的筆記本教學課程

  1. 比較訓練及評估的模型
  2. 使用預先建構的資料預先處理程式碼訓練模型
  3. 比較管道執行作業
  4. 自動記錄