Google’s EmbeddingGemma 2 launch graphic with the model name on a dark blue geometric background.

Google EmbeddingGemma 2 brings offline AI search to photos, video and audio

Google’s open embedding model lets apps search text, photos, video and audio locally. See where to download it, try the demos and check the setup details.

Google’s new EmbeddingGemma 2 lets developers build AI search that runs locally on phones and laptops. Released October 6 under Apache 2.0, it represents text, code, photos, video and audio in the same searchable space. Apps can find relevant files without an exact filename match.

The full model has 740 million parameters, with vision and audio components that developers can omit for text-only apps. On a Pixel 11 Pro, Google reports roughly 191MB of active RAM for quantized text-only weights, or 567MB for its multimodal configuration. Memory use will depend on the setup. Google’s launch details.

Google’s EmbeddingGemma 2 launch graphic with the model name on a dark blue geometric background.
Google’s EmbeddingGemma 2 launch graphic with the model name on a dark blue geometric background.

Image credit: Google / Google DeepMind, from the EmbeddingGemma 2 announcement.

Try offline search on your phone

For a hands-on example, Google AI Edge Gallery now includes Instant Media Search and Video Moments Finder. The first searches a local photo or video collection using words or an example image; the second finds matching moments inside a recording. Google offers the demos on Android and iOS, with processing on the device. Its planned ML Kit service is still described as coming in the next few weeks. Google AI Edge demos.

Download and set up EmbeddingGemma 2

Developers can download the weights from Google’s Hugging Face model page. Its Python quick start uses SentenceTransformers, with SearchQuery for the search phrase and Document for the material being indexed. The model outputs 768-number vectors; 512, 256 and 128 dimensions are also supported when smaller indexes matter. Shortened vectors need to be normalized again, and queries and indexed items must use the same dimensions.

Two setup details are easy to miss: Google recommends bfloat16 or float32 instead of float16, and the smallest 128-dimension option has a larger quality tradeoff for multimedia search. Test retrieval on the files your app actually needs to find before choosing the cheapest configuration. Download and implementation guide.

*Image credit: Google / Google DeepMind, from the EmbeddingGemma 2 announcement.*

No comments yet