Xenova / bge-m3

huggingface.co
Total runs: 86.3K
24-hour runs: -3.9K
7-day runs: -21.3K
30-day runs: -34.6K
Model's Last Updated: February 11 2026
feature-extraction

Introduction of bge-m3

Model Details of bge-m3

https://huggingface.co/BAAI/bge-m3 with ONNX weights to be compatible with Transformers.js.

Usage (Transformers.js)

If you haven't already, you can install the Transformers.js JavaScript library from NPM using:

npm i @xenova/transformers

You can then use the model to compute embeddings, as follows:

import { pipeline } from '@xenova/transformers';

// Create a feature-extraction pipeline
const extractor = await pipeline('feature-extraction', 'Xenova/bge-m3');

// Compute sentence embeddings
const texts = ["What is BGE M3?", "Defination of BM25"]
const embeddings = await extractor(texts, { pooling: 'cls', normalize: true });
console.log(embeddings);
// Tensor {
//   dims: [ 2, 1024 ],
//   type: 'float32',
//   data: Float32Array(2048) [ -0.0340719036757946, -0.04478546231985092, ... ],
//   size: 2048
// }

console.log(embeddings.tolist()); // Convert embeddings to a JavaScript list
// [
//   [ -0.0340719036757946, -0.04478546231985092, -0.004497686866670847, ... ],
//   [ -0.015383965335786343, -0.041989751160144806, -0.025820579379796982, ... ]
// ]

You can also use the model for retrieval. For example:

import { pipeline, cos_sim } from '@xenova/transformers';

// Create a feature-extraction pipeline
const extractor = await pipeline('feature-extraction', 'Xenova/bge-m3');

// Define query to use for retrieval
const query = 'What is BGE M3?';

// List of documents you want to embed
const texts = [
  'BGE M3 is an embedding model supporting dense retrieval, lexical matching and multi-vector interaction.',
  'BM25 is a bag-of-words retrieval function that ranks a set of documents based on the query terms appearing in each document',
];

// Compute sentence embeddings
const embeddings = await extractor(texts, { pooling: 'cls', normalize: true });

// Compute query embeddings
const query_embeddings = await extractor(query, { pooling: 'cls', normalize: true });

// Sort by cosine similarity score
const scores = embeddings.tolist().map(
  (embedding, i) => ({
    id: i,
    score: cos_sim(query_embeddings.data, embedding),
    text: texts[i],
  })
).sort((a, b) => b.score - a.score);
console.log(scores);
// [
//   { id: 0, score: 0.62532672968664, text: 'BGE M3 is an embedding model supporting dense retrieval, lexical matching and multi-vector interaction.' },
//   { id: 1, score: 0.33111060648806, text: 'BM25 is a bag-of-words retrieval function that ranks a set of documents based on the query terms appearing in each document' },
// ]

Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using 🤗 Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx ).

Runs of Xenova bge-m3 on huggingface.co

86.3K
Total runs
-3.9K
24-hour runs
-11.4K
3-day runs
-21.3K
7-day runs
-34.6K
30-day runs

More Information About bge-m3 huggingface.co Model

More bge-m3 license Visit here:

https://choosealicense.com/licenses/mit

bge-m3 huggingface.co

bge-m3 huggingface.co is an AI model on huggingface.co that provides bge-m3's model effect (), which can be used instantly with this Xenova bge-m3 model. huggingface.co supports a free trial of the bge-m3 model, and also provides paid use of the bge-m3. Support call bge-m3 model through api, including Node.js, Python, http.

Xenova bge-m3 online free

bge-m3 huggingface.co is an online trial and call api platform, which integrates bge-m3's modeling effects, including api services, and provides a free online trial of bge-m3, you can try bge-m3 online for free by clicking the link below.

Xenova bge-m3 online free url in huggingface.co:

https://huggingface.co/Xenova/bge-m3

bge-m3 install

bge-m3 is an open source model from GitHub that offers a free installation service, and any user can find bge-m3 on GitHub to install. At the same time, huggingface.co provides the effect of bge-m3 install, users can directly use bge-m3 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bge-m3 install url in huggingface.co:

https://huggingface.co/Xenova/bge-m3

Url of bge-m3

bge-m3 huggingface.co Url

Provider of bge-m3 huggingface.co

Xenova
ORGANIZATIONS

Other API from Xenova

huggingface.co

Total runs: 521.1K
Run Growth: -180.2K
Growth Rate: -34.58%
Updated:August 28 2025
huggingface.co

Total runs: 97.2K
Run Growth: 11.6K
Growth Rate: 11.95%
Updated:December 17 2025
huggingface.co

Total runs: 63.9K
Run Growth: -40.2K
Growth Rate: -62.85%
Updated:December 17 2025
huggingface.co

Total runs: 52.0K
Run Growth: -254
Growth Rate: -0.49%
Updated:July 22 2025
huggingface.co

Total runs: 43.3K
Run Growth: 23.1K
Growth Rate: 53.23%
Updated:July 11 2025
huggingface.co

Total runs: 33.7K
Run Growth: 28.0K
Growth Rate: 82.63%
Updated:January 09 2026
huggingface.co

Total runs: 33.7K
Run Growth: 2.6K
Growth Rate: 7.78%
Updated:July 12 2025
huggingface.co

Total runs: 30.1K
Run Growth: 4.7K
Growth Rate: 15.68%
Updated:June 25 2025
huggingface.co

Total runs: 20.3K
Run Growth: 889
Growth Rate: 4.38%
Updated:June 30 2025
huggingface.co

Total runs: 12.8K
Run Growth: -22
Growth Rate: -0.17%
Updated:July 26 2025
huggingface.co

Total runs: 9.4K
Run Growth: -130
Growth Rate: -1.38%
Updated:October 27 2025
huggingface.co

Total runs: 9.0K
Run Growth: 249
Growth Rate: 2.78%
Updated:July 11 2025
huggingface.co

Total runs: 6.9K
Run Growth: -305.8K
Growth Rate: -4430.60%
Updated:August 28 2025
huggingface.co

Total runs: 6.3K
Run Growth: 1.5K
Growth Rate: 24.54%
Updated:August 28 2025
huggingface.co

Total runs: 5.1K
Run Growth: 1.6K
Growth Rate: 32.11%
Updated:August 19 2025
huggingface.co

Total runs: 3.2K
Run Growth: 632
Growth Rate: 21.52%
Updated:October 08 2024
huggingface.co

Total runs: 2.7K
Run Growth: -159
Growth Rate: -5.95%
Updated:August 19 2025
huggingface.co

Total runs: 2.6K
Run Growth: 252
Growth Rate: 9.68%
Updated:July 01 2025
huggingface.co

Total runs: 2.6K
Run Growth: -189
Growth Rate: -7.35%
Updated:June 25 2025
huggingface.co

Total runs: 2.3K
Run Growth: 40
Growth Rate: 1.76%
Updated:July 22 2025
huggingface.co

Total runs: 1.9K
Run Growth: 459
Growth Rate: 24.29%
Updated:December 17 2025
huggingface.co

Total runs: 1.7K
Run Growth: 390
Growth Rate: 23.30%
Updated:July 11 2025