Mindket

gemma-4-E2B

新上架第 1 版 · 更新于

概览

处理文本、图片和音频输入并输出文本,是为笔记本和手机设计的小型 Gemma 4 模型。来自 Google DeepMind,有效参数 2.3B,上下文 128K。

gemma-4-E2B 是一款工具包,属于开发类,由 Mindket 上架。可免费获取。当前为第 1 版,最近更新于 。在本页下载,是一个装着它全部文件的 zip 压缩包。这些文件不会自己运行。

速览

你需要
  • Python,用来运行 Hugging Face 下载工具
  • BF16 权重约 10.2 GB 的空间,按估算 4-bit 约 2.6 GB
  • 用来加载模型的 transformers 库
用在
  • 笔记本和移动设备,模型卡把它们列为 E2B 和 E4B 尺寸的目标
  • 装有 Python 的 Windows、macOS 或 Linux,使用 transformers 库
  • 能加载 Safetensors 文件的程序
先运行
pip install -U huggingface_hub
hf download google/gemma-4-E2B

平台

Windows操作系统
macOS操作系统
Linux操作系统

关于

它是什么

gemma-4-E2B 是 Google DeepMind 的 Gemma 4 系列中最小的模型。它接收文本、图片和音频作为输入,输出文本。E 代表有效参数,所以它的表现像一个 2.3B 的模型,而文件里有 5.1B 参数,差额来自每层的嵌入表。

适合谁

适合想要小型开放多模态模型,并能在笔记本或手机级设备上运行的开发者和爱好者。

IndustryWho uses itHow they use itExample
软件移动端和桌面端开发者在设备上运行小型多模态模型能看懂照片的助手
研究机器学习研究人员研究小型多模态和逐层嵌入设计Gemma 4 各尺寸之间的对比
教育学生在普通硬件上试用推理和编程帮助笔记本上的学习助手
无障碍工具开发者在本地描述图片或转写简短音频能解释图片的屏幕阅读器

如果你需要更大的模型来处理更难的任务,可以跳过它,因为这个系列还有 E4B、12B、26B A4B 和 31B 的尺寸。

用在哪里

  • 笔记本和移动设备,模型卡把它们列为 E2B 和 E4B 尺寸的目标
  • 装有 Python 的 Windows、macOS 或 Linux,使用 transformers 库
  • 能加载 Safetensors 文件的程序
Use caseWhoWhat they get back
聊天和推理个人带可配置思考模式的回答
图片和音频输入开发者针对你提供的图片或声音的文字回答
编程和智能体开发者函数调用和代码帮助
多语言使用任何人按模型卡所说,支持超过 140 种语言

如何设置

  • Python,用来运行 Hugging Face 下载工具
  • BF16 权重约 10.2 GB 的空间,按估算 4-bit 约 2.6 GB
  • 用来加载模型的 transformers 库
  1. 用 pip 安装 Hugging Face 的 hub 工具。
  2. 用 hf 命令下载模型文件。
  3. 用 transformers 加载模型,细节参考模型卡。
pip install -U huggingface_hub
hf download google/gemma-4-E2B

如何使用

向模型发送文本、图片或音频,然后读取它写回的文字。模型卡说 Gemma 4 支持系统角色,所以你可以在系统消息里为对话设定规则。

示例

你给模型一张菜单的照片,问“Which dishes here are vegetarian”。它读取图片,用文字回复它认为符合条件的菜品。

新手与专家

先用一个简短的文本提示确认模型能加载,再加上图片。早期提示保持简短,因为这个模型是为普通硬件设计的。

这个模型有 35 层,滑动窗口为 512 个 token,设计上交替使用局部注意力和完整的全局注意力,并以全局层结尾。一个约 150M 的视觉编码器和一个约 300M 参数的音频编码器为它提供输入。词表有 262K 个条目,上下文最长 128K token。

  1. 发送文本、图片或音频
  2. 局部和全局注意力层处理
  3. 逐层嵌入提供查表
  4. 返回文本

