Gem)ma 4 使用教程:从手机到桌面全覆盖
🚀 Gemma 4 使用教程
谷歌最强开源大模型 · 手机到桌面全覆盖
- • 🔥 Apache 2.0 开源 · 4 亿 + 下载
- • 官方页面:https://deepmind.google/models/gemma/gemma-4/
- • Google AI Studio:在线试用 Gemma 4 31B
📖 项目简介
Gemma 4 是 Google DeepMind 基于 Gemini 3 研究和技术打造的最新开源模型家族,旨在最大化每参数智能表现。
它提供 4 种规格(E2B、E4B、26B MoE、31B Dense),从手机到桌面设备全覆盖,支持 140+ 语言和多模态(文本/图片/视频/音频),采用 Apache 2.0 开源协议。
✨ 核心亮点
- • 🧠 极致智能密度:31B 模型 Arena AI 全球前三,碾压 20 倍大的对手
- • 📱 全设备覆盖:E2B/E4B 手机端侧运行,26B/31B 桌面本地部署
- • 🤖 Agent 原生支持:内置函数调用、多步规划、25 万 Token 上下文
- • 🌐 多模态多语言:文字/图片/视频/音频全模态,140+ 语言
🚀 如何使用
方式一:通过 Google AI Studio 在线试用
-
- 打开 Google AI Studio
访问 aistudio.google.com,登录你的 Google 账号。
-
- 选择 Gemma 4 模型
在模型选择器中选择 gemma-4-31b-it(31B)或 gemma-4-26b-it(26B MoE),即可开始对话。
方式二:通过 Ollama 本地部署
-
- 安装 Ollama
访问 ollama.com 下载安装 Ollama(支持 macOS / Windows / Linux)。
-
- 拉取并运行模型
打开终端,运行对应命令:
Bash
# 运行 26B MoE(推荐,速度快)
ollama run gemma4:26b
# 运行 31B Dense(质量最高)
ollama run gemma4:31b
# 运行 E4B(轻量级,适合低配设备)
ollama run gemma4:e4b
-
- 开始对话
模型下载完成后自动启动交互式对话,支持中文、英文等 140+ 语言。
也可通过 API 方式调用:http://localhost:11434/api/chat
方式三:通过 Hugging Face 下载权重
-
- 下载模型权重
从 Hugging Face、Kaggle 或 LM Studio 下载 Gemma 4 模型权重,使用你喜欢的推理框架加载运行。
❓ 常见问题
Q: Gemma 4 的四个模型怎么选?
- • E2B:手机/IoT 设备,离线运行
- • E4B:手机/平板,更强推理
- • 26B MoE:笔记本/台式机,3.8B 激活参数极速推理(推荐)
- • 31B Dense:台式机/服务器,输出质量最高
Q: 需要什么硬件配置?
- • E2B/E4B 可在手机上直接运行
- • 26B MoE 推荐 16GB+ 内存/显存
- • 31B Dense 推荐 24GB+ 显存或使用量化版本(如 Q4_K_M)在 16GB 显卡上运行
Q: 可以商用吗?
可以!Gemma 4 采用 Apache 2.0 开源协议,允许个人和商业用途,无需付费。
Q: 支持哪些语言?
原生支持 140+ 语言,包括中文、英文、日文、韩文、西班牙语、法语等主流语言,能理解文化语境而非简单翻译。
</section><p style="font-size: 0px; line-height: 0; margin: 0px;"> </p><p style="font-size: 0px; line-height: 0; margin: 0px;"> </p><section style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px"><h1 style=" text-align: center; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 19.599999999999998px; display: table; padding: 0.5em 1em; border-bottom: 2px solid #92617E; margin: 2em auto 1em; color: #3f3f3f; font-weight: bold; text-shadow: 2px 2px 4px rgba(0,0,0,0.1);margin-transform: translateY( 0">Gem)ma 4 使用教程:从手机到桌面全覆盖</h1><h1 style=" text-align: center; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 19.599999999999998px; display: table; padding: 0.5em 1em; border-bottom: 2px solid #92617E; margin: 2em auto 1em; color: #3f3f3f; font-weight: bold; text-shadow: 2px 2px 4px rgba(0,0,0,0.1)">🚀 Gemma 4 使用教程</h1><p style=" text-align: justify; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; margin: 1.5em 8px; letter-spacing: 0.1em; color: #3f3f3f"><strong style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: inherit; color: #92617E; font-weight: bold">谷歌最强开源大模型 · 手机到桌面全覆盖</strong></p><ul style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; list-style: none; padding-left: 1.5em; margin-left: 0; color: #3f3f3f"><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">• 🔥 Apache 2.0 开源 · 4 亿 + 下载</li><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">• 官方页面:https://deepmind.google/models/gemma/gemma-4/</li><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">• Google AI Studio:在线试用 Gemma 4 31B</li></ul><hr style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; border-style: solid; border-width: 2px 0 0; border-color: rgba(0,0,0,0.1); -webkit-transform-origin: 0 0; -webkit-transform: scale(1, 0.5); transform-origin: 0 0; transform: scale(1, 0.5); height: 1px; margin: 2em 0; border: none; background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0))"><h2 style=" text-align: center; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 18.2px; display: table; padding: 0.3em 1em; margin: 4em auto 2em; color: #fff; background: #92617E; font-weight: bold; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1)">📖 项目简介</h2><p style=" text-align: justify; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; margin: 1.5em 8px; letter-spacing: 0.1em; color: #3f3f3f">Gemma 4 是 Google DeepMind 基于 Gemini 3 研究和技术打造的最新开源模型家族,旨在最大化每参数智能表现。</p><p style=" text-align: justify; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; margin: 1.5em 8px; letter-spacing: 0.1em; color: #3f3f3f">它提供 4 种规格(E2B、E4B、26B MoE、31B Dense),从手机到桌面设备全覆盖,支持 140+ 语言和多模态(文本/图片/视频/音频),采用 Apache 2.0 开源协议。</p><hr style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; border-style: solid; border-width: 2px 0 0; border-color: rgba(0,0,0,0.1); -webkit-transform-origin: 0 0; -webkit-transform: scale(1, 0.5); transform-origin: 0 0; transform: scale(1, 0.5); height: 1px; margin: 2em 0; border: none; background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0))"><h2 style=" text-align: center; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 18.2px; display: table; padding: 0.3em 1em; margin: 4em auto 2em; color: #fff; background: #92617E; font-weight: bold; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1)">✨ 核心亮点</h2><ul style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; list-style: none; padding-left: 1.5em; margin-left: 0; color: #3f3f3f"><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">• 🧠 <strong style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: inherit; color: #92617E; font-weight: bold">极致智能密度</strong>:31B 模型 Arena AI 全球前三,碾压 20 倍大的对手</li><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">• 📱 <strong style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: inherit; color: #92617E; font-weight: bold">全设备覆盖</strong>:E2B/E4B 手机端侧运行,26B/31B 桌面本地部署</li><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">• 🤖 <strong style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: inherit; color: #92617E; font-weight: bold">Agent 原生支持</strong>:内置函数调用、多步规划、25 万 Token 上下文</li><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">• 🌐 <strong style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: inherit; color: #92617E; font-weight: bold">多模态多语言</strong>:文字/图片/视频/音频全模态,140+ 语言</li></ul><hr style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; border-style: solid; border-width: 2px 0 0; border-color: rgba(0,0,0,0.1); -webkit-transform-origin: 0 0; -webkit-transform: scale(1, 0.5); transform-origin: 0 0; transform: scale(1, 0.5); height: 1px; margin: 2em 0; border: none; background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0))"><h2 style=" text-align: center; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 18.2px; display: table; padding: 0.3em 1em; margin: 4em auto 2em; color: #fff; background: #92617E; font-weight: bold; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1)">🚀 如何使用</h2><h3 style=" text-align: left; line-height: 1.2; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 16.8px; padding-left: 12px; border-left: 4px solid #92617E; margin: 2em 8px 0.75em 0; color: #3f3f3f; font-weight: bold; border-bottom: 1px dashed #92617E">方式一:通过 Google AI Studio 在线试用</h3><ol style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; padding-left: 1.5em; margin-left: 0; color: #3f3f3f"><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">1. 打开 Google AI Studio</li></ol><p style=" text-align: justify; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; margin: 1.5em 8px; letter-spacing: 0.1em; color: #3f3f3f">访问 <code style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 90%; color: #d14; background: rgba(27,31,35,.05); padding: 3px 5px; border-radius: 4px">aistudio.google.com</code>,登录你的 Google 账号。</p><ol style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; padding-left: 1.5em; margin-left: 0; color: #3f3f3f"><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">1. 选择 Gemma 4 模型</li></ol><p style=" text-align: justify; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; margin: 1.5em 8px; letter-spacing: 0.1em; color: #3f3f3f">在模型选择器中选择 <code style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 90%; color: #d14; background: rgba(27,31,35,.05); padding: 3px 5px; border-radius: 4px">gemma-4-31b-it</code>(31B)或 <code style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 90%; color: #d14; background: rgba(27,31,35,.05); padding: 3px 5px; border-radius: 4px">gemma-4-26b-it</code>(26B MoE),即可开始对话。</p><hr style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; border-style: solid; border-width: 2px 0 0; border-color: rgba(0,0,0,0.1); -webkit-transform-origin: 0 0; -webkit-transform: scale(1, 0.5); transform-origin: 0 0; transform: scale(1, 0.5); height: 1px; margin: 2em 0; border: none; background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0))"><h3 style=" text-align: left; line-height: 1.2; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 16.8px; padding-left: 12px; border-left: 4px solid #92617E; margin: 2em 8px 0.75em 0; color: #3f3f3f; font-weight: bold; border-bottom: 1px dashed #92617E">方式二:通过 Ollama 本地部署</h3><ol style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; padding-left: 1.5em; margin-left: 0; color: #3f3f3f"><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">1. 安装 Ollama</li></ol><p style=" text-align: justify; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; margin: 1.5em 8px; letter-spacing: 0.1em; color: #3f3f3f">访问 <code style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 90%; color: #d14; background: rgba(27,31,35,.05); padding: 3px 5px; border-radius: 4px">ollama.com</code> 下载安装 Ollama(支持 macOS / Windows / Linux)。</p><ol style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; padding-left: 1.5em; margin-left: 0; color: #3f3f3f"><li style=" text-align: left; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; text-indent: -1em; display: block; margin: 0.5em 8px; color: #3f3f3f">1. 拉取并运行模型</li></ol><p style=" text-align: justify; line-height: 1.75; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; margin: 1.5em 8px; letter-spacing: 0.1em; color: #3f3f3f">打开终端,运行对应命令:</p><pre class="hljs code__pre" style="text-align: left; line-height: 1.5; font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; font-size: 14px; overflow-x: auto; border-radius: 8px; margin: 10px 8px; box-shadow: inset 0 0 10px rgba(0,0,0,0.05); padding: 0 !important;"><span class="mac-sign" style="display: flex; padding: 10px 14px 0;" hidden=""><svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0px" y="0px" width="45px" height="13px" viewBox="0 0 450 130">
<ellipse cx="50" cy="65" rx="50" ry="52" stroke="rgb(220,60,54)" stroke-width="2" fill="rgb(237,108,96)"></ellipse>
<ellipse cx="225" cy="65" rx="50" ry="52" stroke="rgb(218,151,33)" stroke-width="2" fill="rgb(247,193,81)"></ellipse>
<ellipse cx="400" cy="65" rx="50" ry="52" stroke="rgb(27,161,37)" stroke-width="2" fill="rgb(100,200,86)"></ellipse>
运行 26B MoE(推荐,速度快)
ollama run gemma4:26b
运行 31B Dense(质量最高)
ollama run gemma4:31b
运行 E4B(轻量级,适合低配设备)
ollama run gemma4:e4b
-
- 开始对话
模型下载完成后自动启动交互式对话,支持中文、英文等 140+ 语言。
也可通过 API 方式调用:http://localhost:11434/api/chat
方式三:通过 Hugging Face 下载权重
-
- 下载模型权重
从 Hugging Face、Kaggle 或 LM Studio 下载 Gemma 4 模型权重,使用你喜欢的推理框架加载运行。
❓ 常见问题
Q: Gemma 4 的四个模型怎么选?
- • E2B:手机/IoT 设备,离线运行
- • E4B:手机/平板,更强推理
- • 26B MoE:笔记本/台式机,3.8B 激活参数极速推理(推荐)
- • 31B Dense:台式机/服务器,输出质量最高
Q: 需要什么硬件配置?
- • E2B/E4B 可在手机上直接运行
- • 26B MoE 推荐 16GB+ 内存/显存
- • 31B Dense 推荐 24GB+ 显存或使用量化版本(如 Q4_K_M)在 16GB 显卡上运行
Q: 可以商用吗?
可以!Gemma 4 采用 Apache 2.0 开源协议,允许个人和商业用途,无需付费。
Q: 支持哪些语言?
原生支持 140+ 语言,包括中文、英文、日文、韩文、西班牙语、法语等主流语言,能理解文化语境而非简单翻译。
</section><p style="font-size: 0px; line-height: 0; margin: 0px;"> </p>