EmbeddingGemma 2, repackaged for TFLite

Google's EmbeddingGemma 2, split into plain TFLite files for search by meaning in WM Keyboard. It includes the 270M text model and the image encoder from the 440M text and image model. Google trained both, and litert-community published the source bundles. This is not an official Google release.

Source Revision
litert-community/embeddinggemma-2-text-270m-litert-lm 9be6e8b9
litert-community/embeddinggemma-2-text-vision-440m-litert-lm e301f74d

Changes: external weights were put back into the TFLite files, unused signatures were removed, and the int4 token table became a flat WMTE file. Nothing was quantized again. The remaining signatures give exactly the same output as the source bundles. The build script is repack_embeddinggemma2.py.

Text input is <bos>, the tokens, then <eos>. Start searches with task: search result | query: and stored text with title: none | text: . L2-normalise the 768 output values.

Full input and output shapes, build notes and measurements are in the data repository.

License

Apache-2.0, copyright Google LLC.

Files

File Bytes SHA-256
eg2-image-end.bin 2,048 e6599ba28ac69c35da660a0f938b589ffc94d203bcbd6797ec46df71d7c5990a
eg2-text-encoder.tflite 79,039,928 305850a79ab1a38a8d3862f5ac7d9500a386ac969c4f9783da6d81237ead038b
eg2-tokenizer.model 4,689,013 e594c8a90eb08d8bda498ff4747977dc827ae0c3c56b5c0d41a605a22d02ef03
eg2-tokens.bin 68,157,456 3bc62fc4be4c2c9bc5c9902e8b41a19e698a6b218314390fa2411f4242ae5160
eg2-vision-adapter.tflite 1,580,532 fe5d26b805e24163ac495ef269490c6572255559bd17881cd0f66ce2758dfe3b
eg2-vision-encoder.tflite 218,970,136 b7f069019f953e00910ad4b4b5fb029180ea3faa4fe0fa30d6fc2d37198d908b
Downloads last month
12
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for wasi-master/embeddinggemma-2-tflite