binhcode25 commited on
Commit
2123e8d
·
verified ·
1 Parent(s): c942aa4

Add new SentenceTransformer model.

Browse files
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:6300193cb75e01cf80c96decef7187dfb33094d97cc1490b7ead6ff134476e4e
3
- size 645
 
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:4412c3856f1d5a9f1cf518137f4f84d5c8c87b976751fc116318b7367bc02016
3
- size 470860361
 
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:8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
3
- size 229
 
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:378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d
3
- size 239
 
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:2c3387be76557bd40970cec13153b3bbf80407865484b209e655e5e4729076b8
3
- size 9081518
 
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:cac868512d555e9ac37a33c28300d36931ae4b5ddff43f1ca9bdacfe6fcd9dc8
3
- size 480
 
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:71b44701d7efd054205115acfa6ef126c5d2f84bd3affe0c59e48163674d19a6
3
- size 14763234
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da145b5e7700ae40f16691ec32a0b1fdc1ee3298db22a31ea55f57a966c4a65d
3
+ size 14763260