Instructions to use elastic/multilingual-e5-small-optimized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use elastic/multilingual-e5-small-optimized with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("elastic/multilingual-e5-small-optimized") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Commit ·
2783488
1
Parent(s): 8b08e58
Clarifies running
Browse files
README.md
CHANGED
|
@@ -101,7 +101,7 @@ language:
|
|
| 101 |
- zh
|
| 102 |
---
|
| 103 |
|
| 104 |
-
A quantized version of [multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small)
|
| 105 |
|
| 106 |
[Text Embeddings by Weakly-Supervised Contrastive Pre-training](https://arxiv.org/pdf/2212.03533.pdf).
|
| 107 |
Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, Furu Wei, arXiv 2022
|
|
|
|
| 101 |
- zh
|
| 102 |
---
|
| 103 |
|
| 104 |
+
A quantized version of [multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small). The PyTorch traced model is runnable only on Linux with Intel CPUs.
|
| 105 |
|
| 106 |
[Text Embeddings by Weakly-Supervised Contrastive Pre-training](https://arxiv.org/pdf/2212.03533.pdf).
|
| 107 |
Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, Furu Wei, arXiv 2022
|