Gemma 模型家族¶
Gemma 是 Google DeepMind 的開放模型家族:權重已公開,您可以下載並在自己的硬體上運行——筆記型電腦、手機,或您控制的叢集。除非您選擇傳送,否則不會有任何資料傳到伺服器。
此家族有兩部分。主流世代——Gemma 1 到 Gemma 4——是大多數人想要的通用模型。每個世代周圍有一組變體:為單一任務重新訓練或重構的相同架構,例如嵌入、安全分類或視覺語言任務。變體總是衍生自某個特定世代,下方的樹狀圖即呈現此關係。
家族結構¶
每個變體都歸在其模型頁面所標示的基礎世代之下。
Gemma 4¶
目前的世代;除非您需要某個變體的特定功能,否則請從這裡開始。
| 變體 | 參數量 | 輸入 | 上下文 | 目標平台 |
|---|---|---|---|---|
| E2B | 2B effective | Text, Image, Audio, Video | 128K | Mobile devices |
| E4B | 4B effective | Text, Image, Audio, Video | 128K | Mobile and laptops |
| 12B | 12B | Text, Image, Audio, Video | 256K | Laptops and desktops |
| 26B A4B | 26B (4B active) | Text, Image, Video | 256K | Desktops and servers |
| 31B | 31B | Text, Image, Video | 256K | Servers |
音訊與影片支援
音訊輸入為 E2B、E4B 與 12B 的原生功能。26B A4B 與 31B 模型可將影片視為逐幀影像(即圖像)接受,但不處理音訊。
立即執行或閱讀 Gemma 4 模型卡以了解完整技術細節。
先前世代¶
仍在支援中;當您只需要較小或純文字模型時,它們仍是合適的選擇。
Gemma 3n¶
Gemma 3 世代的裝置端成員。
| 大小 | 輸入 ➔ 輸出 | 目標平台 |
|---|---|---|
| E2B | Text, images, audio ➔ Text | Mobile devices |
| E4B | Text, images, audio ➔ Text | Mobile devices and laptops |
Gemma 3¶
| 大小 | 輸入 ➔ 輸出 | 目標平台 |
|---|---|---|
| 270M | Text ➔ Text | Mobile devices and single board computers |
| 1B | Text ➔ Text | Mobile devices and single board computers |
| 4B | Text, images ➔ Text | Desktop computers and small servers |
| 12B | Text, images ➔ Text | Higher-end desktop computers and servers |
| 27B | Text, images ➔ Text | Large servers or server clusters |
Gemma 2¶
| 大小 | 輸入 ➔ 輸出 | 目標平台 |
|---|---|---|
| 2B | Text ➔ Text | Mobile devices and laptops |
| 9B | Text ➔ Text | Higher-end desktop computers and servers |
| 27B | Text ➔ Text | Large servers or server clusters |
Gemma¶
| 大小 | 輸入 ➔ 輸出 | 目標平台 |
|---|---|---|
| 2B | Text ➔ Text | Mobile devices and laptops |
| 7B | Text ➔ Text | Desktop computers and small servers |
如何選擇¶
- 剛入門? 選擇目前世代的指令微調版本,挑選符合您硬體的最小尺寸。它無需額外訓練即可回答各種提示。
- 需要完成特定任務? 先確認是否已有變體可勝任——嵌入(EmbeddingGemma)、安全標註(ShieldGemma)、工具呼叫(FunctionGemma)——再考慮自行微調核心模型。
- 在手機或邊緣裝置上? Gemma 3n 與 Gemma 4 E2B、E4B 尺寸正是為此打造。
如需所有版本的完整發布時程,請見版本發布紀錄。