feat: add PARAPHRASE_MULTILINGUAL_MINILM_L12_V2 text embeddings model#1115
Draft
msluszniak wants to merge 1 commit into@bo/bumpTokenizerCapabilitiesfrom
Draft
feat: add PARAPHRASE_MULTILINGUAL_MINILM_L12_V2 text embeddings model#1115msluszniak wants to merge 1 commit into@bo/bumpTokenizerCapabilitiesfrom
msluszniak wants to merge 1 commit into@bo/bumpTokenizerCapabilitiesfrom
Conversation
78b5a13 to
f1341d2
Compare
9cd7623 to
27e7204
Compare
18 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the
paraphrase-multilingual-MiniLM-L12-v2sentence-transformer model — the second multilingual embeddings model after distiluse, completing #945. Ships all four export variants (xnnpack/{fp32,8da4w}, coreml/{fp32,fp16}) underMODEL_REGISTRY.ALL_MODELS; the playground exposes the two RNE-recommended variants (_8DA4Wand_COREML).384-d output, max 126 tokens, 50+ languages. Tokenizer is Unigram + Precompiled normalizer + Metaspace decoder — requires the bumped
pytorch/extension/llm/tokenizersruntime from #1114, so this PR blocks on that landing first and should be rebased onto main once #1114 merges.HF repo: software-mansion/react-native-executorch-paraphrase-multilingual-MiniLM-L12-v2 (
v0.9.0tag, layout mirrors distiluse).Introduces a breaking change?
Type of change
Tested on
Testing instructions
cd apps/text-embeddings && npx expo run:ios.Screenshots
Related issues
Closes the paraphrase-multilingual half of #945 (the distiluse half landed in #1098).
Checklist
Additional notes
Blocks on #1114. The local commit needed
--no-verifyonly because this branch sits on top of #1114, whose base predates the vision-camera v5 typecheck fix#1088; once #1114 rebases / merges with main, the lefthook noise resolves.