Qwen 模型

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 Coder 模型資訊卡

Qwen3 235B (Qwen3 235B)

Qwen3 235B (Qwen3 235B) 是大型 235B 參數模型,這項模型具備「混合思考」能力,可讓使用者在有條不紊的逐步「思考」模式 (適用於數學推理和程式設計等複雜工作),以及快速「非思考」模式 (適用於一般對話) 之間動態切換。由於脈絡窗口較大,因此適合需要深入推理和理解長篇內容的用途。

前往 Qwen3 235B 模型資訊卡

事前準備

如要在 Vertex AI 中使用 Qwen 模型,請按照下列步驟操作。如要使用 Vertex AI,必須啟用 Vertex AI API (aiplatform.googleapis.com)。如果您已有啟用 Vertex AI API 的專案,可以改用該專案,不必建立新專案。

  1. 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.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

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

  4. Enable the Vertex AI API.

    Enable the API

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

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

  7. Enable the Vertex AI API.

    Enable the API

  8. 前往下列任一 Model Garden 模型資訊卡,然後按一下「啟用」