EmbeddingGemma — Google DeepMind 的本地 AI 模型
作者: Jakub Rusinowski · 最后更新:
Google 面向端侧的嵌入模型,用于搜索、RAG 和聚类。EmbeddingGemma 2(2026 年 10 月)把文本、代码、图像、视频和音频映射到同一个 768 维向量空间,并可截断为 512、256 或 128 维。完整模型有 740M 参数,但仅文本配置只加载 270M,因此可以在笔记本和手机上轻松运行。Apache 2.0。嵌入模型不生成文本:它是 RAG 系统中负责检索的部分,与聊天模型配合使用。
变体
EmbeddingGemma 最小的变体在 BF16 下约需 2 GB 显存——量化权重加框架开销,不含 KV 缓存。
| 模型 | Q4 下显存 | 显存 | 上下文 | 运行 |
|---|---|---|---|---|
| EmbeddingGemma 2 → 740M (270M text-only) | ~2.3 GB | 8,192 | 云端托管标签 |
显存为 Q4_K_M 下的量化权重加开销,与 GPU 与显存检测器使用同一引擎计算。
如何在本地运行 EmbeddingGemma
安装 Ollama,然后拉取标签。
Ollama carries it as embeddinggemma-2 (270m text-only, 440m with images, 570m with audio, 740m with everything). Pull it with `ollama pull embeddinggemma-2:270m` and call it through the embeddings API (ollama.embed); an embedding model is not chatted with, so there is no `ollama run` command.
在上方选择一个尺寸,查看它自己的显存、速度估算和安装命令。
许可证
Commercial use permitted. No usage restrictions beyond attribution.
适用于: EmbeddingGemma 2推荐 GPU
目录中能在本地运行 EmbeddingGemma(至少 2 GB 显存)的最便宜 GPU 是 Intel Arc B570 (10 GB).
EmbeddingGemma — 常见问题
How much VRAM does EmbeddingGemma need?
EmbeddingGemma needs about 2 GB VRAM at BF16 quantization for its smallest variant. Variants: EmbeddingGemma 2 (2 GB, BF16). On Apple Silicon, unified memory counts toward this requirement.
Can I run EmbeddingGemma on an RTX 4090 (24 GB)?
Yes — EmbeddingGemma runs on an RTX 4090 (24 GB) and other 24 GB cards such as the RTX 3090. Smaller variants also fit comfortably on 8–16 GB GPUs at BF16.
What quantization should I use for EmbeddingGemma?
EmbeddingGemma is published only pre-quantised, so there is no Q4_K_M or Q8_0 build to choose between: each variant ships in the format listed beside it above (BF16). Use the vendor's runtime for that format, as the variant pages describe.
How do I run EmbeddingGemma with Ollama?
EmbeddingGemma is an embedding model: pull it with `ollama pull embeddinggemma-2:270m` and call it through Ollama's embeddings API. It turns text into vectors for search and RAG and is not chatted with, so there is no `ollama run` command.