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
Update model card with plain MLX tok/s and q/s comparisons
Browse files6 unmodified lines7891011122 unmodified lines15161718192021222324256 unmodified lines- apple-silicon- coreml- ane- embeddings- fast-silicon---2 unmodified linesPrebuilt `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`).## Highlights- **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`).- **Throughput & Tier-1 (`500` items):**- **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.- **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`).## 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)6 unmodified lines789101112132 unmodified lines161718192021222324252627282930313233346 unmodified lines- apple-silicon- coreml- ane- mlx- embeddings- fast-silicon---2 unmodified linesPrebuilt `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`).## Throughput & Latency vs. Plain MLX and Public Core ML (`tok/s`)| Workload / Suite | Host | Plain MLX (`gpu`) | ANE-only (`ane`) | **`hetero` (GPU + ANE)** | Public Baselines || :--- | :--- | ---: | ---: | ---: | :--- || Corpus benchmark (`2026-11-24`) | Base M5 | `30,430 tok/s` | `21,888 tok/s` | **`49,106 tok/s`** (**`1.61Γ`** vs. plain MLX) | β || Corpus benchmark (`2026-11-24`) | M4 Pro | `17,936 tok/s` | `21,445 tok/s` | **`36,809 tok/s`** (**`2.05Γ`** vs. plain MLX) | β || 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Γ`** vs. plain MLX) | β || Warm `B=1` `24`-token query | Base M5 | `5.02 ms` | **`2.58 ms`** (**`1.94Γ`** vs. plain MLX) | β | `8.48 ms` stock `mlx-vlm`; `2.59 ms` OpenInfinity INT8 || Warm `B=1` `24`-token query | M4 Pro | `7.72 ms` | **`2.08β2.11 ms`** (**`3.72Γ`** vs. plain MLX) | β | `8.39 ms` stock `mlx-vlm`; `2.59 ms` OpenInfinity INT8 |- **Full `2,048`-token context & Tier-1 (`500` items):** Unlike public `512`-token Core ML exports (`+0.0514` whole-passage `LegalBench-RAG` lift), delivers **`4.33Γ` EOT** vs stock `mlx-vlm` (`6.24Γ` vs Apple CoreAI) on Base M5 (`0.5376`, `57.1 s`, `3.43 GB` vs stock `246.9 s`) and **`4.80Γ` EOT** on M4 Pro (`0.5365`, `74.9 s`, `2.49 GB` vs stock `358.6 s`).## 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)
README.md+14-5