alt.freeweights.embed / multilingual-e5-large
From: intfloat <huggingface.co/intfloat>Newsgroups: alt.freeweights.embedSubject:

multilingual-e5-large

Date: 2026-11-14Commit: 3d7cfbdSigned: 2DC28CC7B26A283B ✓

Feature extraction model with 560M parameters. Onnx and openvino and safetensors weights, 9.56 GB in all. Published by intfloat under MIT.

560M params9.56GBmultilingual-e5-largeonnx openvino safetensorspermissive
FactsParams560MSize9.56 GBFormatsonnx, openvino, safetensorsTaskfeature extractionLicenseMITFrom sourcepermissive
$ fw get intfloat/multilingual-e5-large
# manifest sha256 4349c014b5c3… · 9.56 GB · 44 files
$ fw verify ./multilingual-e5-large intfloat/multilingual-e5-large
From sourceHosted (signed)intfloat/multilingual-e5-largeLast check: 2026-11-14 21:09 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Evaluate with

Overview

Size
9.56 GB
Weights
2.24 GB (safetensors)
Parameters
560M
Formats
onnx, openvino, safetensors
Task
feature extraction
License
MIT (permissive)
Files
44, each with a sha256
Publisher
intfloat
Added
2026-11-14
Section
alt.freeweights.embed
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:09 UTCpassed

Model card

From the publisher at commit 3d7cfbd. Shown as plain text with links; images open at the publisher.

Multilingual-E5-large#

Multilingual E5 Text Embeddings: A Technical Report. Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, Furu Wei, arXiv 2024

This model has 24 layers and the embedding size is 1024.

Usage#

Below is an example to encode queries and passages from the MS-MARCO passage ranking dataset.

import torch.nn.functional as F

from torch import Tensor
from transformers import AutoTokenizer, AutoModel


def average_pool(last_hidden_states: Tensor,
                 attention_mask: Tensor) -> Tensor:
    last_hidden = last_hidden_states.masked_fill(~attention_mask[..., None].bool(), 0.0)
    return last_hidden.sum(dim=1) / attention_mask.sum(dim=1)[..., None]


# Each input text should start with "query: " or "passage: ", even for non-English texts.
# For tasks other than retrieval, you can simply use the "query: " prefix.
input_texts = ['query: how much protein should a female eat',
               'query: 南瓜的家常做法',
               "passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
               "passage: 1.清炒南瓜丝 原料:嫩南瓜半个 调料:葱、盐、白糖、鸡精 做法: 1、南瓜用刀薄薄的削去表面一层皮,用勺子刮去瓤 2、擦成细丝(没有擦菜板就用刀慢慢切成细丝) 3、锅烧热放油,入葱花煸出香味 4、入南瓜丝快速翻炒一分钟左右,放盐、一点白糖和鸡精调味出锅 2.香葱炒南瓜 原料:南瓜1只 调料:香葱、蒜末、橄榄油、盐 做法: 1、将南瓜去皮,切成片 2、油锅8成热后,将蒜末放入爆香 3、爆香后,将南瓜片放入,翻炒 4、在翻炒的同时,可以不时地往锅里加水,但不要太多 5、放入盐,炒匀 6、南瓜差不多软和绵了之后,就可以关火 7、撒入香葱,即可出锅"]

tokenizer = AutoTokenizer.from_pretrained('intfloat/multilingual-e5-large')
model = AutoModel.from_pretrained('intfloat/multilingual-e5-large')

# Tokenize the input texts
batch_dict = tokenizer(input_texts, max_length=512, padding=True, truncation=True, return_tensors='pt')

outputs = model(**batch_dict)
embeddings = average_pool(outputs.last_hidden_state, batch_dict['attention_mask'])

# normalize embeddings
embeddings = F.normalize(embeddings, p=2, dim=1)
scores = (embeddings[:2] @ embeddings[2:].T) * 100
print(scores.tolist())

Supported Languages#

This model is initialized from xlm-roberta-large and continually trained on a mixture of multilingual datasets. It supports 100 languages from xlm-roberta, but low-resource languages may see performance degradation.

Training Details#

Initialization: xlm-roberta-large

First stage: contrastive pre-training with weak supervision

DatasetWeak supervision# of text pairs
Filtered mC4(title, page content)1B
CC News(title, news content)400M
NLLBtranslation pairs2.4B
Wikipedia(hierarchical section title, passage)150M
Filtered Reddit(comment, response)800M
S2ORC(title, abstract) and citation pairs100M
Stackexchange(question, answer)50M
xP3(input prompt, response)80M
Miscellaneous unsupervised SBERT data-10M

