File size: 1,871 Bytes
c27f901
 
 
 
 
 
 
 
 
 
 
 
 
 
acbb72b
c27f901
acbb72b
 
c27f901
acbb72b
c27f901
acbb72b
 
 
 
 
c27f901
acbb72b
c27f901
 
acbb72b
 
b5b7f1d
acbb72b
c27f901
 
acbb72b
 
 
 
c27f901
acbb72b
 
c27f901
acbb72b
 
 
 
c27f901
acbb72b
 
b5b7f1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
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).