alt.freeweights.embed / mxbai-embed-large-v1
From: mixedbread-ai <huggingface.co/mixedbread-ai>Newsgroups: alt.freeweights.embedSubject:

mxbai-embed-large-v1

Date: 2026-11-14Commit: b33106fSigned: 2DC28CC7B26A283B ✓

Feature extraction model with 335M parameters. Gguf and onnx and openvino and safetensors weights, 5.36 GB in all. Published by mixedbread-ai under Apache-2.0.

335M params5.36GBmxbai-embed-large-v1gguf onnx openvino safetensorspermissive
FactsParams335MSize5.36 GBFormatsgguf, onnx, openvino, safetensorsTaskfeature extractionLicenseApache-2.0From sourcepermissive
$ fw get mixedbread-ai/mxbai-embed-large-v1
# manifest sha256 e60db70cfbaa… · 5.36 GB · 21 files
$ fw verify ./mxbai-embed-large-v1 mixedbread-ai/mxbai-embed-large-v1
From sourceHosted (signed)mixedbread-ai/mxbai-embed-large-v1Last 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
5.36 GB
Weights
670 MB (GGUF)
Parameters
335M
Formats
gguf, onnx, openvino, safetensors
Task
feature extraction
License
Apache-2.0 (permissive)
Files
21, each with a sha256
Publisher
mixedbread-ai
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 b33106f. Shown as plain text with links; images open at the publisher.

The crispy sentence embedding family from Mixedbread.

🍞 Looking for a simple end-to-end retrieval solution? Meet Omni, our multimodal and multilingual model. Get in touch for access.

mixedbread-ai/mxbai-embed-large-v1#

Here, we provide several ways to produce sentence embeddings. Please note that you have to provide the prompt Represent this sentence for searching relevant passages: for query if you want to use it for retrieval. Besides that you don't need any prompt. Our model also supports Matryoshka Representation Learning and binary quantization.

Quickstart#

Here, we provide several ways to produce sentence embeddings. Please note that you have to provide the prompt Represent this sentence for searching relevant passages: for query if you want to use it for retrieval. Besides that you don't need any prompt.

sentence-transformers#
python -m pip install -U sentence-transformers
from sentence_transformers import SentenceTransformer
from sentence_transformers.util import cos_sim
from sentence_transformers.quantization import quantize_embeddings

# 1. Specify preffered dimensions
dimensions = 512

# 2. load model
model = SentenceTransformer("mixedbread-ai/mxbai-embed-large-v1", truncate_dim=dimensions)

# The prompt used for query retrieval tasks:
# query_prompt = 'Represent this sentence for searching relevant passages: '

query = "A man is eating a piece of bread"
docs = [
    "A man is eating food.",
    "A man is eating pasta.",
    "The girl is carrying a baby.",
    "A man is riding a horse.",
]

# 2. Encode
query_embedding = model.encode(query, prompt_name="query")
# Equivalent Alternatives:
# query_embedding = model.encode(query_prompt + query)
# query_embedding = model.encode(query, prompt=query_prompt)

docs_embeddings = model.encode(docs)

# Optional: Quantize the embeddings
binary_query_embedding = quantize_embeddings(query_embedding, precision="ubinary")
binary_docs_embeddings = quantize_embeddings(docs_embeddings, precision="ubinary")

similarities = cos_sim(query_embedding, docs_embeddings)
print('similarities:', similarities)
Transformers#
from typing import Dict

import torch
import numpy as np
from transformers import AutoModel, AutoTokenizer
from sentence_transformers.util import cos_sim

# For retrieval you need to pass this prompt. Please find our more in our blog post.
def transform_query(query: str) -> str:
    """ For retrieval, add the prompt for query (not for documents).
    """
    return f'Represent this sentence for searching relevant passages: {query}'

# The model works really well with cls pooling (default) but also with mean pooling.
def pooling(outputs: torch.Tensor, inputs: Dict,  strategy: str = 'cls') -> np.ndarray:
    if strategy == 'cls':
        outputs = outputs[:, 0]
    elif strategy == 'mean':
        outputs = torch.sum(
            outputs * inputs["attention_mask"][:, :, None], dim=1) / torch.sum(inputs["attention_mask"], dim=1, keepdim=True)
    else:
        raise NotImplementedError
    return outputs.detach().cpu().numpy()

# 1. load model
model_id = 'mixedbread-ai/mxbai-embed-large-v1'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModel.from_pretrained(model_id).cuda()


docs = [
    transform_query('A man is eating a piece of bread'),
    "A man is eating food.",
    "A man is eating pasta.",
    "The girl is carrying a baby.",
    "A man is riding a horse.",
]

# 2. encode
inputs = tokenizer(docs, padding=True, return_tensors='pt')
for k, v in inputs.items():
    inputs[k] = v.cuda()
outputs = model(**inputs).last_hidden_state
embeddings = pooling(outputs, inputs, 'cls')

similarities = cos_sim(embeddings[0], embeddings[1:])
print('similarities:', similarities)
Transformers.js#

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

npm i @huggingface/transformers

You can then use the model to compute embeddings like this:

import { pipeline, cos_sim } from "@huggingface/transformers";

// Create a feature extraction pipeline
const extractor = await pipeline("feature-extraction", "mixedbread-ai/mxbai-embed-large-v1", {
    dtype: "fp32", // Options: "fp32", "fp16", "q8"
});

// Generate sentence embeddings
const docs = [
    "Represent this sentence for searching relevant passages: A man is eating a piece of bread",
    "A man is eating food.",
    "A man is eating pasta.",
    "The girl is carrying a baby.",
    "A man is riding a horse.",
]
const output = await extractor(docs, { pooling: "cls" });

// Compute similarity scores
const [source_embeddings, ...document_embeddings ] = output.tolist();
const similarities = document_embeddings.map(x => cos_sim(source_embeddings, x));
console.log(similarities); // [0.7919578577247139, 0.6369278664248345, 0.16512018371357193, 0.3620778366720027]
Using API#

You can use the model via our API as follows:

from mixedbread_ai.client import MixedbreadAI, EncodingFormat
from sklearn.metrics.pairwise import cosine_similarity
import os

mxbai = MixedbreadAI(api_key="{MIXEDBREAD_API_KEY}")

english_sentences = [
    'What is the capital of Australia?',
    'Canberra is the capital of Australia.'
] 

res = mxbai.embeddings(
     input=english_sentences,
     model="mixedbread-ai/mxbai-embed-large-v1",
     normalized=True,
     encoding_format=[EncodingFormat.FLOAT, EncodingFormat.UBINARY, EncodingFormat.INT_8],
     dimensions=512
)

encoded_embeddings = res.data[0].embedding
print(res.dimensions, encoded_embeddings.ubinary, encoded_embeddings.float_, encoded_embeddings.int_8)

The API comes with native int8 and binary quantization support! Check out the docs for more information.

Infinity#
docker run --gpus all -v $PWD/data:/app/.cache -p "7997":"7997" \
michaelf34/infinity:0.0.68 \
v2 --model-id mixedbread-ai/mxbai-embed-large-v1 --revision "main" --dtype float16 --engine torch --port 7997

Evaluation#

As of March 2024, our model archives SOTA performance for Bert-large sized models on the MTEB. It ourperforms commercial models like OpenAIs text-embedding-3-large and matches the performance of model 20x it's size like the echo-mistral-7b. Our model was trained with no overlap of the MTEB data, which indicates that our model generalizes well across several domains, tasks and text length. We know there are some limitations with this model, which will be fixed in v2.

