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 lines68286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865683168666867686868696827 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.
Please refer to our paper at [https://arxiv.org/pdf/2212.03533.pdf](https://arxiv.org/pdf/2212.03533.pdf).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