Model reference · open weights

all_miniLM_L6_v2_with_attentions

Available as managed deployment Embeddings Qdrant Embeddings 1 variants 243k dl/mo

all_miniLM_L6_v2_with_attentions is an open-weight embedding model from Qdrant. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released byQdrant
TypeEmbedding models
TaskEmbeddings
Context512 tokens
Runs withtransformers
Released2024-05-09
Popularity243k downloads / month
LicenceOpen weights

About

What all_miniLM_L6_v2_with_attentions is

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

This model is intended to be used for BM42 searches.

Read the full model card

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
#                     ]))
# ]

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys all-minilm-l6-v2-with-attentions for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (all-minilm-l6-v2-with-attentions below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"all-minilm-l6-v2-with-attentions","input":"text to embed"}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

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