Model reference · open weights

react-native-executorch-lfm2.5-embedding

Not for GPU servers Embeddings software-mansion Embeddings 1 build Its own licence terms 5k dl/mo

react-native-executorch-lfm2.5-embedding is an open-weight embedding model from software-mansion. Built for phones (ExecuTorch). It does not run on a GPU server.

  • react-native-executorch-lfm2.5-embedding is a 350M parameter sentence-similarity model by software-mansion, exported as ExecuTorch .pte files for on-device execution in React Native.
  • It uses a bidirectional LFM2.5 backbone with a hidden size of 1024 and outputs 1024-dimensional embeddings that are L2-normalized for cosine similarity.
  • The model is compatible with the ExecuTorch v1.4.1 runtime and is available in int4 and 8da4w precisions.

Summary of the software-mansion/react-native-executorch-lfm2.5-embedding-350m model card, 2026-10-01

What it is

Released bysoftware-mansion
Released2026-06-19

From the model card

What software-mansion says about react-native-executorch-lfm2.5-embedding

Read the model card

This repository hosts the lfm2.5-embedding-350m models exported for the React Native ExecuTorch library as ExecuTorch .pte programs, ready to run on device.

Upstream model: LFM2.5-Embedding-350M

Variants

PathBackendPrecision
mlx/lfm_2_5_embedding_350m_mlx_int4.ptemlxint4
xnnpack/lfm_2_5_embedding_350m_xnnpack_8da4w.ptexnnpack8da4w

Unshipped backends

A backend directory carrying a NOTES.md and no .pte was exported and not published. Its note records what went wrong.

Repository structure

config.json                                       43 B
coreml/NOTES.md                                   1.6 kB
mlx/config.json                                   1015 B
mlx/lfm_2_5_embedding_350m_mlx_int4.pte           180 MB
tokenizer.json                                    4.5 MB
tokenizer_config.json                             89.9 kB
xnnpack/config.json                               1.0 kB
xnnpack/lfm_2_5_embedding_350m_xnnpack_8da4w.pte  548 MB

Compatibility

These files are published for the ExecuTorch v1.4.1 runtime. ExecuTorch gives no forward compatibility guarantee, so an older runtime may fail to load them.

To use them in React Native ExecuTorch, pass the model constant shipped in the library's model registry to the corresponding task pipeline. See the documentation.

To load these files in your own ExecuTorch runtime, read the compatibility note first.

Model details

  • Architecture: LFM2.5-350M bidirectional backbone (hybrid conv + attention, hidden size 1024) + CLS pooling + L2 normalize. The exported graph bakes in CLS pooling and L2 normalization, so the runner consumes (input_ids, attention_mask) and receives the final unit-norm embedding directly.
  • Output dimension: 1024.
  • Similarity metric: cosine (embeddings are L2-normalized, so a dot product equals cosine).
  • Prompts: the model is trained with asymmetric query: / document: text prefixes. Prepend query: to search queries and document: to indexed passages for best retrieval quality.

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together, which is the basis of search and RAG.

Running it

Where it runs

Built for phones (ExecuTorch). It does not run on a GPU server.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms