Open Multimodal Embeddings? Use EmbeddingGemma 2 (740M, Gemma 4)

Google DeepMind released EmbeddingGemma 2, an open multimodal embedding model that maps text, code, images, video and audio into a single 768‑dimensional space. The model has 740 M parameters, an 8 192‑token context window and is released under Apache 2.0. Weights can be downloaded today from Hugging Face, Kaggle, Ollama and other community hubs, with GGUF and LiteRT builds ready for on‑device use.

The architecture is modular: a 270 M text‑and‑code backbone is always active; a 170 M vision encoder and a 300 M audio encoder can be added as needed. Developers load only the parts they require – 270 M for text‑only, 440 M for text+vision, 570 M for text+audio or the full 740 M for all modalities – yet every configuration produces vectors in the same shared space, allowing a text query to retrieve an image or a voice memo to match a video clip.

Benchmarks show strong performance for sub‑1B multimodal embedders: 78.68 on MTEB Code, 61.36 on multilingual MTEB, 64.64 on image MIEB lite, 69.54 on sound MSEB and 49.39 on audio MAEB. Compared with the first version, code retrieval improves by nearly 10 points while multilingual quality stays flat.

Quantization‑aware training lets the model run in INT4/INT8. On a Pixel 11 Pro the text‑only version needs ~191 MB RAM and the full multimodal version ~567 MB. On a MacBook M5 Pro the vision encoder processes an image in ~37 ms.

Matryoshka Representation Learning lets developers truncate embeddings to 512, 256 or 128 dimensions with minimal loss; dropping to 128 dimensions cuts storage six‑fold and is recommended for text‑only workloads. The 8 K token window easily handles long documents, interleaved media or several minutes of audio.

For teams seeking privacy‑first, low‑latency RAG, on‑device search or cross‑modal retrieval, EmbeddingGemma 2 offers a ready‑to‑use, flexible and efficient solution.

#AI #ML #Embedding #RAG #OnDevice #OpenSource