Vertex AI の Qwen モデルは、API としてフルマネージド モデルとサーバーレス モデルを提供します。Vertex AI で Qwen モデルを使用するには、Vertex AI API エンドポイントにリクエストを直接送信します。Qwen モデルはマネージド API を使用します。インフラストラクチャをプロビジョニングしたり、管理する必要はありません。
レスポンスをストリーミングして、エンドユーザーのレイテンシを軽減できます。ストリーミング レスポンスでは、サーバー送信イベント(SSE)を使用してレスポンスを段階的にストリーミングします。
使用可能な Qwen モデル
Vertex AI で使用できる Qwen のモデルは次のとおりです。Qwen モデルにアクセスするには、Model Garden のモデルカードに移動します。
Qwen3 Coder(Qwen3 Coder)
Qwen3 Coder(Qwen3 Coder
)は、高度なソフトウェア開発タスク用に開発された大規模なオープンウェイト モデルです。このモデルの主な特徴は、大きなコンテキスト ウィンドウです。これにより、大規模なコードベースを包括的に処理して理解できます。
Qwen3 235B(Qwen3 235B)
Qwen3 235B(Qwen3 235B
)は、2,350 億個のパラメータを持つ大規模なモデルです。このモデルは、「ハイブリッド思考」機能が特徴です。これにより、ユーザーは、数学的推論やコーディングなどの複雑なタスクのための体系的で段階的な「思考」モードと、汎用的な会話のための迅速な「非思考」モードを動的に切り替えることができます。コンテキスト ウィンドウが大きいため、深い推論と長文の理解を必要とするユースケースに適しています。
始める前に
Vertex AI で Qwen モデルを使用するには、次の操作を行う必要があります。Vertex AI を使用するには、Vertex AI API(aiplatform.googleapis.com
)を有効にする必要があります。既存のプロジェクトで Vertex AI API が有効になっている場合は、新しいプロジェクトを作成する代わりに、そのプロジェクトを使用できます。
- 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.
-
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
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Vertex AI API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin
), which contains theserviceusage.services.enable
permission. 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
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Vertex AI API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin
), which contains theserviceusage.services.enable
permission. Learn how to grant roles. - 次のいずれかの Model Garden モデルカードに移動し、[有効にする] をクリックします。