r/LocalLLaMA • u/Green_Ocean90 • 2d ago
Resources I stuffed embedding into my Apple Neural Engine
Now you can too!
Super speedy, low power embedding with Gemma 300m for text or multimodal Gemma2, both faster than llama.cpp on M4 (Mac Mini) and M4 Pro (MacBook).
Haven’t tested on other hardware, but did find a couple of small issues sent to Apple’s CoreML folks.
Code by Claud, vibes from me, provided as-is with no guarantee.
6
Upvotes
1
u/MIDZER0000 2d ago
Did you see the biggest speedup when embedding one query at a time or when indexing a batch of documents?
1
u/Adelka_Hermen 1d ago
how bad is the initial compilation overhead when loading the model for the first time? Sometimes that cold start penalty is the main bottleneck for local stuff.
1
u/Aggravating-Push-207 1d ago
Claude doesn't like local AI so do a review pass with even free-tier Antigravity