EmbeddingGemma 2 (270M, 768-dim) for Apple Neural Engine (Core AI)

Converted from litert-community/embeddinggemma-2-text-270m-litert-lm (embeddinggemma-2-text-270m.litertlm, revision 9be6e8b90982095dc05c2bd162e4b954ee4dbac7, SHA-256 2d079ee2f6f066b1f368e8d7c819f55214eaef1d0513b312321901f30ab286fb) into a 4-bucket asymmetric INT4 Core AI bundle targeting the Apple Neural Engine (iOS 27 / macOS 27).

Runs 100% on ANE (mps.fullyPlacedOnANE, mps.noGPUActivity, no GPU adapter) so semantic search and document indexing execute concurrently with Metal GPU LLM inference without GPU queue contention.

Artifact

File Format Bytes SHA-256
embeddinggemma-2-text-270m-ane.aar Apple Archive (lzfse) 128,245,086 122c2d86657c20aa567fb778801a46e3aec786eec7bbabff618f1c4a531b2ece
manifest.json Bundle manifest & per-file digests 1,047 β€”

Unpacked bundle layout (149,102,786 bytes)

embeddinggemma-2-text-270m-ane/
  text_encoder.aimodel/   # 4 static ANE buckets (128 / 256 / 512 / 1024 tokens), asymmetric INT4
    main.mlirb            # 76,255,119 bytes
    main.hash             # 32 bytes
    metadata.json         # 103 bytes
  embed_tokens.bin        # 68,157,472 bytes β€” AGET v1 mmap INT4 token table (262,144 x 512)
  tokenizer.model         # 4,689,013 bytes β€” exact SentencePiece BPE ModelProto
  manifest.json           # 1,047 bytes β€” format metadata and per-file SHA-256 digests

Unpack on macOS with:

mkdir -p embeddinggemma-2-text-270m-ane
aa extract -i embeddinggemma-2-text-270m-ane.aar -d embeddinggemma-2-text-270m-ane

Parity & Hardware Measurements

  • Cosine parity vs. LiteRT-LM true FP32 reference (English, French, CJK, Swift code, long PDF passages, 768-dim): 0.99923 min / 0.99949 avg (exceeding LiteRT GPU FP16's 0.98255 on CJK).
  • Physical iPhone 17 Pro (A19 Pro 16-core ANE, iOS 27.2.1):
    • 40-page PDF indexing (20 passages, warm ANE cache): 0.86 s (vs. 1.9 s on GPU)
    • Query embedding + retrieval: 7.7–9.2 ms (rank: 0 on 3/3)
    • Concurrent chat indexing while Gemma 4 E4B streams at 68.6 tok/s on Metal GPU: 45.9 ms (0% GPU contention)

License

Apache 2.0 (see LICENSE and NOTICE), like the upstream litert-community/embeddinggemma-2-text-270m-litert-lm build.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for PowerBeef02/embeddinggemma-2-text-270m-coreai-ane