# Gemma 3n

**Gemma 3n** 是谷歌DeepMind（Google DeepMind）推出的一系列开放权重、多模态大型语言模型，从设计之初就着眼于在手机、平板和笔记本电脑上本地运行。它接受文本、图像、视频和音频输入，生成文本输出，并采用选择性参数激活机制，使拥有50亿和80亿原始参数的模型能以相当于20亿和40亿参数模型的内存占用运行。<sup>[1](https://ai.google.dev/gemma/docs/gemma-3n/model_card)</sup><sup> • </sup><sup>[2](https://developers.googleblog.com/en/introducing-gemma-3n)</sup> 谷歌于2025年5月在Google I/O大会上预览了该模型，并于2025年6月26日正式发布两个规格——E2B和E4B，每个规格均提供预训练版和指令微调版。<sup>[3](https://huggingface.co/blog/gemma3n)</sup><sup> • </sup><sup>[4](https://ai.google.dev/gemma/docs/releases?hl=id)</sup>

| 关键事实 | 详情 |
|---|---|
| 发布 | Google I/O预览（2025年5月）；2025年6月26日正式发布E2B和E4B规格<sup>[3](https://huggingface.co/blog/gemma3n)</sup><sup> • </sup><sup>[4](https://ai.google.dev/gemma/docs/releases?hl=id)</sup> |
| 参数 | E2B：50亿原始参数，有效加载19.1亿参数运行；E4B：80亿原始参数，4B级内存占用<sup>[5](https://ai.google.dev/gemma/docs/gemma-3n)</sup><sup> • </sup><sup>[2](https://developers.googleblog.com/en/introducing-gemma-3n)</sup> |
| 内存 | 动态内存占用约2GB（E2B）和3GB（E4B）；磁盘大小分别为1.55GB和2.82GB<sup>[2](https://developers.googleblog.com/en/introducing-gemma-3n)</sup><sup> • </sup><sup>[6](https://developer.nvidia.com/blog/run-google-deepminds-gemma-3n-on-nvidia-jetson-and-rtx/)</sup> |
| 模态 | 文本、图像、视频和音频输入；文本输出；语音转录和翻译<sup>[1](https://ai.google.dev/gemma/docs/gemma-3n/model_card)</sup> |
| 上下文 | 32K token输入上下文；每张图像编码为256个token；音频每秒6.25个token<sup>[1](https://ai.google.dev/gemma/docs/gemma-3n/model_card)</sup> |
| 训练数据 | 约11万亿token；知识截止日期2024年6月；超过140种文本语言，35种语言支持多模态交互<sup>[1](https://ai.google.dev/gemma/docs/gemma-3n/model_card)</sup><sup> • </sup><sup>[7](https://github.com/huggingface/blog/blob/main/gemma3n.md)</sup> |
| 基准测试 | E4B是首个在LMArena上得分超过1300的百亿参数以下模型；MMLU 0-shot成绩为60.1（E2B IT）和64.9（E4B IT）<sup>[7](https://github.com/huggingface/blog/blob/main/gemma3n.md)</sup><sup> • </sup><sup>[1](https://ai.google.dev/gemma/docs/gemma-3n/model_card)</sup> |
| 许可 | Gemma使用条款，开放权重发布于Hugging Face、Kaggle、Ollama和LM Studio<sup>[8](https://deepmind.google/models/gemma/gemma-3n/)</sup> |

## 发布历史

谷歌在2025年5月的Google I/O大会上宣布Gemma 3n作为预览版，将其定位为移动优先架构，并称这是对将通过Gemini Nano登陆Android和Chrome的能力的早期展示——Gemma 3n与[Gemini Nano](https://www.edgepedia.org/zh/gemini-nano)共享架构。<sup>[3](https://huggingface.co/blog/gemma3n)</sup><sup> • </sup><sup>[2](https://developers.googleblog.com/en/introducing-gemma-3n)</sup><sup> • </sup><sup>[8](https://deepmind.google/models/gemma/gemma-3n/)</sup> 正式发布于2025年6月26日跟进，权重出现在[Hugging Face](https://www.edgepedia.org/zh/hugging-face)、Kaggle、Ollama和[LM Studio](https://www.edgepedia.org/zh/lm-studio)上，同时主流开源库也加入支持，包括transformers和timm、MLX、llama.cpp（文本输入）、transformers.js、ollama和Google AI Edge。<sup>[4](https://ai.google.dev/gemma/docs/releases?hl=id)</sup><sup> • </sup><sup>[3](https://huggingface.co/blog/gemma3n)</sup>

两个规格采用非标准命名方式。E前缀代表有效参数：E2B模型包含超过50亿参数，但通过参数跳过和PLE缓存，能以略低于20亿（19.1亿）参数的有效内存负载运行。<sup>[5](https://ai.google.dev/gemma/docs/gemma-3n)</sup><sup> • </sup><sup>[3](https://huggingface.co/blog/gemma3n)</sup> E4B模型的原始参数为80亿，但运行时内存占用相当于4B模型。<sup>[6](https://developer.nvidia.com/blog/run-google-deepminds-gemma-3n-on-nvidia-jetson-and-rtx/)</sup>

## 架构

**逐层嵌入（Per-Layer Embeddings，PLE）。** Gemma 3n模型包含逐层嵌入参数，在推理执行期间用于生成增强每一模型层的数据。这些PLE数据可以在模型运行内存之外生成，缓存到快速存储中，并在每一层运行时加入推理，从而将参数保持在加速器内存之外，同时保持响应质量。谷歌将RAM使用量的降低归功于这一技术，使5B和8B模型能以2GB和3GB动态内存占用运行。<sup>[5](https://ai.google.dev/gemma/docs/gemma-3n)</sup><sup> • </sup><sup>[2](https://developers.googleblog.com/en/introducing-gemma-3n)</sup>

**MatFormer。** 模型采用Matryoshka Transformer（MatFormer）架构，在单个较大模型内包含嵌套的较小模型。E4B模型包含E2B模型的参数，两者一起训练，E2B被配置为E4B的子模型。嵌套子模型可以在不激活外层参数的情况下进行推理，降低计算成本、响应时间和能耗，混合搭配方法让开发者可以组装2B到4B之间的中间规格，以适应其硬件和质量-延迟权衡。<sup>[5](https://ai.google.dev/gemma/docs/gemma-3n)</sup><sup> • </sup><sup>[7](https://github.com/huggingface/blog/blob/main/gemma3n.md)</sup>

**其他新增。** 除语言解码器外，架构还加入了交替更新（Alternating Updates，AltUp）、学习增强残差层（Learned Augmented Residual Layer，LAuReL）、统计Top-k激活稀疏化以及KV缓存共享。其注意力方案与[Gemma 3](https://www.edgepedia.org/zh/gemma-3)一致：每个全局自注意力层之后是四层局部滑动窗口注意力，上下文最多可达32K token。<sup>[9](https://huggingface.co/docs/transformers/model_doc/gemma3n)</sup> KV缓存共享通过将中间层的键和值与所有顶层共享来优化预填充阶段，在长提示序列上相比Gemma 3 4B实现2倍预填充提升。<sup>[10](https://developers.googleblog.com/en/introducing-gemma-3n-developer-guide/)</sup>

## 多模态编码器

**视觉。** Gemma 3n引入MobileNet-V5-300M作为视觉编码器，支持256x256、512x512和768x768像素的输入分辨率（默认768x768），每张图像编码为256个token。它在[Google Pixel](https://www.edgepedia.org/zh/google-pixel)上每秒可处理多达60帧，实现设备端实时视频分析，并在使用少46%参数和四分之一内存占用的情况下，性能超过Gemma 3中经SigLIP训练的SoViT基线；在Google Pixel Edge TPU上，配合量化可实现13倍加速。<sup>[10](https://developers.googleblog.com/en/introducing-gemma-3n-developer-guide/)</sup><sup> • </sup><sup>[9](https://huggingface.co/docs/transformers/model_doc/gemma3n)</sup>

**音频。** 音频编码器基于通用语音模型（Universal Speech Model，USM）架构全新训练。它每160毫秒音频生成一个token，约每秒6个token，输入语言模型。发布时编码器处理最长30秒的片段，不过底层编码器采用流式设计，经额外训练可处理更长音频。音频通路支持设备端自动语音识别（转录）和自动语音翻译，在英语与西班牙语、法语、意大利语和葡萄牙语之间的翻译效果尤为出色。<sup>[10](https://developers.googleblog.com/en/introducing-gemma-3n-developer-guide/)</sup>

## 性能与基准测试

谷歌的模型卡报告，指令微调版E2B的0-shot MMLU准确率为60.1，指令微调版E4B为64.9，[HumanEval](https://www.edgepedia.org/zh/humaneval) pass@1分别为66.5和75.0，MGSM多语言准确率分别为53.1和60.7。<sup>[1](https://ai.google.dev/gemma/docs/gemma-3n/model_card)</sup> 在LMArena上，E4B模型是首个参数低于100亿且得分超过1300的模型。<sup>[7](https://github.com/huggingface/blog/blob/main/gemma3n.md)</sup> 谷歌还报告，Gemma 3n在移动端开始响应的速度约为Gemma 3 4B的1.5倍，且质量更好。<sup>[2](https://developers.googleblog.com/en/introducing-gemma-3n)</sup>

独立测量则为设备端表现提供了更冷静的图景。一项使用llama.cpp配合Q4_K_M量化的社区iOS基准测试发现，Gemma 3N（4B）在四个测试模型中速度最慢，平均首token时间为3955毫秒，解码吞吐量为每秒7.6个token，不过它的输出也最长，平均392个token。<sup>[11](https://github.com/singhh5050/ios-llm-benchmarking-results)</sup>

## 可用性与生态

权重以Gemma使用条款开放，该条款将谷歌的使用限制传递给下游接收者，并要求分发时附带通知文件；谷歌声明对用户输出不主张任何权利。<sup>[12](https://ai.google.dev/gemma/terms?refer=similarlabs_ai-devtools_local-ai-16gb-laptop-guide)</sup> NVIDIA通过Ollama在RTX和Jetson平台上支持这些模型，并通过其NeMo框架支持微调。<sup>[6](https://developer.nvidia.com/blog/run-google-deepminds-gemma-3n-on-nvidia-jetson-and-rtx/)</sup> 发布同时，谷歌在Kaggle上启动了Gemma 3n影响力挑战赛（Gemma 3n Impact Challenge），为设备端、离线、多模态应用提供15万美元奖金。<sup>[10](https://developers.googleblog.com/en/introducing-gemma-3n-developer-guide/)</sup>

## 局限性

训练数据的知识截止日期为2024年6月，因此模型缺乏此后信息。<sup>[1](https://ai.google.dev/gemma/docs/gemma-3n/model_card)</sup> 32K上下文窗口是支持的最大值，而非保证每台设备都能在实际内存预算内处理32K token。<sup>[13](https://www.itechguides.com/google-gemma-3n-how-the-local-multimodal-model-uses-less-memory-on-phones-and-laptops/)</sup> 谷歌的安全评估涵盖儿童安全、内容安全和表征性伤害，主要使用英语提示，模型卡承认了这一局限。<sup>[1](https://ai.google.dev/gemma/docs/gemma-3n/model_card)</sup>

## References

1. [Gemma 3n model card, Google AI for Developers](https://ai.google.dev/gemma/docs/gemma-3n/model_card)
2. [Announcing Gemma 3n preview: powerful, efficient, mobile-first AI, Google Developers Blog](https://developers.googleblog.com/en/introducing-gemma-3n)
3. [Gemma 3n fully available in the open-source ecosystem!, Hugging Face Blog](https://huggingface.co/blog/gemma3n)
4. [Rilis Gemma, Google AI for Developers](https://ai.google.dev/gemma/docs/releases?hl=id)
5. [Gemma 3n model overview, Google AI for Developers](https://ai.google.dev/gemma/docs/gemma-3n)
6. [Run Google DeepMind's Gemma 3n on NVIDIA Jetson and RTX, NVIDIA Technical Blog](https://developer.nvidia.com/blog/run-google-deepminds-gemma-3n-on-nvidia-jetson-and-rtx/)
7. [blog/gemma3n.md, Hugging Face blog on GitHub](https://github.com/huggingface/blog/blob/main/gemma3n.md)
8. [Gemma 3n, Google DeepMind](https://deepmind.google/models/gemma/gemma-3n/)
9. [Gemma3n, Hugging Face Transformers documentation](https://huggingface.co/docs/transformers/model_doc/gemma3n)
10. [Introducing Gemma 3n: The developer guide, Google Developers Blog](https://developers.googleblog.com/en/introducing-gemma-3n-developer-guide/)
11. [iOS LLM benchmarking results, GitHub (singhh5050)](https://github.com/singhh5050/ios-llm-benchmarking-results)
12. [Gemma Terms of Use, Google AI for Developers](https://ai.google.dev/gemma/terms?refer=similarlabs_ai-devtools_local-ai-16gb-laptop-guide)
13. [Google Gemma 3n: Local AI With Less Memory on Phones, iTechGuides](https://www.itechguides.com/google-gemma-3n-how-the-local-multimodal-model-uses-less-memory-on-phones-and-laptops/)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › 模型家族与已命名的模型 › 大语言模型家族 › 开放权重模型家族

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/gemma-3n

English original: https://www.edgepedia.org/gemma-3n
