EmbeddingGemma 2 audio tower for the Apple Neural Engine
The audio tower (audio_tower.* and embed_audio.*) of google/embeddinggemma-2,
converted to a fp16 Core ML ML Program that runs on the Apple Neural Engine. It is the audio half of the
multimodal EmbeddingGemma 2 served by inl serve --multimodal --device ane;
the text and image halves are in junmo-k/embeddinggemma-2-ane.
- Four functions share one set of weights:
audio_125,audio_250,audio_500,audio_750(about 5, 10, 20 and 30 s of 16 kHz audio; the longest clip is 30 s). - Input: log-mel frames of the clip plus three runtime masks; output: the audio soft tokens
[1,S,512]that go into the text tower's sequence. The host contract is inmanifest.json;selftest.json/selftest.binhold the reference vectors every function is checked against when it loads. - Accuracy against the Hugging Face fp32 model: cosine 0.9998 on a speech clip, 0.99995 inside a text; on real mp3 files the ANE and Metal engines agree to cosine >= 0.9996. Pure tones are the weakest case (0.9994 to 0.9998), a limit of fp16.
- Measured on an M4 Max: a 30 s clip embeds in about 0.4 s with about 0.6 GB of memory (the Metal engine needs several GB).
Built by scripts/ane/build_embeddinggemma2_audio.py of im-not-llm. Use is subject to the
Gemma Prohibited Use Policy. See NOTICE.
inl serve --multimodal --device ane
- Downloads last month
- 11
Model tree for NomaDamas/embeddinggemma-2-audio-ane
Base model
google/embeddinggemma-2