Sentence embeddings on the Apple Neural Engine (via ANEForge)
ANEForge
runs computation on the Apple
Neural Engine (ANE) directly, without CoreML. Its
SentenceTransformer
drop-in loads
any
sentence-transformers model from the Hub by repo id and runs the encoder on the
engine, matching the
sentence_transformers
API.
This is a usage card, not a re-hosted model: it points at the upstream weights and shows
how to run them on the ANE.
Install
pip install aneforge # numpy-only core; the dispatch shim builds on first use
Requires Apple Silicon under macOS 14+.
import aneforge
works anywhere; compiling and
dispatching to the ANE needs the hardware.
Use (drop-in for
sentence_transformers.SentenceTransformer
)
from aneforge.sentence_transformers import SentenceTransformer
model = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2") # any Hub repo id
emb = model.encode(["a sentence on the Neural Engine", "another one"],
normalize_embeddings=True)
print(emb.shape) # (2, 384)
int8=True
streams int8 weights (cosine ~0.9999 vs fp16). A model whose
modules.json
declares a Normalize module is always L2-normalised, as with upstream sentence-transformers.
Why the ANE
The ANE is the fixed-function accelerator on every recent Apple device. In production it
is reachable only through CoreML, which treats it as a schedulable option that can
silently fall back to CPU/GPU. ANEForge compiles a lazy tensor graph into a single ANE
program and dispatches it through the same daemon and kernel-driver stack Apple's own
frameworks use, so the encoder runs on the engine deterministically and off the CPU/GPU.
@article{bryngelson2026aneforge,
title = {ANEForge: Python for direct computation on the Apple Neural Engine},
author = {Bryngelson, Spencer H.},
journal = {arXiv preprint arXiv:2606.17090},
year = {2026},
doi = {10.48550/arXiv.2606.17090}
}
Runs of aneforge sentence-embeddings on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About sentence-embeddings huggingface.co Model
sentence-embeddings huggingface.co is an AI model on huggingface.co that provides sentence-embeddings's model effect (), which can be used instantly with this aneforge sentence-embeddings model. huggingface.co supports a free trial of the sentence-embeddings model, and also provides paid use of the sentence-embeddings. Support call sentence-embeddings model through api, including Node.js, Python, http.
sentence-embeddings huggingface.co is an online trial and call api platform, which integrates sentence-embeddings's modeling effects, including api services, and provides a free online trial of sentence-embeddings, you can try sentence-embeddings online for free by clicking the link below.
aneforge sentence-embeddings online free url in huggingface.co:
sentence-embeddings is an open source model from GitHub that offers a free installation service, and any user can find sentence-embeddings on GitHub to install. At the same time, huggingface.co provides the effect of sentence-embeddings install, users can directly use sentence-embeddings installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
sentence-embeddings install url in huggingface.co: