您可以通过 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 实验位于同一位置。