注意事项

  • License: Apache 2.0
  • Cost to run: 没有提到
  • Data it reaches: 从 Hugging Face 下载文件,之后在你自己的机器上运行
  • Not for: 最大的任务,这类任务有 12B、26B A4B 和 31B 尺寸
  • Limits: 128K 的上下文小于中等规模模型提供的 256K

README 和文件

README

gemma-4-E2B

处理文本、图片和音频输入并输出文本,是为笔记本和手机设计的小型 Gemma 4 模型。来自 Google DeepMind,有效参数 2.3B,上下文 128K。

由 google 在 Hugging Face 上制作。这些说明是 Mindket 根据它的模型页面和模型卡写的,模型自己的文件和许可证在 Hugging Face 上。

简介

它是什么:gemma-4-E2B 是 Google DeepMind 的 Gemma 4 系列中最小的模型。它接收文本、图片和音频作为输入,输出文本。E 代表有效参数,所以它的表现像一个 2.3B 的模型,而文件里有 5.1B 参数,差额来自每层的嵌入表。

适合谁:适合想要小型开放多模态模型,并能在笔记本或手机级设备上运行的开发者和爱好者。

Industry | Who uses it | How they use it | Example
软件 | 移动端和桌面端开发者 | 在设备上运行小型多模态模型 | 能看懂照片的助手
研究 | 机器学习研究人员 | 研究小型多模态和逐层嵌入设计 | Gemma 4 各尺寸之间的对比
教育 | 学生 | 在普通硬件上试用推理和编程帮助 | 笔记本上的学习助手
无障碍 | 工具开发者 | 在本地描述图片或转写简短音频 | 能解释图片的屏幕阅读器

如果你需要更大的模型来处理更难的任务,可以跳过它,因为这个系列还有 E4B、12B、26B A4B 和 31B 的尺寸。

用在哪里:

  • 笔记本和移动设备,模型卡把它们列为 E2B 和 E4B 尺寸的目标
  • 装有 Python 的 Windows、macOS 或 Linux,使用 transformers 库
  • 能加载 Safetensors 文件的程序
Use case | Who | What they get back
聊天和推理 | 个人 | 带可配置思考模式的回答
图片和音频输入 | 开发者 | 针对你提供的图片或声音的文字回答
编程和智能体 | 开发者 | 函数调用和代码帮助
多语言使用 | 任何人 | 按模型卡所说,支持超过 140 种语言

如何设置:

  • Python,用来运行 Hugging Face 下载工具
  • BF16 权重约 10.2 GB 的空间,按估算 4-bit 约 2.6 GB
  • 用来加载模型的 transformers 库
  1. 用 pip 安装 Hugging Face 的 hub 工具。
  2. 用 hf 命令下载模型文件。
  3. 用 transformers 加载模型,细节参考模型卡。
pip install -U huggingface_hub
hf download google/gemma-4-E2B

如何使用:向模型发送文本、图片或音频,然后读取它写回的文字。模型卡说 Gemma 4 支持系统角色,所以你可以在系统消息里为对话设定规则。

示例:你给模型一张菜单的照片,问“Which dishes here are vegetarian”。它读取图片,用文字回复它认为符合条件的菜品。

新手与专家:先用一个简短的文本提示确认模型能加载,再加上图片。早期提示保持简短,因为这个模型是为普通硬件设计的。

这个模型有 35 层,滑动窗口为 512 个 token,设计上交替使用局部注意力和完整的全局注意力,并以全局层结尾。一个约 150M 的视觉编码器和一个约 300M 参数的音频编码器为它提供输入。词表有 262K 个条目,上下文最长 128K token。

发送文本、图片或音频
局部和全局注意力层处理
逐层嵌入提供查表
返回文本

注意事项:

  • License: Apache 2.0
  • Cost to run: 没有提到
  • Data it reaches: 从 Hugging Face 下载文件,之后在你自己的机器上运行
  • Not for: 最大的任务,这类任务有 12B、26B A4B 和 31B 尺寸
  • Limits: 128K 的上下文小于中等规模模型提供的 256K

Hugging Face 上的数据(2026年11月13日)

  • 任务:any to any
  • 框架:transformers
  • 参数量:5.1B
  • Weights: about 10.2 GB in BF16; about 2.6 GB at 4-bit (estimate)
  • Formats: Safetensors
  • 最近 30 天下载:109,387
  • 点赞:559
  • 许可证:apache-2.0
  • Quantized versions: 44
  • Fine-tunes: 157
  • 标签:transformers, safetensors, gemma4, image-text-to-text, any-to-any

链接

  • 模型:https://huggingface.co/google/gemma-4-E2B
  • 文件:https://huggingface.co/google/gemma-4-E2B/tree/main

获取模型

用 Hugging Face 的命令行下载它的文件:

pip install -U huggingface_hub
hf download google/gemma-4-E2B

然后按它的模型卡使用它。这个工具包里没有会自己运行的东西。

文件
README.md  4 KB

1 个文件,共 4 KB,以 zip 压缩包下载。

更新内容

  • 第 1 版 · 2026-11-12

同类产品对比

同一分类里与本产品共有标签最多的已上架 Hugging Face 模型。

产品最近 30 天下载点赞参数量许可证最近更新
gemma-4-E2B 本页109,3875595.1Bapache-2.0
gemma-4-E4B-it共有 any-to-any · gemma4 · image-text-to-text4,298,3481,8508Bapache-2.0
gemma-4-E2B-it共有 any-to-any · gemma4 · image-text-to-text3,017,0591,1295.1Bapache-2.0
gemma-4-E4B共有 any-to-any · gemma4 · image-text-to-text449,3165088Bapache-2.0
gemma-4-12B-it-qat-GGUF共有 any-to-any · gemma4 · transformers196,87161711.9Bapache-2.0
gemma-4-12B-it共有 any-to-any · image-text-to-text · transformers1,738,9051,73512Bapache-2.0
数据为 Mindket 在 2026-11-12 读取的数值。

评价

还没有评分

写评价

还没有评价。

大家怎么说

Hacker News、Bluesky、X、Reddit、Facebook 和 YouTube 上提到这个项目的帖子和评论,来自每周一次的搜索和 Trendshift。它们不是 Mindket 写的,也未经核实,点开即可在原帖处阅读。

