Model reference · open weights

all_miniLM_L6_v2_with_attentions

Embeddings Qdrant Embeddings 1 build Open weights 243k dl/mo

all_miniLM_L6_v2_with_attentions is an open-weight embedding model from Qdrant.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • all_miniLM_L6_v2_with_attentions is an ONNX port of sentence-transformers/all-MiniLM-L6-v2, created by Qdrant to return attention weights for BM42 searches.
  • The model supports a context length of 512 tokens, operates in English, and is licensed under apache-2.0.
  • It is designed for use with Qdrant and requires vectors to be configured with the Modifier.IDF setting.

Summary of the Qdrant/all_miniLM_L6_v2_with_attentions model card, 2026-10-01

What it is

Released byQdrant
Released2024-05-09

From the model card

What Qdrant says about all_miniLM_L6_v2_with_attentions

Read the model card

ONNX port of sentence-transformers/all-MiniLM-L6-v2 adjusted to return attention weights.

This model is intended to be used for BM42 searches.

Usage

Here's an example of performing inference using the model with FastEmbed.

Note: This model is supposed to be used with Qdrant. Vectors have to be configured with Modifier.IDF.

from fastembed import SparseTextEmbedding

documents = [
    "You should stay, study and sprint.",
    "History can only prepare us to be surprised yet again.",
]

model = SparseTextEmbedding(model_name="Qdrant/bm42-all-minilm-l6-v2-attentions")
embeddings = list(model.embed(documents))

# [
#     SparseEmbedding(values=array([0.26399775, 0.24662513, 0.47077307]),
#                     indices=array([1881538586, 150760872, 1932363795])),
#     SparseEmbedding(values=array(
#         [0.38320042, 0.25453135, 0.18017513, 0.30432631, 0.1373556]),
#                     indices=array([
#                         733618285, 1849833631, 1008800696, 2090661150,
#                         1117393019
#                     ]))
# ]

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms