您可以通过 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
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). 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
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.- 创建服务账号。请参阅创建具有所需权限的服务账号。
- 安装 Agent Platform SDK for Python。
- 检查您的项目中是否存在
defaultMetadata Store。(必需)- 如需查看您的项目是否具有
default元数据存储区,请前往 Google Cloud 控制台中的Metadata页面。 - 如果
default元数据存储区不存在,则系统会在以下情况下创建它- 您运行第一个 PipelineJob 时创建它、
- 或者,在 Agent Platform SDK for Python 中创建您的第一个实验。
可选:如需使用 CMEK 进行配置,请参阅配置项目的元数据存储区。
- 如需查看您的项目是否具有
支持的位置
功能可用性表列出了 Vertex AI Experiments 的可用位置。使用 Agent Platform Pipelines 或 Vertex AI TensorBoard 时,它们必须与 Agent Platform 实验位于同一位置。