Sentence Similarity
sentence-transformers
PyTorch
ONNX
Safetensors
OpenVINO
xlm-roberta
mteb
Sentence Transformers
Eval Results (legacy)
Eval Results
text-embeddings-inference
Run this model with HF Jobs
Run intfloat/multilingual-e5-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/intfloat/multilingual-e5-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/intfloat/multilingual-e5-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use intfloat/multilingual-e5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use intfloat/multilingual-e5-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("intfloat/multilingual-e5-base") 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] - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files6827 unmodified lines68286829683068316832683368346827 unmodified lines## Training DetailsPlease refer to our paper at [https://arxiv.org/pdf/2212.03533.pdf](https://arxiv.org/pdf/2212.03533.pdf).## Benchmark Evaluation6827 unmodified lines6828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696827 unmodified lines## Training Details**Initialization**: [xlm-roberta-base](https://huggingface.co/xlm-roberta-base)**First stage**: contrastive pre-training with weak supervision| Dataset | Weak supervision | # of text pairs ||--------------------------------------------------------------------------------------------------------|---------------------------------------|-----------------|| Filtered [mC4](https://huggingface.co/datasets/mc4) | (title, page content) | 1B || [CC News](https://huggingface.co/datasets/intfloat/multilingual_cc_news) | (title, news content) | 400M || [NLLB](https://huggingface.co/datasets/allenai/nllb) | translation pairs | 2.4B || [Wikipedia](https://huggingface.co/datasets/intfloat/wikipedia) | (hierarchical section title, passage) | 150M || Filtered [Reddit](https://www.reddit.com/) | (comment, response) | 800M || [S2ORC](https://github.com/allenai/s2orc) | (title, abstract) and citation pairs | 100M || [Stackexchange](https://stackexchange.com/) | (question, answer) | 50M || [xP3](https://huggingface.co/datasets/bigscience/xP3) | (input prompt, response) | 80M || [Miscellaneous unsupervised SBERT data](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) | - | 10M |**Second stage**: supervised fine-tuning| Dataset | Language | # of text pairs ||----------------------------------------------------------------------------------------|--------------|-----------------|| [MS MARCO](https://microsoft.github.io/msmarco/) | English | 500k || [NQ](https://github.com/facebookresearch/DPR) | English | 70k || [Trivia QA](https://github.com/facebookresearch/DPR) | English | 60k || [NLI from SimCSE](https://github.com/princeton-nlp/SimCSE) | English | <300k || [ELI5](https://huggingface.co/datasets/eli5) | English | 500k || [DuReader Retrieval](https://github.com/baidu/DuReader/tree/master/DuReader-Retrieval) | Chinese | 86k || [KILT Fever](https://huggingface.co/datasets/kilt_tasks) | English | 70k || [KILT HotpotQA](https://huggingface.co/datasets/kilt_tasks) | English | 70k || [SQuAD](https://huggingface.co/datasets/squad) | English | 87k || [Quora](https://huggingface.co/datasets/quora) | English | 150k || [Mr. TyDi](https://huggingface.co/datasets/castorini/mr-tydi) | 11 languages | 50k || [MIRACL](https://huggingface.co/datasets/miracl/miracl) | 16 languages | 40k |For all labeled datasets, we only use its training set for fine-tuning.For other training details, please refer to our paper at [https://arxiv.org/pdf/2212.03533.pdf](https://arxiv.org/pdf/2212.03533.pdf).## Benchmark Evaluation
README.md+36-1