Sourced from Hugging Face model card

bge-large-en-v1.5 Analysis: Architecture, Hardware Fit & Benchmarks

BAAI logoBAAI

bge-large-en-v1.5

Text Embeddings335M · FP32 (32-bit)512 max input tokensEnglish
Hugging Face
Downloads (30d)
11.6M
188.4M all-time
Likes
788
Trending 1
Timeline
Released Sep 12, 2023
Updated Feb 21, 2024
Licence
Commercial Friendly
MIT License
Safe for commercial projects
Hardware Compatibility

Which system are you running?

Select your hardware category first. We will ask only the details needed for an accurate check.

Benchmark Results
Source: Model Card Metadata

How this model performed

Evaluation scores reported by the model publisher. Each benchmark measures a different task, so compare scores only within the same benchmark.

MTEB

Amazon Counterfactual Classification (en)

Accuracy
75.85
Average Precision (AP)
38.57
F1 Score
69.69
MTEB

Amazon Polarity Classification

Accuracy
92.42
Average Precision (AP)
89.19
F1 Score
92.39
MTEB

Amazon Reviews Classification (en)

Accuracy
48.18
F1 Score
47.81
Technical dataset identifiers & metadata
Raw Dataset IDMetricScoreSource
MTEB AmazonCounterfactualClassification (en)accuracy75.85Model Card Metadata
MTEB AmazonCounterfactualClassification (en)ap38.57Model Card Metadata
MTEB AmazonCounterfactualClassification (en)f169.69Model Card Metadata
MTEB AmazonPolarityClassificationaccuracy92.42Model Card Metadata
MTEB AmazonPolarityClassificationap89.19Model Card Metadata
MTEB AmazonPolarityClassificationf192.39Model Card Metadata
MTEB AmazonReviewsClassification (en)accuracy48.18Model Card Metadata
MTEB AmazonReviewsClassification (en)f147.81Model Card Metadata
Same Task Alternatives

Worth comparing

Quickstart

How to run this model

Install with: pip install sentence-transformers

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("BAAI/bge-large-en-v1.5")
embeddings = model.encode(["Example text to embed"])
print(embeddings.shape)
Advanced technical details & limitations
Architecture
BertModel
Model Type
bert
Exact Parameters
335,142,400 (safetensors)
Pipeline & Library
feature-extraction · sentence-transformers
Hosted Providers
None active

Limitations & Things to Watch Out For

  • • Hard input length ceiling of 512 tokens (max_position_embeddings in config.json); longer inputs must be chunked or truncated. [config.json]

Licence Terms (MIT License)

  • • Preserve the original copyright and MIT license notice

Architecture & Training Mechanics

  • • Uses the BertModel architecture with 335M parameters arranged across 24 layers (hidden dimension 1,024) with 16 attention heads. [config.json][Hub Safetensors Metadata]
  • • Configured for sequences up to 512 tokens (max_position_embeddings in config.json). [config.json]
  • • Converts token representations into fixed 1024-dimensional vectors using CLS-token pooling. [1_Pooling/config.json]
  • • From "C-Pack: Packaged Resources To Advance General Chinese Embedding": We introduce C-Pack, a package of resources that significantly advance the field of general Chinese embeddings. [Paper (arXiv:2309.07597)]