Add new SentenceTransformer model.
Browse files- README.md +46 -0
- config.json +2 -2
- model.onnx +2 -2
- model_description.json +3 -0
- modules.json +2 -2
- special_tokens_map.json +2 -2
- tokenizer.json +2 -2
- tokenizer_config.json +2 -2
- unigram.json +2 -2
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: light-embed
|
| 3 |
+
pipeline_tag: sentence-similarity
|
| 4 |
+
tags:
|
| 5 |
+
- sentence-transformers
|
| 6 |
+
- feature-extraction
|
| 7 |
+
- sentence-similarity
|
| 8 |
+
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# sbert-paraphrase-multilingual-MiniLM-L12-v2-onnx
|
| 12 |
+
|
| 13 |
+
This is the ONNX version of the Sentence Transformers model sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 for sentence embedding, optimized for speed and lightweight performance. By utilizing onnxruntime and tokenizers instead of heavier libraries like sentence-transformers and transformers, this version ensures a smaller library size and faster execution. Below are the details of the model:
|
| 14 |
+
- Base model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
|
| 15 |
+
- Embedding dimension: 384
|
| 16 |
+
- Max sequence length: 128
|
| 17 |
+
- File size on disk: 0.44 GB
|
| 18 |
+
- Pooling incorporated: Yes
|
| 19 |
+
|
| 20 |
+
This ONNX model consists all components in the original sentence transformer model:
|
| 21 |
+
Transformer, Pooling
|
| 22 |
+
|
| 23 |
+
<!--- Describe your model here -->
|
| 24 |
+
|
| 25 |
+
## Usage (LightEmbed)
|
| 26 |
+
|
| 27 |
+
Using this model becomes easy when you have [LightEmbed](https://pypi.org/project/light-embed/) installed:
|
| 28 |
+
|
| 29 |
+
```
|
| 30 |
+
pip install -U light-embed
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
Then you can use the model like this:
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
from light_embed import TextEmbedding
|
| 37 |
+
sentences = ["This is an example sentence", "Each sentence is converted"]
|
| 38 |
+
|
| 39 |
+
model = TextEmbedding('sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2')
|
| 40 |
+
embeddings = model.encode(sentences)
|
| 41 |
+
print(embeddings)
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
## Citing & Authors
|
| 45 |
+
|
| 46 |
+
Binh Nguyen / binhcode25@gmail.com
|
config.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:339467c0981e1533366089e4d6eaa0e4f381b3cefcc9ad3f2c2c979df7f80b82
|
| 3 |
+
size 641
|
model.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e247134cc572fea3ab45d397ca90e4b6887124c8ae07bccccb270f5294f73d87
|
| 3 |
+
size 470377453
|
model_description.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96a37086059ef59c319379938cd584a8b25fc450cda44ead1a173be3e2157da0
|
| 3 |
+
size 162
|
modules.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2cd80683bffa5067ef785c7ba2a662f26f5bc44e22eadb70a7d8d2268afa6977
|
| 3 |
+
size 188
|
special_tokens_map.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c785abebea9ae3257b61681b4e6fd8365ceafde980c21970d001e834cf10835
|
| 3 |
+
size 964
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa685fc160bbdbab64058d4fc91b60e62d207e8dc60b9af5c002c5ab946ded00
|
| 3 |
+
size 17083009
|
tokenizer_config.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0666eebf692422757e1dddf3c9fb1ded73ba3dc726c5828671fc89e45bf3609f
|
| 3 |
+
size 1416
|
unigram.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da145b5e7700ae40f16691ec32a0b1fdc1ee3298db22a31ea55f57a966c4a65d
|
| 3 |
+
size 14763260
|