模型版本和生命周期

每个 Vertex AI 生成式 AI 语言模型都有稳定版和自动更新版本。Gemini 和 PaLM 模型版本控制和命名惯例是类似的,但并不完全相同。请参阅以下主题,了解模型版本控制如何与 Gemini 和 PaLM 模型搭配使用。如需了解 Imagen on Vertex AI 模型版本及其生命周期,请参阅 Imagen on Vertex AI 模型版本和生命周期

Gemini 模型版本和生命周期

Gemini 语言模型是多模态的,这意味着它们可以处理来自多种模态(例如图片、视频和文本)的信息。

Gemini 稳定版

Gemini 模型的稳定版本不会改变,并且在停用日期之前一直可用。请参阅本页面上可用的 Gemini 稳定模型版本中的表格,了解 Gemini 模型的停用日期。如果您在某个稳定版本的停用日期之后使用该版本,则需要切换到较新的可用稳定版本。您可以通过附加到模型名称的三位数编号识别稳定模型的版本。例如,gemini-1.0-pro-001 是 Gemini 1.0 Pro 模型稳定版的一号版本。

Google 会定期发布稳定版本。您可以从一个稳定版本切换到另一个版本,前提是另一个版本仍然可用。 当您从一个稳定版迁移到另一个稳定版时,您需要再次运行调优作业,因为版本之间可能会存在提示、输出和其他差异。

如需使用 Gemini 模型的稳定版,请使用连字符 (-) 将三位数版本号附加到该模型。例如,如需指定稳定的 gemini-1.0-pro 模型版本 6,请将 -006 附加到模型名称:

https://us-central1-aiplatform.googleapis.com/v1/projects/my_project/locations/us-central1/publishers/google/models/gemini-1.0-pro-006

可用的 Gemini 稳定模型版本

以下稳定模型版本适用于正式版 Gemini 模型:

Gemini 1.0 Pro 模型 发布日期 终止日期
gemini-1.0-pro-001 2024 年 2 月 15 日 2025 年 2 月 15 日
gemini-1.0-pro-002 2024 年 4 月 9 日 不早于 2025 年 4 月 9 日
Gemini 1.0 Pro Vision 模型 发布日期 终止日期
gemini-1.0-pro-vision-001 2024 年 2 月 15 日 2025 年 2 月 15 日

Gemini 自动更新版本

Gemini 模型的自动更新版本指向最新的稳定版。在新的稳定版发布后,自动更新版本会指向新版本。这意味着,如果您在代码中指定 Gemini 模型的自动更新版本,则在下一个稳定版发布后,它可能会采取不同的行为,而不另行通知。因此,在对模型进行调优时,请谨慎使用自动更新版本。

如需使用模型的自动更新版本,请不要向模型名称附加任何内容。例如,以下代码使用 gemini-1.0-pro-vision 模型的自动更新版本:

https://us-central1-aiplatform.googleapis.com/v1/projects/my_project/locations/us-central1/publishers/google/models/gemini-1.0-pro-vision

Gemini 自动更新模型

下表显示可用的自动更新 Gemini 模型版本以及这些版本各自引用的稳定版。

模型名称 自动更新版本名称 引用的稳定版
Gemini 1.0 Pro Vision 模型 gemini-1.0-pro-vision gemini-1.0-pro-vision-001
Gemini 1.0 Pro 模型 gemini-1.0-pro gemini-1.0-pro-002

Gemini 预览版

Gemini 模型的预览版本是预览版且未正式发布 (GA) 的模型。模型的预览版本包含模型的最新版本或自动更新版本中不包含的功能。由于预览版模型版本不稳定,因此不建议在生产环境中使用。

每个预览模型都会固定在其发布日期。其发布日期是您在代码中使用的模型名称的一部分。预览版模型使用的名称模式为 model_name-preview-MMDD。例如,gemini-1.5-pro-preview-0409 是 Gemini 1.5 Pro 模型的预览版,它于 4 月 9 日发布。

Gemini 预览版模型

下表显示了可用的预览版 Gemini 模型版本以及每个引用的预览版本。

模型名称 预览版名称 终止日期
Gemini 1.5 Pro 模型 gemini-1.5-pro-preview-0409 更新到稳定版

PaLM 模型版本和生命周期

PaLM 语言模型包括文本和代码模型,例如 text-bisontext-unicornchat-bisoncode-bisoncode-gecko。这些版本因它们是否随时间变化以及它们的可用时间而异。

PaLM 稳定版

模型的稳定版本不会改变,并且在停用日期之前一直可用。请参阅本页面上可用的 PaLM 稳定模型版本中的表格,了解 PaLM 模型的停用日期。如果您在某个稳定版本的停用日期之后使用该版本,则需要切换到较新的可用稳定版本。您可以通过附加到模型名称的三位数编号识别稳定模型的版本。例如,text-bison@001 是 Vertex AI 生成式 AI 文本模型稳定版的一号版本。

Google 会定期发布稳定版本。您可以从一个稳定版本切换到另一个版本,前提是另一个版本仍然可用。当您从一个稳定版迁移到另一个稳定版时,您需要再次运行调优作业,因为版本之间可能会存在提示、输出和其他差异。

可用的 PaLM 稳定模型版本

以下稳定模型版本适用于正式版生成式 AI 模型:

chat-bison 模型 发布日期 终止日期
chat-bison@002 2023 年 12 月 6 日 2024 年 10 月 9 日
chat-bison@001 2023 年 7 月 10 日 2024 年 7 月 6 日
chat-bison-32k 模型 发布日期 终止日期
chat-bison-32k@002 2023 年 12 月 4 日 2024 年 10 月 9 日
code-bison 模型 发布日期 终止日期
code-bison@002 2023 年 12 月 6 日 2024 年 10 月 9 日
code-bison@001 2023 年 6 月 29 日 2024 年 7 月 6 日
code-bison-32k 模型 发布日期 终止日期
code-bison-32k@002 2023 年 12 月 4 日 2024 年 10 月 9 日
codechat-bison 模型 发布日期 终止日期
codechat-bison@002 2023 年 12 月 6 日 2024 年 10 月 9 日
codechat-bison@001 2023 年 6 月 29 日 2024 年 7 月 6 日
codechat-bison-32k 模型 发布日期 终止日期
codechat-bison-32k@002 2023 年 12 月 4 日 2024 年 10 月 9 日
code-gecko 模型 发布日期 终止日期
code-gecko@002 2023 年 12 月 6 日 2024 年 10 月 9 日
code-gecko@001 2023 年 6 月 29 日 2024 年 7 月 6 日
text-bison 模型 发布日期 终止日期
text-bison@002 2023 年 12 月 6 日 2024 年 10 月 9 日
text-bison@001 2023 年 6 月 7 日 2024 年 7 月 6 日
text-bison-32k 模型 发布日期 终止日期
text-bison-32k@002 2023 年 12 月 4 日 2024 年 10 月 9 日
text-unicorn 模型 发布日期 终止日期
text-unicorn@001 2023 年 11 月 30 日 不早于 2024 年 11 月 30 日
textembedding-gecko 模型 发布日期 终止日期
textembedding-gecko@003 2023 年 12 月 12 日 不适用
textembedding-gecko@002 2023 年 11 月 2 日 2024 年 10 月 9 日
textembedding-gecko-multilingual@001 2023 年 11 月 2 日 不适用
textembedding-gecko@001 2023 年 6 月 7 日 2024 年 10 月 9 日
text-embedding-preview-0409 2024 年 4 月 9 日 更新到稳定版。
text-multilingual-embedding-preview-0409 2024 年 4 月 9 日 更新到稳定版。

PaLM 最新版本

模型的最新版本会定期更新,包括增量更新和改进。对于给定的提示,这些更改可能会导致输出随时间推移出现细微差异。模型的最新版本无法保证稳定。

如需使用语言模型的稳定版本,请将三位数版本号附加到该模型。例如,如需指定稳定的 text-bison 模型版本 6,请将 @006 附加到模型名称:

https://us-central1-aiplatform.googleapis.com/v1/projects/my_project/locations/us-central1/publishers/google/models/text-bison@006

如需使用最新版本的模型,请不要向模型名称附加任何内容。例如,以下代码使用最新版本的 codechat-bison 模型:

https://us-central1-aiplatform.googleapis.com/v1/projects/my_project/locations/us-central1/publishers/google/models/codechat-bison

PaLM 最新模型

下表显示了最新可用生成式 AI 模型版本的标识符:

PaLM 2 for Text (text-bison) 模型 text-bison
text-bison-32k
PaLM 2 for Chat (chat-bison) 模型 chat-bison
chat-bison-32k
Codey for Code Generation (code-bison) 模型 code-bison
code-bison-32k
Codey for Code Chat (codechat-bison) 模型 codechat-bison
codechat-bison-32k
Codey for Code Completion (code-gecko) 模型 code-gecko
Embeddings for Text(textembedding-gecko 模型) textembedding-gecko@latest
textembedding-gecko-multilingual@latest

后续步骤