Second stage: supervised fine-tuning

DatasetLanguage# of text pairs
MS MARCOEnglish500k
NQEnglish70k
Trivia QAEnglish60k
NLI from SimCSEEnglish<300k
ELI5English500k
DuReader RetrievalChinese86k
KILT FeverEnglish70k
KILT HotpotQAEnglish70k
SQuADEnglish87k
QuoraEnglish150k
Mr. TyDi11 languages50k
MIRACL16 languages40k

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/2402.05672.

Benchmark Results on Mr. TyDi#

ModelAvg MRR@10arbnenfiidjakoruswteth
BM2533.336.741.315.128.838.221.728.132.939.642.441.7
mDPR16.726.025.816.211.314.618.121.918.57.310.613.5
BM25 + mDPR41.749.153.528.436.545.535.536.242.740.542.049.2
multilingual-e5-small64.471.566.354.557.763.255.454.360.865.489.170.1
multilingual-e5-base65.972.365.058.560.864.956.655.862.769.086.672.7
multilingual-e5-large70.577.573.260.866.868.562.561.665.872.790.276.2

MTEB Benchmark Evaluation#

Check out unilm/e5 to reproduce evaluation results on the BEIR and MTEB benchmark.

Support for Sentence Transformers#

Below is an example for usage with sentence_transformers.

from sentence_transformers import SentenceTransformer
model = SentenceTransformer('intfloat/multilingual-e5-large')
input_texts = [
    'query: how much protein should a female eat',
    'query: 南瓜的家常做法',
    "passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 i     s 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or traini     ng for a marathon. Check out the chart below to see how much protein you should be eating each day.",
    "passage: 1.清炒南瓜丝 原料:嫩南瓜半个 调料:葱、盐、白糖、鸡精 做法: 1、南瓜用刀薄薄的削去表面一层皮     ,用勺子刮去瓤 2、擦成细丝(没有擦菜板就用刀慢慢切成细丝) 3、锅烧热放油,入葱花煸出香味 4、入南瓜丝快速翻炒一分钟左右,     放盐、一点白糖和鸡精调味出锅 2.香葱炒南瓜 原料:南瓜1只 调料:香葱、蒜末、橄榄油、盐 做法: 1、将南瓜去皮,切成片 2、油     锅8成热后,将蒜末放入爆香 3、爆香后,将南瓜片放入,翻炒 4、在翻炒的同时,可以不时地往锅里加水,但不要太多 5、放入盐,炒匀      6、南瓜差不多软和绵了之后,就可以关火 7、撒入香葱,即可出锅"
]
embeddings = model.encode(input_texts, normalize_embeddings=True)

Package requirements

pip install sentence_transformers~=2.2.2

Contributors: michaelfeil

FAQ#

1. Do I need to add the prefix "query: " and "passage: " to input texts?

Yes, this is how the model is trained, otherwise you will see a performance degradation.

Here are some rules of thumb:

  • Use "query: " and "passage: " correspondingly for asymmetric tasks such as passage retrieval in open QA, ad-hoc information retrieval.
  • Use "query: " prefix for symmetric tasks such as semantic similarity, bitext mining, paraphrase retrieval.
  • Use "query: " prefix if you want to use embeddings as features, such as linear probing classification, clustering.

2. Why are my reproduced results slightly different from reported in the model card?

Different versions of transformers and pytorch could cause negligible but non-zero performance differences.

3. Why does the cosine similarity scores distribute around 0.7 to 1.0?

This is a known and expected behavior as we use a low temperature 0.01 for InfoNCE contrastive loss.

For text embedding tasks like text retrieval or semantic similarity, what matters is the relative order of the scores instead of the absolute values, so this should not be an issue.

Citation#

If you find our paper or models helpful, please consider cite as follows:

@article{wang2024multilingual,
  title={Multilingual E5 Text Embeddings: A Technical Report},
  author={Wang, Liang and Yang, Nan and Huang, Xiaolong and Yang, Linjun and Majumder, Rangan and Wei, Furu},
  journal={arXiv preprint arXiv:2402.05672},
  year={2024}
}

Limitations#

Long texts will be truncated to at most 512 tokens.

Files

44 files · 9.56 GBWeights 2.24 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 44 files with their sha256
FileSizesha256
.eval_results/ArguAna.yaml575 Beaded82e0890726ed32c452826124b4de9bdebefe7eb261152b96d4ce32cb945
.eval_results/BrightAopsRetrieval.yaml641 B78c570492ca871a3dfd8d78e85d03085f22fa247ce6927f21c27e1880271d26d
.eval_results/BrightBiologyLongRetrieval.yaml651 B9d5ee1d8facbfc2de38e707776979fea331158aadf300cccaba1f34b0d68625c
.eval_results/BrightBiologyRetrieval.yaml647 B21d31e15e9e1ea13a77c8351e07bfa3e3f1471cc05cbda13c75cb2749322f88c
.eval_results/BrightEarthScienceLongRetrieval.yaml663 B543f687c9d340c70f4fd4b2d8f53916b37a480c179c2b4b1b12a02d2aa117dbc
.eval_results/BrightEarthScienceRetrieval.yaml659 Bdf299b9a6bf3ae1daf340f484bf15212dc2184ae9f23d6cadd68cfef79fd1871
.eval_results/BrightEconomicsLongRetrieval.yaml657 B75d03dbd307cc36829ee224e523d6acb46c9db0dc8ab559a79f9329caf205c52
.eval_results/BrightEconomicsRetrieval.yaml651 B86467728b50aaa63e5e4b797627611af00dba3924c76b37346dc667a49ad7069
.eval_results/BrightLeetcodeRetrieval.yaml651 B30982b9ecf5007e5c0167b4bbb2d8dfc6cbd78d9b9c0e0d394cb559ee6598964
.eval_results/BrightPonyLongRetrieval.yaml645 B477837d98b6dbf9ae77876716ee64382a624617fce589943cc841683153387b7
.eval_results/BrightPonyRetrieval.yaml643 B17180ac7291d57b11bebf2f4e1837b5999a272c5be06c06ac046e18b1ff8b72b
.eval_results/BrightPsychologyLongRetrieval.yaml657 B4b63b2f2538ad4729dce05a8528c2c37490daad0cb962bf75725e53143867bb7
.eval_results/BrightPsychologyRetrieval.yaml653 Bb753d587b484dd518ed13434370cc0bcd335cc1a1f988728fda24c55d80ce7b4
.eval_results/BrightRoboticsLongRetrieval.yaml653 Baf405dfc94d800e5fa57be491941fa70f7dd9aa866575c6db1d40b3b112f9c81
.eval_results/BrightRoboticsRetrieval.yaml651 Bc034d1ea6d644338a53f891b89be4b4ff461359abc9c9f96a687cbfdfb975aca
.eval_results/BrightStackoverflowLongRetrieval.yaml665 B123d58efe2db21dc6ddddefabc587c955a6486c36df03348f950674019a89ba1
.eval_results/BrightStackoverflowRetrieval.yaml659 B51a8a2714545bbc10c100a90aa1decc9b2c1a40f8b28c3c941a03aebe121184f
.eval_results/BrightSustainableLivingLongRetrieval.yaml671 B34c05fd7ca8231b7d3c6ee7e753bb5571d8fa9443be43c5911f2efdc6dfbdd39
.eval_results/BrightSustainableLivingRetrieval.yaml667 B327ff736cfcc498f31c029fc7e353f3d4c792f31efe0c7b062759487e1328c3a
.eval_results/BrightTheoremQAQuestionsRetrieval.yaml671 Bfb4a4dc0657994d2725944eff097805ae9199d3870edcabfcdd191e623c0dd78
.eval_results/BrightTheoremQATheoremsRetrieval.yaml667 B4e4ff41902e569e27ca3ac93e0799b4b51b07a5d081b6bed1250b60765747706
.gitattributes1.63 KB7363a8ebd782ede400e72bb3e88c19248478eb6f280a7376d398fc2f22707b9a
1_Pooling/config.json201 B56c469dba9e31869bb7dfceb9b3d76ac06549d1ba869509d8eb4e8aeb31d62d1
README.md160 KB7d7af14813a22388e183b0ac3276e13887c7eb644d0a13af7c6252217066e43f
config.json690 Be42d98d0c211928d788467aa951000391017f647c76ca8ce2ef6dd8d0c9ce5ca
model.safetensors2.24 GB020afdebf2762b29fcaf286629a96c3b3b65af241f6a08226b1cfee60a21def6
modules.json387 Bc6e29747481e8b5dd2b58401966aeac910de39092f90cda9a704b1545f902b04
onnx/config.json688 B513fe5e3d0e6d2fa441b6bd2145b20ae82158e9fdd08df9d5405db283afa7710
onnx/model.onnx546 KBbb5a52503a3ef35247f5b5ae6c473aaae60505dd3ffaef56d7b69e2f84683c05
onnx/model.onnx_data2.24 GB0cf1883fee81c63819a44e2ba0efa51d4043d9759685a4ebebbde97e0623d15c
onnx/model_O4.onnx80.6 KBd87e57e558b374601d53da5eb27dbc167c902c6d840274537c704ff1c5657281
onnx/model_qint8_avx512_vnni.onnx562 MB46f5d13dba7ade0160c67d346087d870162950882be17ff9319f873cf6fedff1
onnx/sentencepiece.bpe.model5.07 MBcfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
onnx/special_tokens_map.json280 B06e405a36dfe4b9604f484f6a1e619af1a7f7d09e34a8555eb0b77b66318067f
onnx/tokenizer.json17.1 MB62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626
onnx/tokenizer_config.json418 Befb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15
openvino/openvino_model.bin2.24 GB12e75630d2f0e70c3868caf3bff015ae607171cfc3ae2f3ed9269c16b4836860
openvino/openvino_model.xml713 KBa94e220a4cdfab724f6279bd82137b90576305e0ce361a703d5bd6d34957b5a3
pytorch_model.bin2.24 GB9aaa222c5a6529ae4a69ab6925c863af595d106edf565434c8280777b3126d64
sentence_bert_config.json57 B948201d8329907aae938fa62f9ceeed53f5694dacc2b87b9f3b78b37ee986529
sentencepiece.bpe.model5.07 MBcfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
special_tokens_map.json280 B06e405a36dfe4b9604f484f6a1e619af1a7f7d09e34a8555eb0b77b66318067f
tokenizer.json17.1 MB62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626
tokenizer_config.json418 Befb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
3d7cfbdacd pinned now manifest updated, same commit2026-11-14 21:09 UTC44 files · 9.56 GB
3d7cfbdacd2026-11-14 21:09 UTC44 files · 9.56 GB