ryansenBuilding an LLM runtime in 700 lines of CI wanted to understand how modern AI models actually generate text, but most inference codebases are tens or hundreds of thousands of lines long. They’re incredibly impressive, but they’re optimized for flexibility and performance. So I implemented a complete CPU runtime for Google’s latest open…GusThis browser demo is pretty neat! 🎙️🌐✨ Talk to Gemma 4 E2B directly in the browser with WebGPU and Transformers.js: it caches the weights locally and runs the full voice loop on your machine. Check it out: https://huggingface.co/spaces/google/gemma-4-webgpu-voice-assistant33 赞reactordevGemma 4 QAT models: Optimizing compression for mobile and laptop efficiencyI think this is the one but it’s 0.8GB VRAM not 0.8GB size. https://huggingface.co/google/gemma-4-E2B-it-qat-mobile-ct But they could be cooking up a smaller one because the model card lists the Q_4 quants as being bigger than the mobile or text-only so I think we’ll need to wait for the…heiseonlineGoogle verlagert KI-Funktionen von der Cloud direkt auf das Smartphone. Das Modell Gemma 4 E2B for TPU ist speziell für das Pixel 10 konzipiert. #Künstliche Intelligenz4 赞 · 1 条回复adrian_bAccelerating Gemma 4: faster inference with multi-token prediction draftersI do not know what you mean by sparse models. All 4 gemma-4-*-it models, regardless whether they are dense models or MoE models, have associated small models for MTP, whose names are obtained by adding the "-assistant" suffix. https://huggingface.co/google/gemma-4-E2B-it-assistant…Signal LedgerGoogle reports a 2.85x Gemma 4 E2B inference speedup on A100 with token parity. Promising engineering signal; I'd still want an independent rerun of that setup before generalizing. deepmind.google/blog/introdu...1 赞 · 1 条回复AbuAssarAccelerating Gemma 4: faster inference with multi-token prediction draftersthese are the updated models: google/gemma-4-31B-it-assistant google/gemma-4-26B-A4B-it-assistant google/gemma-4-E4B-it-assistant google/gemma-4-E2B-it-assistantJauntyWunderKindGemma4 E2B runs great on phones and other tiny devices. Ideally one's user agent lets one run whatever model one wants! Even nice big fat remote ones ideally! The user agent should extend agency!! This API is generic. I don't really care what your situation is. The answer is the same.1 赞 · 1 条回复meander_waterThe Prompt APIThis looks like it uses Gemini Nano under the hood. But the latest Gemma4 E2B and E4B models appear to be much better, so you'd probably be better off deploying quantized versions through an extension for now. - Gemini Nano-1: 46% MMLU, 1.8B - Gemini Nano-2: 56% MMLU, 3.25B - Gemma4 E2B: 60.0%…@quon-echosphere.bsky.social元ポストに書いてないこと、あと2つ。 ①「入れるだけ」の前に、モデルのダウンロードで電波が要る。Gemma 4 E2Bでファイル約2.6GB。機内で使うなら地上で落としておくのが前提。 ②「Googleがとんでもないのを出した」の「出した」は、実は2025年5月末の話。そこから育ってきたアプリで、今もREADMEには「実験的なベータ版」とある。 https://huggingface.co/litert-community/gemma-4-E2B-it-litert-lm1 条回复namnnumbrMeasuring Claude 4.7's tokenizer costsYes! I'd be totally happy with today's sonnet 4.6 if I could run it locally. If you can forgive the obviously-AI-generated writing, [CPUs Aren't Dead](https://seqpu.com/CPUsArentDead) makes an interesting point on AI progress: Google's latest, smallest Gemma model (Gemma 4 E2B), which can run on a…Cyrus WongZero-Egress Browser Edge AI Investigator — Running #Gemma4 E2B, #MediaPipe 3D Face Mesh & #LiteRT #Whisper in Web Workers #googledeveloperexpert dev.to/gde/google-a...

搜索日期

Mindket 的更多商品

查看 Mindket 的全部商品

anaksor-ocr

Sokheng · 工具包

这个模型从文档、收据和路牌照片里读取高棉语和英语文字,用一个检测器找文本行,再用识别器读每一行。适合需要在 Python 里做高棉语 OCR 的开发者。

新上架

Qwen2.5-7B-Instruct-GGUF

Qwen · 工具包

Qwen2.5-7B-Instruct 的 GGUF 文件,提供八种量化大小,可通过 llama.cpp 在本地聊天。适合想在自己电脑上用 7.6B 强力模型、又不想搭 Python 环境的人。

新上架

ACE-Step 1.5 XL SFT

ACE-Step · 工具包

用 4B 扩散解码器根据文字生成音乐,50 步并带引导控制,音频质量高于基础版。适合拥有 12 GB 或更多显存 GPU 的创作者。

新上架

开发类的相似商品

查看开发类的全部商品

Claude Code Skills & Plugins

alirezarezvani · 技能

为 Claude Code 和其他编程智能体提供 411 个现成技能,按角色分组,从工程、产品到营销、财务和合规。以插件方式安装。适合开发者和业务团队。

新上架29.8k

buzz

block · 工具包

可自行托管的工作空间,人和 AI 智能体在同样的房间里协作,基于 Nostr 中继,把每个动作记录为签名事件。适合想自己运行中继的团队。

新上架37.3k

plannotator

backnotprop · 工具包

把你的 AI 编程智能体的计划、规格和代码改动在浏览器里打开,让你加批注或评论,并把反馈直接发回给智能体。

新上架10.5k