ModelAvg (56 datasets)Classification (12 datasets)Clustering (11 datasets)PairClassification (3 datasets)Reranking (4 datasets)Retrieval (15 datasets)STS (10 datasets)Summarization (1 dataset)
mxbai-embed-large-v164.6875.6446.7187.260.1154.3985.0032.71
bge-large-en-v1.564.2375.9746.0887.1260.0354.2983.1131.61
mxbai-embed-2d-large-v163.2574.1446.0785.8958.9451.4284.931.55
nomic-embed-text-v162.3974.1243.9185.1555.6952.8182.0630.08
jina-embeddings-v2-base-en60.3873.4541.7385.3856.9847.8780.731.6
Proprietary Models
OpenAI text-embedding-3-large64.5875.4549.0185.7259.1655.4481.7329.92
Cohere embed-english-v3.064.4776.4947.4385.8458.0155.0082.6230.18
OpenAI text-embedding-ada-00260.9970.9345.9084.8956.3249.2580.9730.80

Please find more information in our blog post.

Matryoshka and Binary Quantization#

Embeddings in their commonly used form (float arrays) have a high memory footprint when used at scale. Two approaches to solve this problem are Matryoshka Representation Learning (MRL) and (Binary) Quantization. While MRL reduces the number of dimensions of an embedding, binary quantization transforms the value of each dimension from a float32 into a lower precision (int8 or even binary). The model supports both approaches!

You can also take it one step further, and combine both MRL and quantization. This combination of binary quantization and MRL allows you to reduce the memory usage of your embeddings significantly. This leads to much lower costs when using a vector database in particular. You can read more about the technology and its advantages in our blog post.

Community#

Please join our Discord Community and share your feedback and thoughts! We are here to help and also always happy to chat.

License#

Apache 2.0

Citation#

