--- license: apache-2.0 base_model: google/embeddinggemma-2 pipeline_tag: feature-extraction language: - multilingual tags: - coreml - apple-neural-engine - embeddings - sentence-similarity - text-only --- # EmbeddingGemma 2 for Core ML AnyLab's conversion of [Google's EmbeddingGemma 2](https://huggingface.co/google/embeddinggemma-2) text encoder for Apple Silicon, targeting macOS 15 or later. | | | |---|---| | Output | 768-dimensional, L2-normalized embeddings | | Precision | FP16 encoder; FP32 final normalization | | Functions | `s128`, `s256`, `s512`, `s1024`, `s2048` | | Package | 574.4 MB, with shared weights | | License | Apache-2.0 | Download the model and tokenizer: ```sh hf download anylab/embeddinggemma-2-coreml \ --include 'EmbeddingGemma2Owned.mlpackage/**' --include 'tokenizer*.json' \ --include LICENSE --include NOTICE --include 'licenses/QVAC-MIT.txt' \ --local-dir embeddinggemma-2-coreml ``` Choose the smallest function that fits the input **after prompts and special tokens**. Load larger functions on demand and release them when idle; sharing weights on disk does not share their runtime allocations. First loading can take minutes. Core ML's `cpuAndNeuralEngine` setting still permits CPU work. Validated on an M2 Air with 16 GB RAM: minimum cosine **0.999927** against 16 stock-model reference inputs. Full-app safety on 8 GB remains unmeasured. - [Usage, prompts and input shapes](docs/usage.md) - [Conversion source and reproduction instructions](conversion/README.md) - [Measurements and limitations](docs/technical-notes.md) - [Source pins and model hashes](release-manifest.json) The converter and detailed reports live in this repository. For deployments, pin an immutable HF revision and verify file hashes. This is an independent conversion, not an official Google release. See [licence and attribution](NOTICE).