binhcode25 commited on
Commit
4223aa7
1 Parent(s): 3e8c9bf

Add new SentenceTransformer model.

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -8,7 +8,7 @@ tags:
8
 
9
  ---
10
 
11
- # sbert-all-MiniLM-L6-v2-onnx
12
 
13
  This is the ONNX version of the Sentence Transformers model sentence-transformers/all-MiniLM-L6-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/all-MiniLM-L6-v2
@@ -47,7 +47,7 @@ Then you can use the model using onnx model name like this:
47
  from light_embed import TextEmbedding
48
  sentences = ["This is an example sentence", "Each sentence is converted"]
49
 
50
- model = TextEmbedding('sbert-all-MiniLM-L6-v2-onnx')
51
  embeddings = model.encode(sentences)
52
  print(embeddings)
53
  ```
 
8
 
9
  ---
10
 
11
+ # LightEmbed/sbert-all-MiniLM-L6-v2-onnx
12
 
13
  This is the ONNX version of the Sentence Transformers model sentence-transformers/all-MiniLM-L6-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/all-MiniLM-L6-v2
 
47
  from light_embed import TextEmbedding
48
  sentences = ["This is an example sentence", "Each sentence is converted"]
49
 
50
+ model = TextEmbedding('LightEmbed/sbert-all-MiniLM-L6-v2-onnx')
51
  embeddings = model.encode(sentences)
52
  print(embeddings)
53
  ```