@online{emb2024mxbai,
  title={Open Source Strikes Bread - New Fluffy Embeddings Model},
  author={Sean Lee and Aamir Shakir and Darius Koenig and Julius Lipp},
  year={2024},
  url={https://www.mixedbread.ai/blog/mxbai-embed-large-v1},
}

@article{li2023angle,
  title={AnglE-optimized Text Embeddings},
  author={Li, Xianming and Li, Jing},
  journal={arXiv preprint arXiv:2309.12871},
  year={2023}
}

Files

21 files · 5.36 GBWeights 670 MB (GGUF). Sizes and sha256 from the signed manifest.
Show all 21 files with their sha256
FileSizesha256
.gitattributes1.58 KB1461a4c509129897271a90f7cb35c5ec294cfecff518fe015e37371e4364f53e
1_Pooling/config.json297 B13e69897522ee8255104483ed9f219465d1be3936654a54a318758738052789e
LICENSE10.8 KB4b0dfefcb74f1e50a8df72a9f2bf0088753f8568bc479387292469b4948705d4
README.md114 KB1e229c497c2a21e1e3bf1942b3eb55af61305e74667e2a2afd3584e86ca9f485
config.json677 Bce13f118fc183c005236901d2662ced752de632ebb161e6af800aadda2d176f7
config_sentence_transformers.json266 B6229fc7b7366a1324ced5df4561f60c2cb9bf7959fee47a6ff276724c29598c5
gguf/mxbai-embed-large-v1-f16.gguf670 MB819c2adf5ce6df2b6bd2ae4ca90d2a69f060afeb438d0c171db57daa02e39c3d
model.safetensors670 MB36bfa45da00eb762ef9feebe4cff315ec779efadd08da11846bef5ba5b59b8f8
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx1.34 GBadb53ed475faa339bfad3bd2bdb7e6a30b4f47280ade9811f81bef7953f9ab77
onnx/model_fp16.onnx669 MBb08af11a60452474f6958853f339296f970aac697a49b98da923d0c36cc6c6b1
onnx/model_quantized.onnx337 MB11bda26d2ee754b20d46c90d0fae7eb5a71e0f947e74261afd6ad640ebbcfa7f
openvino/openvino_model.bin1.34 GBd2715fe5d778475f06156e6de07353f8e5e73800985159bfd7bf7081c284d87a
openvino/openvino_model.xml707 KBa41742392c4051743c144db7066faab14e7d4518aab387c26a3a3e9239df498f
openvino/openvino_model_qint8_quantized.bin337 MB61df334e52dacadebc1cdadd3974be4ec70a339329830a1df67c7ba4f196c7ae
openvino/openvino_model_qint8_quantized.xml1.31 MB6acc3e475f042ef5bb4eece03c0e8e8886fec696651cd30f1a378232ac8813b8
sentence_bert_config.json53 Bec8e29d6dcb61b611b7d3fdd2982c4524e6ad985959fa7194eacfb655a8d0d51
special_tokens_map.json695 B5d5b662e421ea9fac075174bb0688ee0d9431699900b90662acd44b2a350503a
tokenizer.json711 KBd241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66
tokenizer_config.json1.24 KB0b29c7bfc889e53b36d9dd3e686dd4300f6525110eaa98c76a5dafceb2029f53
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b33106f585 pinned now manifest updated, same commit2026-11-14 21:09 UTC21 files · 5.36 GB
b33106f5852026-11-14 21:09 UTC21 files · 5.36 GB

Use it

$ fw get mixedbread-ai/mxbai-embed-large-v1
# manifest sha256 e60db70cfbaa… · 5.36 GB · 21 files
$ fw verify ./mxbai-embed-large-v1 mixedbread-ai/mxbai-embed-large-v1
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/mixedbread-ai/mxbai-embed-large-v1.json --dir ./mxbai-embed-large-v1 $ python3 fw.py verify ./mxbai-embed-large-v1 ./mixedbread-ai__mxbai-embed-large-v1.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mixedbread-ai/mxbai-embed-large-v1 --revision b33106f585b9ce46904ad7443a3b52b7a63e231c --local-dir ./mxbai-embed-large-v1
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModel, AutoTokenizer tok = AutoTokenizer.from_pretrained("mixedbread-ai/mxbai-embed-large-v1", revision="b33106f585b9ce46904ad7443a3b52b7a63e231c") model = AutoModel.from_pretrained("mixedbread-ai/mxbai-embed-large-v1", revision="b33106f585b9ce46904ad7443a3b52b7a63e231c", 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("mixedbread-ai/mxbai-embed-large-v1", revision="b33106f585b9ce46904ad7443a3b52b7a63e231c") vectors = model.encode(["Hello"])
llama.cppDownload one GGUF variant (gguf, 670 MB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mixedbread-ai/mxbai-embed-large-v1 --include "gguf/*" --local-dir ./mxbai-embed-large-v1 $ llama-server -m ./mxbai-embed-large-v1/gguf/mxbai-embed-large-v1-f16.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./mxbai-embed-large-v1/gguf/mxbai-embed-large-v1-f16.gguf\n' > Modelfile $ ollama create mxbai-embed-large-v1 -f Modelfile

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
LICENSE
Text sha256
4b0dfefcb74f1e50a8df72a9f2bf0088753f8568bc479387292469b4948705d4
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: mixedbread-ai <huggingface.co/mixedbread-ai>Newsgroups: alt.freeweights.embedSubject: mxbai-embed-large-v1Date: 2026-11-14Commit: b33106fSigned: 2DC28CC7B26A283B ✓
Upstream
mixedbread-ai/mxbai-embed-large-v1
Pinned commit
b33106f585b9ce46904ad7443a3b52b7a63e231c
Manifest
mxbai-embed-large-v1.json · .minisig
Manifest sha256
e60db70cfbaa8cbd16ce6b7f54617cb6a4b974901389631b8ecd39abd66c0bcf
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/mixedbread-ai/mxbai-embed-large-v1.json $ curl -O https://freeweights.allternit.com/manifests/mixedbread-ai/mxbai-embed-large-v1.json.minisig $ minisign -Vm mxbai-embed-large-v1.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 mixedbread-ai/mxbai-embed-large-v1
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. mxbai-embed-large-v1.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