bge-small-en-v1.5

What is this model?

BAAI 4.9M downloads mit Feature Extraction Top 100
Frameworkssentence-transformerspytorchonnxsafetensorstransformers
Languagesen
Tagsbertfeature-extractionsentence-similaritymtebmodel-indextext-embeddings-inference
Downloads
4.9M
License
mit
Pipeline
Feature Extraction
Author
BAAI

Run bge-small-en-v1.5 locally on a Q4KM hard drive

Q4KM hard drives pre‑loaded with bge‑small‑en‑v1.5 – Deploy the model instantly on edge servers or on‑premise machines without any download overhead. Shop now and get a high‑speed SSD pre‑installed...

Shop Q4KM Drives

Technical Overview

What is this model? bge‑small‑en‑v1.5 is a lightweight English‑language sentence‑embedding model released by the Beijing Academy of Artificial Intelligence (BAAI). It belongs to the sentence‑transformers family and is optimized for feature extraction and sentence‑similarity tasks. The model maps a piece of text (a sentence, paragraph, or short document) to a dense 384‑dimensional vector that captures semantic meaning while remaining computationally cheap.

Key features and capabilities

  • Small footprint – ~ 140 MB (safetensors/ONNX) makes it suitable for edge devices and fast inference.
  • High‑quality semantic embeddings for English (validated on a wide range of MTEB benchmarks).
  • Supports multiple export formats: PyTorch, ONNX, and Safetensors.
  • Designed for feature‑extraction pipelines – can be used directly with transformers or sentence‑transformers libraries.
  • Compatible with Azure deployment endpoints and can be served via Hugging Face Inference API.

Architecture highlights

  • Backbone: a distilled BERT‑style encoder (12 layers, hidden size 384).
  • Pooling: mean‑pool over the last hidden state, followed by a L2‑normalisation step to produce unit‑norm embeddings.
  • Training objective: contrastive learning with hard negatives, similar to the original MTEB methodology.

Intended use cases

  • Semantic search & retrieval (e.g., FAQ matching, document‑level search).
  • Duplicate detection and clustering of short texts.
  • Zero‑shot classification via embedding similarity.
  • Reranking of candidate passages in a two‑stage retrieval pipeline.
  • Any downstream task that benefits from a compact, high‑quality sentence embedding.

Benchmark Performance

The model’s performance is reported on the MTEB suite, which aggregates classification, retrieval, clustering, and semantic‑text‑similarity (STS) tasks. Key results include:

  • Amazon Polarity Classification – Accuracy ≈ 92.75 %, F1 ≈ 92.74 %.
  • Amazon Counterfactual Classification – Accuracy ≈ 73.79 %.
  • Arugana Retrieval – MAP@10 ≈ 51.39 %, NDCG@10 ≈ 59.55 %.
  • BIOSSES STS – Cosine‑Sim Pearson ≈ 85.19 %, Spearman ≈ 83.75 %.
  • Banking77 Classification – Accuracy ≈ 85.74 %.
  • Clustering (ArXiv‑P2P) – V‑Measure ≈ 47.40 %.

These benchmarks matter because they evaluate both semantic fidelity (STS) and practical downstream utility (classification, retrieval, clustering). Compared to larger BGE variants (e.g., bge‑large‑en), bge‑small‑en‑v1.5 trades a few points of absolute accuracy for a dramatically lower memory and latency footprint, making it ideal for production environments where speed and cost are critical.

Hardware Requirements

VRAM for inference – The model fits comfortably in 2 GB of GPU memory (including the overhead of the transformer engine). For batch inference of up to 64 sentences, a 4 GB GPU is a safe baseline.

  • Recommended GPU – NVIDIA RTX 3060, RTX A5000, or any GPU with ≥ 4 GB VRAM supporting CUDA 11+.
  • CPU inference – A modern 8‑core CPU (e.g., Intel i7‑12700 or AMD Ryzen 7 5800X) can run the model at ~200‑300 tokens / second.
  • Storage – Model files (pytorch, onnx, safetensors) total ≈ 140 MB. An additional ≈ 500 MB is advisable for tokenizer vocab and cache.
  • Performance characteristics – Latency per sentence ≈ 2‑3 ms on a RTX 3060; throughput scales linearly with batch size up to the VRAM limit.

Use Cases

Primary intended applications

  • Semantic search engines for knowledge bases, FAQs, or product catalogs.
  • Duplicate‑question detection in community forums (e.g., Stack Overflow, Ask Ubuntu).
  • Clustering of short documents for topic modeling or content recommendation.
  • Zero‑shot text classification by comparing embeddings to class prototypes.
  • Reranking of candidate passages in a two‑stage retrieval pipeline (e.g., dense‑retrieval + cross‑encoder).

Real‑world examples

  • Customer‑support bots that retrieve the most relevant answer from a knowledge base in < 10 ms.
  • E‑commerce platforms that group similar product reviews for sentiment analysis.
  • Legal tech tools that cluster short case summaries for quick review.

Integration possibilities – The model can be loaded via transformers, exported to ONNX for high‑throughput inference services, or packaged in a Docker container for Azure endpoint deployment.

Training Details

Methodology – The model was trained using a contrastive loss with hard‑negative mining, following the BGE paradigm. Sentences were paired with positive and negative examples drawn from large multilingual corpora.

  • Datasets – A mixture of English web text, Wikipedia, and domain‑specific corpora (e.g., Amazon reviews, ArXiv abstracts) was used to provide diverse semantic contexts.
  • Compute – Training was performed on a multi‑GPU cluster (8 × NVIDIA A100 40 GB) for roughly 150 k steps, consuming ~1 GPU‑year of compute.
  • Fine‑tuning – The model can be further fine‑tuned on domain‑specific sentence pairs using the same contrastive objective, or adapted for classification via a simple linear head.

The open‑source release includes the tokenizer and a sentence‑transformers wrapper, making downstream fine‑tuning straightforward with the Trainer API.

Licensing Information

The repository lists the license as unknown, but the tag license:mit suggests that the model is likely released under the MIT License. In practice:

  • Commercial use – If the MIT tag holds, you may embed the model in commercial products without royalty fees.
  • Redistribution – You can share the model files, provided you retain the original copyright notice.
  • Attribution – Cite BAAI and the original paper(s) (see Section 6) when publishing results or releasing a derivative work.
  • Restrictions – No explicit patent or trademark restrictions are indicated, but always double‑check the latest model card for any updates.

If the license truly remains “unknown”, you should treat the model as “research‑only” until clarification is published. For production deployments, consider contacting BAAI or using a model with a clear permissive license.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives