Introduction of react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2
Model Details of react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2
Introduction
This repository hosts the
paraphrase-multilingual-MiniLM-L12-v2
model for the
React Native ExecuTorch
library. It includes the model exported for both the
XNNPACK
(Android / generic CPU) and
CoreML
(Apple) delegates, in multiple precisions, ready for use in the
ExecuTorch
runtime.
If you'd like to run these models in your own ExecuTorch runtime, refer to the
official documentation
for setup instructions.
Compatibility
If you intend to use this model outside of React Native ExecuTorch, make sure your runtime is compatible with the
ExecuTorch
version used to export the
.pte
files. For more details, see the compatibility note in the
ExecuTorch GitHub repository
. If you work with React Native ExecuTorch, the constants from the library will guarantee compatibility with the runtime used behind the scenes.
These models were exported using React Native ExecuTorch
v0.9.0
, which ships an ExecuTorch runtime derived from the
v1.2.0
release branch and an updated
pytorch/extension/llm/tokenizers
build that adds Unigram / Precompiled normalizer / Metaspace decoder support — required to load this model's tokenizer.
No forward compatibility
is guaranteed — older versions of the runtime may not work with these files; in particular, RNE ≤ 0.8.x cannot load
tokenizer.json
and will fail at the tokenizer-load step.
Int8 dynamic activation + Int4 weight (torchao), group_size=32. Embeddings stay fp32 — the bulk of the file is the 250 037 × 384 vocab matrix (≈ 384 MB), so the linear-layer quantization yields only a modest size win.
Half-sized via
compute_precision=FLOAT16
at CoreML compile. Cleanest size win on iOS.
Pick the variant that matches your platform + size/quality trade-off. The CoreML variants only load on Apple platforms; the XNNPACK variants load everywhere.
Repository Structure
xnnpack/
—
.pte
files partitioned for the XNNPACK delegate.
coreml/
—
.pte
files partitioned for the CoreML delegate (iOS / macOS only).
tokenizer.json
— HuggingFace fast-tokenizer dump (Unigram model + Precompiled normalizer + Metaspace decoder, derived from the upstream SentencePiece tokenizer). Wire this to
tokenizerSource
.
config.json
,
tokenizer_config.json
— upstream model/tokenizer configs, kept for reference and for non-RNE consumers.
The
.pte
path goes to
modelSource
;
tokenizer.json
is shared across all variants.
Model details
Architecture: 12-layer, 12-head BERT with hidden size 384 (initialized from
xlm-roberta-base
) + mean pooling + L2 norm. No additional dense projection head — the model output dim equals the encoder hidden size.
Output dimension:
384
.
Max sequence length:
126
tokens (128 − 2 for the
<s>
/
</s>
wrapping; the exporter concatenates these XLM-R-style start/end tokens at id 0 / 2 inside the program).
Vocabulary: 250 037 SentencePiece pieces.
Languages: 50+ (multilingual).
Typical strength: cross-lingual sentence similarity and medium-length sentence retrieval — designed for paraphrase mining and cross-lingual search. Short single-word queries in non-English languages are this model's weakest case; longer sentences and/or English inputs give markedly better ranking.
Export notes
The exporter wraps the HuggingFace transformer with the standard sentence-transformers contract: token IDs go in, the program prepends
<s>
and appends
</s>
, mean pooling is applied to the last hidden state weighted by the attention mask, and the output is L2-normalized to a 384-d vector.
Unsupported combinations (rejected by the exporter, documented for reference):
XNNPACK + fp16
—
model.to(torch.float16)
causes softmax / LayerNorm overflow and the runtime output is NaN. XNNPACK's size wins come from quantization, not fp16.
CoreML + 8da4w
—
coremltools
has no MIL mapping for the
torch.int8
tensors torchao emits (
KeyError: torch.int8
). The CoreML-native way to shrink further is
ct.optimize.coreml
palette/linear quantization, not torchao source transforms.
Runs of software-mansion react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 on huggingface.co
2.6K
Total runs
-20
24-hour runs
36
3-day runs
197
7-day runs
599
30-day runs
More Information About react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 huggingface.co Model
More react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 license Visit here:
react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 huggingface.co is an AI model on huggingface.co that provides react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2's model effect (), which can be used instantly with this software-mansion react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 model. huggingface.co supports a free trial of the react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 model, and also provides paid use of the react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2. Support call react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 model through api, including Node.js, Python, http.
react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 huggingface.co is an online trial and call api platform, which integrates react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2's modeling effects, including api services, and provides a free online trial of react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2, you can try react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 online for free by clicking the link below.
software-mansion react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 online free url in huggingface.co:
react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 is an open source model from GitHub that offers a free installation service, and any user can find react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 on GitHub to install. At the same time, huggingface.co provides the effect of react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 install, users can directly use react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 install url in huggingface.co: