← Catalog
BAAI/bge-m3
Open comparison →
Primitive: /encode · Encode ·
XLM-RoBERTa
For more details please refer to our github repo: https://github.com/FlagOpen/FlagEmbedding
Long contextDenseSparseMulti-vector
View on Hugging Face → Guide: BGE-M3 reference →
Overview
Hardware:
— drives latency, throughput & cost
| Size | 568M params |
| Tasks | /encode · /score |
| License | mit |
| Latency | 93 ms |
| Throughput | 33.2K tok/s |
| Cost | $0.0067 /1M tok |
Cost is approximate — computed from list GPU prices; your actual price depends on the provider you deploy SIE with.
Embedding
| Output types | Dense · Sparse · Multi-Vec |
| Dimensions | dense: 1,024 · sparse: 250,002 · multivector: 1,024 |
| Max sequence length | 8,192 |
| Inputs | text |
Benchmarks
Duplicate question retrieval from StackExchange Physics
Corpus: 38,314 Queries: 1,039
sparse
Performance L4 b1 c16
Corpus 27.8K tok/s
Corpus p50 70.8ms
Query 3.3K tok/s
Query p50 44.9ms
dense
Performance L4 b1 c16
Corpus 27.3K tok/s
Corpus p50 74.8ms
Query 3.1K tok/s
Query p50 45.2ms
multivector
Performance L4 b1 c16
Corpus 28.0K tok/s
Corpus p50 70.7ms
Query 3.2K tok/s
Query p50 44.7ms
default
Quality
ndcg at 10 0.4225
map at 10 0.3637
mrr at 10 0.4215
Reference →
Code search with natural language queries
Corpus: 6,267 Queries: 500
sparse
Performance L4 b1 c16
Corpus 16.9K tok/s
Corpus p50 51.0ms
Query 1.9K tok/s
Query p50 43.7ms
dense
Performance L4 b1 c16
Corpus 15.8K tok/s
Corpus p50 51.3ms
Query 1.7K tok/s
Query p50 47.9ms
multivector
Performance L4 b1 c16
Corpus 15.3K tok/s
Corpus p50 51.4ms
Query 1.8K tok/s
Query p50 45.8ms
default
Quality
ndcg at 10 0.2856
map at 10 0.2160
mrr at 10 0.2520
Reference →
Financial opinion mining and question answering
Corpus: 57,599 Queries: 648
sparse
Performance L4 b1 c16
Corpus 30.2K tok/s
Corpus p50 81.3ms
Query 3.3K tok/s
Query p50 46.2ms
dense
Performance L4 b1 c16
Corpus 28.6K tok/s
Corpus p50 87.3ms
Query 3.1K tok/s
Query p50 48.4ms
multivector
Performance L4 b1 c16
Corpus 33.8K tok/s
Corpus p50 77.8ms
Query 3.6K tok/s
Query p50 44.8ms
default
Quality
ndcg at 10 0.3441
map at 10 0.2731
mrr at 10 0.4269
Reference →
Question answering on consumer contracts
Corpus: 153 Queries: 396
sparse
Performance L4 b1 c16
Corpus 40.6K tok/s
Corpus p50 208.1ms
Query 5.1K tok/s
Query p50 45.0ms
dense
Performance L4 b1 c16
Corpus 39.5K tok/s
Corpus p50 210.7ms
Query 4.2K tok/s
Query p50 51.7ms
multivector
Performance L4 b1 c16
Corpus 39.1K tok/s
Corpus p50 216.2ms
Query 5.1K tok/s
Query p50 44.0ms
default
Quality
ndcg at 10 0.7759
map at 10 0.7263
mrr at 10 0.7275
Reference →
Biomedical literature search from NutritionFacts.org
Corpus: 3,593 Queries: 323
default
Quality
ndcg at 10 0.3147
map at 10 0.1174
mrr at 10 0.5224
Performance A10G b1 c4
Corpus 127 tok/s
Corpus p50 9.4s
Query 39 tok/s
Query p50 537.6ms
Performance L4 b1 c16
Corpus 45.9K tok/s
Corpus p50 111.1ms
Query 1.2K tok/s
Query p50 70.2ms
sparse
Quality
ndcg at 10 0.2836
map at 10 0.1071
mrr at 10 0.4896
Performance L4 b1 c16
Corpus 45.5K tok/s
Corpus p50 109.6ms
Query 1.3K tok/s
Query p50 68.3ms
dense
Performance L4 b1 c16
Corpus 34.2K tok/s
Corpus p50 134.0ms
Query 937 tok/s
Query p50 64.2ms
multivector
Quality
ndcg at 10 0.3431
map at 10 0.1315
mrr at 10 0.5565
Performance L4 b1 c16
Corpus 37.3K tok/s
Corpus p50 127.9ms
Query 1.2K tok/s
Query p50 73.2ms
Reference →
Smaller subset of the FiQA financial QA dataset
sparse
Quality
ndcg at 10 0.4425
map at 10 0.3758
mrr at 10 0.5397
Performance L4 b1 c16
Corpus 30.3K tok/s
Corpus p50 87.5ms
Query 2.7K tok/s
Query p50 53.3ms
default
Quality
ndcg at 10 0.5726
map at 10 0.4957
mrr at 10 0.6467
Performance L4 b1 c16
Corpus 31.2K tok/s
Corpus p50 68.9ms
Query 2.9K tok/s
Query p50 43.3ms
dense
Performance L4 b1 c16
Corpus 28.1K tok/s
Corpus p50 89.9ms
Query 2.5K tok/s
Query p50 59.2ms
multivector
Quality
ndcg at 10 0.5629
map at 10 0.4808
mrr at 10 0.6246
Performance L4 b1 c16
Corpus 30.6K tok/s
Corpus p50 86.6ms
Query 2.7K tok/s
Query p50 54.1ms
Reference →
Citation prediction, document classification, and recommendation for scientific papers
Corpus: 25,656 Queries: 1,000
sparse
Quality
ndcg at 10 0.1223
map at 10 0.0689
mrr at 10 0.2238
Performance L4 b1 c16
Corpus 32.5K tok/s
Corpus p50 93.4ms
Query 3.4K tok/s
Query p50 44.7ms
dense
Performance L4 b1 c16
Corpus 33.2K tok/s
Corpus p50 94.8ms
Query 2.5K tok/s
Query p50 54.2ms
multivector
Quality
ndcg at 10 0.1755
map at 10 0.1028
mrr at 10 0.3090
Performance L4 b1 c16
Corpus 34.4K tok/s
Corpus p50 90.7ms
Query 3.4K tok/s
Query p50 43.0ms
default
Quality
ndcg at 10 0.0966
map at 10 0.0528
mrr at 10 0.1676
bge_m3_flag
Quality
map at 10 0.0946
mrr at 10 0.2886
ndcg at 10 0.1636
Reference →
Scientific claim verification using research literature
Corpus: 5,183 Queries: 300
sparse
Quality
ndcg at 10 0.6350
map at 10 0.5859
mrr at 10 0.6008
Performance L4 b1 c16
Corpus 37.8K tok/s
Corpus p50 117.6ms
Query 4.2K tok/s
Query p50 47.7ms
dense
Performance L4 b1 c16
Corpus 37.9K tok/s
Corpus p50 118.2ms
Query 4.2K tok/s
Query p50 48.5ms
multivector
Quality
ndcg at 10 0.6956
map at 10 0.6517
mrr at 10 0.6691
Performance L4 b1 c16
Corpus 38.2K tok/s
Corpus p50 116.5ms
Query 4.9K tok/s
Query p50 44.4ms
default
Quality
ndcg at 10 0.6275
map at 10 0.5781
mrr at 10 0.5911
bge_m3_flag
Quality
map at 10 0.5942
mrr at 10 0.6102
ndcg at 10 0.6457
Reference →
Programming question answering from Stack Overflow
Corpus: 19,931 Queries: 1,994
sparse
Quality
ndcg at 10 0.6010
map at 10 0.5643
mrr at 10 0.5643
Performance L4 b1 c16
Corpus 32.7K tok/s
Corpus p50 108.4ms
Query 34.8K tok/s
Query p50 137.6ms
dense
Performance L4 b1 c16
Corpus 33.4K tok/s
Corpus p50 104.7ms
Query 33.8K tok/s
Query p50 138.5ms
multivector
Quality
ndcg at 10 0.6867
map at 10 0.6662
mrr at 10 0.6662
Performance L4 b1 c16
Corpus 33.2K tok/s
Corpus p50 107.6ms
Query 33.8K tok/s
Query p50 137.6ms
bge_m3_flag
Quality
map at 10 0.7798
mrr at 10 0.7798
ndcg at 10 0.8066
default
Quality
ndcg at 10 0.8062
map at 10 0.7794
mrr at 10 0.7794
Reference →