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
File size: 2,844 Bytes
3ead259 fd8e873 3ead259 4b76da4 fd8e873 4b76da4 fd8e873 4b76da4 3ead259 | 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 | ---
license: apache-2.0
base_model: google/embeddinggemma-2
base_model_relation: quantized
library_name: fast-embeddinggemma-2
tags:
- apple-silicon
- coreml
- ane
- mlx
- embeddings
- fast-silicon
---
# EmbeddingGemma-2 (9 Packed ANE + 3 CPU-SME `W8` Core ML Bundles & FP16 Weights)
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`).
## Our Options vs. Stock `mlx-vlm` (8-bit GPU) and Public Core ML (`tok/s` & `ms`)
| Workload / Suite | Host | Stock `mlx-vlm` (8-bit GPU) | `fast-embeddinggemma-2` GPU | ANE-only (`ane`) | **`fast-embeddinggemma-2` `hetero`** | Public Core ML / CoreAI |
| :--- | :--- | ---: | ---: | ---: | ---: | :--- |
| Corpus benchmark (`2026-11-24`) | Base M5 | `64.91 docs/s` *(text probe)* | `30,430 tok/s` | `21,888 tok/s` | **`49,106 tok/s` (`1.61Γ` our GPU)** | β |
| Corpus benchmark (`2026-11-24`) | M4 Pro | `46.05 docs/s` *(text probe)* | `17,936 tok/s` | `21,445 tok/s` | **`36,809 tok/s` (`2.05Γ` our GPU)** | β |
| Matched `2,000`-doc corpus (`551,889` toks) | Base M5 | β | β | β | **`48,803 tok/s`** | `14,945 tok/s` OpenInfinity INT8 (`3.27Γ`); `12,482 tok/s` CoreAI BF16 |
| Matched `2,000`-doc corpus (`551,889` toks) | M4 Pro | β | β | β | **`38,517 tok/s`** | `14,294 tok/s` OpenInfinity INT8; `14,251 tok/s` FluidInference FP16 |
| Document OCR (`2,000` docs, `hetero2`) | M4 Pro | β | `11,844 tok/s` (`47.3 s`) | β | **`32,569 tok/s` (`17.2 s`, `2.75Γ` our GPU)** | β |
| Warm `B=1` `24`-token query | Base M5 | `8.48 ms` | `5.02 ms` | **`2.58 ms` (`3.29Γ` vs stock `mlx-vlm`)** | β | `2.59 ms` OpenInfinity INT8; `9.38 ms` CoreAI BF16 |
| Warm `B=1` `24`-token query | M4 Pro | `8.39 ms` | `7.72 ms` | **`2.08β2.11 ms` (`4.03Γ` vs stock `mlx-vlm`)** | β | `2.59 ms` OpenInfinity INT8; `2.70 ms` FluidInference FP16 |
| Tier-1 Retrieval (`500` items) | Base M5 | `246.9 s` (`1.086` EOT, `19.41 GB`) | β | β | **`57.1 s` (`4.707` EOT, `4.33Γ` vs stock, `3.43 GB`)** | `148.9 s` OpenInfinity INT8 (`512`-tok cap) |
| Tier-1 Retrieval (`500` items) | M4 Pro | `358.6 s` (`0.746` EOT, `39.03 GB`) | β | β | **`74.9 s` (`3.583` EOT, `4.80Γ` vs stock, `2.49 GB`)** | `157.2 s` OpenInfinity INT8 (`512`-tok cap) |
- **Full `2,048`-token context:** Unlike public `512`-token Core ML exports, preserves the full `2,048`-token window (`+0.0514` whole-passage `LegalBench-RAG` ranking lift).
## Included Files
- `ane_models/` β `emb2_pk_s{32..512}_w8.mlmodelc` (`9` buckets) and `emb2_cpu_s{256,384,512}_mix_w8.mlmodelc` (`3` buckets)
- `weights/embeddinggemma_2_f16.npz`
- `tokenizer/`
|