Google DeepMind 发布 EmbeddingGemma 2,基于 Gemma 4 架构、7.4 亿参数,将文本、图像、音频、视频与代码统一映射到同一嵌入空间,采用 Apache 2.0 许可。其代码性能在 MTEB Code 上从 68.76 提升至 78.68,面向端侧推理与离线多模态检索。
Google DeepMind released EmbeddingGemma 2, a 740M-parameter model built on the Gemma 4 architecture that maps text, images, audio, video, and code into a unified embedding space under an Apache 2.0 license. It improves MTEB Code performance from 68.76 to 78.68 and targets on-device inference and offline multimodal retrieval.
EmbeddingGemma 2 是设备端多模态嵌入能力最强的模型,可将文本、图像、音频和视频的组合原生映射到统一的嵌入空间。
EmbeddingGemma 2 is the most capable model for on-device multimodal embeddings, natively mapping combinations of text, images, audio, and video into a unified embedding space.
您的浏览器不支持音频元素。
Your browser does not support the audio element.
我们去年推出了 EmbeddingGemma,旨在为高质量文本嵌入提供一种轻量级选择,帮助您的应用直接在消费级硬件上组织、搜索和连接信息。开发者社区的反馈远超我们的预期。凭借超过 2000 万次下载,开发者已用它来驱动更智能的设备端搜索工具和隐私优先的检索增强生成(RAG)流水线。
We introduced EmbeddingGemma last year to provide a lightweight option for high-quality text embeddings, to help your apps organize, search, and connect information directly on consumer hardware. The developer community’s response blew past our expectations. With more than 20 million downloads, builders have used it to power smarter on-device search tools and privacy-first retrieval augmented generation (RAG) pipelines.
今天,我们推出 EmbeddingGemma 2,从文本扩展到统一代码、图像、视频和音频的共享嵌入空间。EmbeddingGemma 2 基于 Gemma 4 架构构建,并以商业友好的 Apache 2.0 许可证发布,拥有 7.4 亿参数,非常适合设备端推理。它可以帮助从语音备忘录中找到特定的视频片段,或根据文本查询搜索数小时的音频录音,所有这些都由一个原生的多模态模型处理。
Today, we’re launching EmbeddingGemma 2 , expanding beyond text to unify code, images, video, and audio in a shared embedding space. Built on the Gemma 4 architecture and released under a commercially permissive Apache 2.0 license, EmbeddingGemma 2 has 740 million parameters, making it optimal for on-device inference. It can help find a specific video clip from a voice memo, or search through hours of audio recordings based on a text query, all processed by a single, natively multimodal model.
EmbeddingGemma 2 采用与 Gemini Embedding 模型相同的技术构建,它:
Built from the same technology as Gemini Embedding models, EmbeddingGemma 2 is:
EmbeddingGemma 2 在保持 EmbeddingGemma 强大的多语言文本性能的同时,在代码性能上实现了显著的 9.92 分提升(在 MTEB Code 中,从 68.76 提升至 78.68),非常适合本地代码库索引、语义代码搜索和编码智能体检索。在图像、视频、文档和音频方面,它为参数低于 10 亿的模型树立了每参数质量的新标准,甚至超越了一些规模是其两倍以上的专用模型。
EmbeddingGemma 2 matches the strong multilingual text performance of EmbeddingGemma while delivering a significant 9.92-point improvement on code performance (in MTEB Code, from 68.76 to 78.68), making it well-suited for local codebase indexing, semantic code search, and coding agent retrieval. Across image, video, documents, and audio, it sets a new standard in quality-per-parameter for sub-1B models and even outperforms some specialist models more than twice its size.
在 EmbeddingGemma 2 模型卡中查找完整的评估指标和模型信息。
Find full evaluation metrics and model information in the EmbeddingGemma 2 model card .
EmbeddingGemma 2 将强大的能力直接带到边缘硬件。本地生成嵌入有助于确保数据隐私、降低流水线延迟,并赋能开发者构建完全离线运行的跨模态搜索和检索。
EmbeddingGemma 2 brings robust capabilities directly to edge hardware. Generating embeddings locally helps ensure data privacy, reduces pipeline latency, and empowers developers to build cross-modal search and retrieval that works entirely offline.
当与 Gemma 4 等生成模型配对时,EmbeddingGemma 2 能够实现理解复杂多模态数据的端侧 RAG 流水线。由于 EmbeddingGemma 2 构建于 Gemma 4 之上,并共享其文本分词器和音频编码器,开发者可以在统一流水线中同时运行两个模型,从而降低组合总内存占用。
When paired with generative models such as Gemma 4, EmbeddingGemma 2 enables on-device RAG pipelines that understand complex multimodal data. Because EmbeddingGemma 2 is built on Gemma 4 and shares its text tokenizer and audio encoder, developers can run both models together in a unified pipeline with a lower combined total memory footprint.
使用文本或图像,基于语义相似度在媒体库中查找最佳匹配项。可在 Google AI Edge Gallery 的 Instant Media Search 中试用。
Use text or an image to find the top matches in your media library based on semantic similarity. Try it in Google AI Edge Gallery ’s Instant Media Search.
使用文本或音频查询定位视频中的特定时刻。可在 Google AI Edge Gallery 的 Video Moments Finder 中试用。
Locate specific moments in video using text or audio queries. Try it in Google AI Edge Gallery ’s Video Moments Finder.
将用于本地文件检索的 EmbeddingGemma 2 与用于上下文推理的 Gemma 4 配对使用。可在 Google AI Edge Foresight 应用中试用。
Pair EmbeddingGemma 2 for local file retrieval with Gemma 4 for contextual reasoning. Try it in the Google AI Edge Foresight app.
通过 MediaPipe Decision Task API,利用多模态上下文创建实时决策引擎,用于分类、路由和预测能力。
Create real-time decision engines leveraging multimodal context for classification, routing, and predictive capabilities via the MediaPipe Decision Task API .
要了解如何使用 LiteRT 构建端侧搜索和 RAG 系统,请阅读 Google AI Edge 博客文章。
To learn how to build on-device search and RAG systems with LiteRT, read the Google AI Edge blog post .
我们与以下合作伙伴紧密合作,确保 EmbeddingGemma 2 在您构建的环境中立即可用:
We worked closely with the following partners to ensure EmbeddingGemma 2 works immediately where you build:
探索我们的开发者指南、文档以及推理和微调指南。
Explore our developer guide , documentation , and guides for inference and fine-tuning .