このページでは、Vertex AI の使用を開始するために、Google Cloud プロジェクトを作成し、Vertex AI API を有効にする方法について説明します。これらのタスクを実行する権限がない場合は、プロジェクトの設定と Vertex AI の有効化を管理者に依頼してください。このページでは、ローカル開発環境で Google Cloud CLI を設定する方法についても説明します。
プロジェクトの設定
プロジェクトを設定する手順は次のとおりです。
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
Google Cloud Console の [プロジェクト セレクタ] ページで、Google Cloud プロジェクトを選択または作成します。
-
Enable the Vertex AI API.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
Update and install
gcloud
components:gcloud components update
gcloud components install beta -
Google Cloud Console の [プロジェクト セレクタ] ページで、Google Cloud プロジェクトを選択または作成します。
-
Enable the Vertex AI API.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
Update and install
gcloud
components:gcloud components update
gcloud components install beta
管理者に Vertex AI プロジェクトの設定を依頼する
このセクションでは、管理者が Vertex AI の使用に必要なロールを付与する方法について説明します。
- プロジェクトを識別するために、わかりやすいプロジェクト名とプロジェクト ID を決めます。組織に属している場合や、複数のプロジェクトを作成する予定がある場合は、プロジェクトの組織を明確にするために、どのような命名規則やフォルダ階層に従っているか、または従う可能性があるかを検討します。
- 必要なロール:
- ほとんどの Vertex AI 機能へのアクセスは、Vertex AI ユーザーの
(roles/aiplatform.user)
IAM ロールによって付与され、ほとんどの Vertex AI ユーザーはこれで十分です。Vertex AI リソースを完全に管理するには、Vertex AI 管理者の(roles/aiplatform.admin)
ロールをリクエストします。これらと他の Vertex AI ロールの違いについては、IAM を使用した Vertex AI のアクセス制御をご覧ください。 - Google Cloud で Vertex AI Workbench ノートブックを使用する場合は、プロジェクトのノートブック管理者
(roles/notebooks.admin)
IAM ロールと、プロジェクトまたは Compute Engine のデフォルト サービス アカウントのサービス アカウント ユーザー(roles/iam.serviceAccountUser)
IAM ロールの付与も管理者に依頼してください。 - さらに、必要な API を有効にするには、Service Usage 管理者
(roles/serviceusage.serviceUsageAdmin)
IAM ロールが必要です。または、管理者が最初の数ステップに沿って API を有効にする必要があります。
- ほとんどの Vertex AI 機能へのアクセスは、Vertex AI ユーザーの
- 管理者に Vertex AI API を有効にするように依頼してください。Service Usage 管理者
(roles/serviceusage.serviceUsageAdmin)
IAM ロールが付与されている場合は、自分でこれを行えます。
次のステップ
Vertex AI の概要を確認する。
Vertex AI のチュートリアルを使用する。
Vertex AI SDK for Python を使用する(Vertex AI を操作する別の方法を提供する)方法を確認する。