Feature Extraction
sentence-transformers
Safetensors
Transformers
English
mistral
mteb
Eval Results (legacy)
text-embeddings-inference
Instructions to use Salesforce/SFR-Embedding-Mistral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Salesforce/SFR-Embedding-Mistral with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Salesforce/SFR-Embedding-Mistral") 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] - Transformers
How to use Salesforce/SFR-Embedding-Mistral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Salesforce/SFR-Embedding-Mistral")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Salesforce/SFR-Embedding-Mistral") model = AutoModel.from_pretrained("Salesforce/SFR-Embedding-Mistral", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -3277,7 +3277,12 @@ license: cc-by-nc-4.0
|
|
| 3277 |
|
| 3278 |
**SFR-Embedding by Salesforce Research.**
|
| 3279 |
|
| 3280 |
-
The model is trained on top of [E5-mistral-7b-instruct](https://huggingface.co/intfloat/e5-mistral-7b-instruct) and [Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3281 |
|
| 3282 |
More technical details will be updated later.
|
| 3283 |
|
|
@@ -3331,20 +3336,15 @@ scores = (embeddings[:2] @ embeddings[2:].T) * 100
|
|
| 3331 |
print(scores.tolist())
|
| 3332 |
```
|
| 3333 |
|
| 3334 |
-
|
| 3335 |
-
|
| 3336 |
-
SFR-Embedding Team
|
| 3337 |
|
|
|
|
| 3338 |
* Rui Meng*
|
| 3339 |
* Ye Liu*
|
| 3340 |
* Semih Yavuz
|
| 3341 |
* Yingbo Zhou
|
| 3342 |
* Caiming Xiong
|
| 3343 |
|
| 3344 |
-
This project is for research purposes only. Third-party datasets may be subject to additional terms and conditions under their associated licenses. Please refer to specific papers for more details:
|
| 3345 |
-
- [E5 Dataset](https://arxiv.org/abs/2212.03533)
|
| 3346 |
-
- [MTEB Dataset](https://arxiv.org/abs/2210.07316)
|
| 3347 |
-
- [Mistral Dataset](https://arxiv.org/abs/2310.06825)
|
| 3348 |
|
| 3349 |
|
| 3350 |
|
|
|
|
| 3277 |
|
| 3278 |
**SFR-Embedding by Salesforce Research.**
|
| 3279 |
|
| 3280 |
+
The model is trained on top of [E5-mistral-7b-instruct](https://huggingface.co/intfloat/e5-mistral-7b-instruct) and [Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1).
|
| 3281 |
+
|
| 3282 |
+
This project is for research purposes only. Third-party datasets may be subject to additional terms and conditions under their associated licenses. Please refer to specific papers for more details:
|
| 3283 |
+
- [MTEB benchmark](https://arxiv.org/abs/2210.07316)
|
| 3284 |
+
- [Mistral](https://arxiv.org/abs/2310.06825)
|
| 3285 |
+
- [E5-mistral-7b-instruct](https://arxiv.org/pdf/2401.00368.pdf)
|
| 3286 |
|
| 3287 |
More technical details will be updated later.
|
| 3288 |
|
|
|
|
| 3336 |
print(scores.tolist())
|
| 3337 |
```
|
| 3338 |
|
| 3339 |
+
Code for MTEB evaluation will be added soon.
|
|
|
|
|
|
|
| 3340 |
|
| 3341 |
+
SFR-Embedding Team (∗indicates lead contributors).
|
| 3342 |
* Rui Meng*
|
| 3343 |
* Ye Liu*
|
| 3344 |
* Semih Yavuz
|
| 3345 |
* Yingbo Zhou
|
| 3346 |
* Caiming Xiong
|
| 3347 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3348 |
|
| 3349 |
|
| 3350 |
|