Instructions to use mikewolfd/embeddinggemma-2-coreml-ane with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mikewolfd/embeddinggemma-2-coreml-ane with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mikewolfd/embeddinggemma-2-coreml-ane --local-dir embeddinggemma-2-coreml-ane
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: google/embeddinggemma-2
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
library_name: fast-embeddinggemma-2
|
| 6 |
+
tags:
|
| 7 |
+
- apple-silicon
|
| 8 |
+
- coreml
|
| 9 |
+
- ane
|
| 10 |
+
- embeddings
|
| 11 |
+
- fast-silicon
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# EmbeddingGemma-2 (9 Packed ANE + 3 CPU-SME `W8` Core ML Bundles & FP16 Weights)
|
| 15 |
+
|
| 16 |
+
Prebuilt `W8` packed Core ML Neural Engine (`s32..s512`) and CPU-SME (`s256..s512`) bundles plus FP16 MLX weights and tokenizer for [`google/embeddinggemma-2`](https://huggingface.co/google/embeddinggemma-2), packaged for [`fast-silicon`](https://github.com/mikewolfd/fast-silicon) (`fast-embeddinggemma-2`).
|
| 17 |
+
|
| 18 |
+
## Highlights
|
| 19 |
+
- **Full `2,048`-token context:** Unlike public `512`-token Core ML exports, preserves the full `2,048`-token window (`+0.0514` whole-passage ranking lift on `LegalBench-RAG`).
|
| 20 |
+
- **Throughput & Tier-1 (`500` items):**
|
| 21 |
+
- **Warm query / bulk corpus (`2,000` docs):** **`2.58 ms`** / **`48,803 tok/s`** on Base M5 (**`3.27×`** vs public Core ML INT8 `14,945 tok/s`); **`2.11 ms`** / **`38,517 tok/s`** on M4 Pro.
|
| 22 |
+
- **Tier-1 retrieval:** **`4.33×` EOT** vs stock MLX (`6.24×` vs Apple CoreAI) on Base M5 (`0.5376`, `57.1 s`); **`4.80×` EOT** on M4 Pro (`0.5365`, `74.9 s`).
|
| 23 |
+
|
| 24 |
+
## Included Files
|
| 25 |
+
- `ane_models/` — `emb2_pk_s{32..512}_w8.mlmodelc` (`9` buckets) and `emb2_cpu_s{256,384,512}_mix_w8.mlmodelc` (`3` buckets)
|
| 26 |
+
- `weights/embeddinggemma_2_f16.npz`
|
| 27 |
+
- `tokenizer/`
|