跳到正文
原文
Google DeepMind:Blog·· 27 天前AI 评分56

Google DeepMind 发布开源轻量多模态嵌入模型 EmbeddingGemma 2

EmbeddingGemma 2: an open, lightweight multimodal embedding model

文章要点
  • 1Google DeepMind 发布开源轻量多模态嵌入模型 EmbeddingGemma 2,统一文本、代码、图像、视频与音频
  • 2模型 740M 参数,基于 Gemma 4 架构,Apache 2.0 许可,官方称在 sub-1B 多模态嵌入模型中得分领先
  • 3官方称 MTEB Code 得分从 68.76 升至 78.68;8K 上下文可处理最多 5.5 分钟音频、29 张图片或 58 帧视频
  • 4量化后在 Pixel 11 Pro 上文本任务最低约 191MB 内存;MRL 截断向量至 128 维最高可省 6x 存储
决策要点

多模态嵌入模型被压到端侧可用量级,跨模态搜索和 RAG 可以不依赖云端完成,嵌入环节本地化有了现实选项。

  • 影响:文档与音视频检索可把嵌入计算留在本地,数据不出设备,降低云调用成本与延迟;Apache 2.0 允许商用,离线和嵌入式场景有了可直接集成的底座;与 Gemma 4 共享分词器和音频编码器,联合部署内存占用更低。
  • 参考:可考虑在客服知识库或内部音视频检索场景测算端侧方案的内存与存储账,对比云端嵌入成本;值得按 MRL 的 512、256、128 维档位估算本地向量库能省多少空间。
  • 依据:性能与内存数据均为 Google DeepMind 官方口径,尚无独立评测;模型开放与部署渠道以官方博客为准。
正文

Oct 06, 2026

|

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.


Sahil Dua

Research Engineer, Google DeepMind

Henrique Schechter Vera

Research Engineer, Google DeepMind


EmbeddingGemma 2

Listen to article

[[duration]] minutes

This content is generated by Google AI. Generative AI is experimental

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.

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.

Built from the same technology as Gemini Embedding models, EmbeddingGemma 2 is:

  • Best-in-class for its size: Achieves leading scores among sub-1B multimodal embedders for its size across benchmarks like MTEB (Massive Text Embedding Benchmark) Code and MAEB (Massive Audio Embedding Benchmark), while matching or outperforming many larger models across text, vision, and audio tasks.
  • Modular by design: Requires as little as 270M parameters for text-only workloads with optional vision (170M) and audio (300M) encoders for full multimodal support.
  • Storage-efficient: Using Matryoshka Representation Learning (MRL), developers can dynamically truncate output vectors from 768 dimensions down to 512, 256, or 128 dimensions. This provides up to 6x storage reduction for local vector databases and memory usage.
  • Optimized for on-device performance: Runs efficiently within tight resource constraints. With quantization, on a Google Pixel 11 Pro, EmbeddingGemma 2 requires as little as ~191MB active RAM for text-only weights and ~567MB for the full multimodal model.
  • Extended context ready: Features an 8K token context window (4x larger than EmbeddingGemma 1), allowing it to process up to 5.5 minutes of audio, 29 images, 58 video frames, or interleaved combinations thereof directly on local hardware.

Achieving top-tier quality for code, vision, and audio

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.

Massive Text Embedding Benchmark (Code)

Massive Image Embedding Benchmark (Lite)

Massive Audio Embedding Benchmark

Find full evaluation metrics and model information in the EmbeddingGemma 2 model card.

Enabling semantic search, routing, and retrieval, fully on-device

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.

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.

To learn how to build on-device search and RAG systems with LiteRT, read the Google AI Edge blog post.

Getting started with EmbeddingGemma 2

We worked closely with the following partners to ensure EmbeddingGemma 2 works immediately where you build:

  • Download the models: Find the model weights on Hugging Face and Kaggle, with Gemini Enterprise Agent Platform Model Garden availability coming soon. Visit LiteRT Community on Hugging Face for models optimized for on-device.
  • On-device deployment: Develop cross-platform apps with Google AI Edge MediaPipe for turnkey embedding, retrieval & decision tasks or LiteRT for custom model integration. Build for the browser with transformers.js or WebGPU.
  • Use your favorite development tools: Serve the model efficiently using transformers, sentence-transformers, MLX, vLLM, llama.cpp, SGLang, Ollama, and LMStudio. Store your embedding vectors with Qdrant.
  • Fine-tuning: Follow guidance by Unsloth for how to fine-tune EmbeddingGemma 2 for your use cases.

Explore our developer guide, documentation, and guides for inference and fine-tuning.

来源:Google DeepMind:Blog · deepmind.google