Use it

$ fw get intfloat/multilingual-e5-large
# manifest sha256 4349c014b5c3… · 9.56 GB · 44 files
$ fw verify ./multilingual-e5-large intfloat/multilingual-e5-large
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/intfloat/multilingual-e5-large.json --dir ./multilingual-e5-large $ python3 fw.py verify ./multilingual-e5-large ./intfloat__multilingual-e5-large.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download intfloat/multilingual-e5-large --revision 3d7cfbdacd47fdda877c5cd8a79fbcc4f2a574f3 --local-dir ./multilingual-e5-large
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModel, AutoTokenizer tok = AutoTokenizer.from_pretrained("intfloat/multilingual-e5-large", revision="3d7cfbdacd47fdda877c5cd8a79fbcc4f2a574f3") model = AutoModel.from_pretrained("intfloat/multilingual-e5-large", revision="3d7cfbdacd47fdda877c5cd8a79fbcc4f2a574f3", device_map="auto")
sentence-transformersEmbed text with sentence-transformers.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from sentence_transformers import SentenceTransformer model = SentenceTransformer("intfloat/multilingual-e5-large", revision="3d7cfbdacd47fdda877c5cd8a79fbcc4f2a574f3") vectors = model.encode(["Hello"])

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
7d7af14813a22388e183b0ac3276e13887c7eb644d0a13af7c6252217066e43f
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: intfloat <huggingface.co/intfloat>Newsgroups: alt.freeweights.embedSubject: multilingual-e5-largeDate: 2026-11-14Commit: 3d7cfbdSigned: 2DC28CC7B26A283B ✓
Upstream
intfloat/multilingual-e5-large
Pinned commit
3d7cfbdacd47fdda877c5cd8a79fbcc4f2a574f3
Manifest
multilingual-e5-large.json · .minisig
Manifest sha256
4349c014b5c301e61d43bf92e9a5b8773c52c71813f191351208297daf62e2cd
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:09 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/intfloat/multilingual-e5-large.json $ curl -O https://freeweights.allternit.com/manifests/intfloat/multilingual-e5-large.json.minisig $ minisign -Vm multilingual-e5-large.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download intfloat/multilingual-e5-large
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. multilingual-e5-large.json. Provenance. Takedown history: none.
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-MiniLM-L6-v1
From: unsloth <huggingface.co/unsloth>Subject: all-MiniLM-L6-v2
From: mlx-community <huggingface.co/mlx-community>Subject: all-MiniLM-L6-v2-4bit
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-mpnet-base-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: allenai-specter
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: bert-base-nli-max-tokens