Model reference · open weights

all-MiniLM-L6

all-MiniLM-L6 is an open-weight embedding model from Xenova, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

Embeddings Xenova 1 variants 2.6M downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What all-MiniLM-L6 is

https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2 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: You can then use the model to compute embeddings like this: You can convert this Tensor to a nested JavaScript array using .tolist(): 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).

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

MakerXenova
TypeEmbedding models
Context512 tokens
Variants1
Runs withtransformers.js
Based onsentence-transformers/all-MiniLM-L6-v2
Released2023-05-02
Popularity2.6M downloads / month
Likes143
LicenceOpen weights

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together — the basis of search and RAG.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
all-MiniLM-L6-v2BF16Weights ↗

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys xenova-all-minilm-l6 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (xenova-all-minilm-l6 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":"xenova-all-minilm-l6","input":"text to embed"}'

Details

Languages, data & research

Tags

transformers.js onnx bert feature-extraction

Licence

Open weights

Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want all-MiniLM-L6 on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More embedding models

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