1.  [](/)
2.  [Models](/models)
3.  all-MiniLM-L6-v2

![](/favicon.ico)Served on MixpeekEmbeddingVerified 2026-11-05

# all-MiniLM-L6-v2

sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 is a text embedding model (Apache-2.0). Served on Mixpeek, scaling to zero when idle.

A Ray Serve app in Mixpeek's inference registry hosts it. It starts at zero replicas and wakes on first use.

[Use in a new namespace](https://studio.mixpeek.com/namespaces/design?utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)[Add to an existing namespace](https://studio.mixpeek.com/namespaces?utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp "Open the namespace in Studio, then its Designer tab") [Record as JSON](/models/all-minilm-l6-v2.json)

New opens the Designer in Studio. For an existing namespace, open it in Studio and use its Designer tab.

No demo for all-MiniLM-L6-v2 yet

A video, image, slideshow or playground goes here once we record one on our own data.

## What it is good and bad at

Best at

Small, fast English sentence vectors on CPU (22M params, 384 dims) for short text, dedup and clustering.

Worst at

Non-English text, long passages (truncated at 256 tokens here), and hard retrieval where E5-large wins.

Task

Embedding

Input

Text

Output

Vector

Use cases

Text search

## Templates that use it

No template uses this model yet. [Browse templates](/templates).

## Input and output

### Input

Text

Max tokens

256

Truncation

true

Language

English

Prompts

none

### Output

Vector

Dims

384

Distance

cosine

Type

dense

## How Mixpeek wires it

Extractors

*   `text_extractor@v1` embedding\_model=all\_minilm\_l6\_v2\_v1

Feature URIs

*   `mixpeek://text_extractor@v1/all_minilm_l6_v2_v1`

Vector indexes

`text_extractor_v1_embedding`

Retriever stages

feature\_search

Combines with

*   text\_extractor with embedding\_model=all\_minilm\_l6\_v2\_v1 (dimensions fixed at namespace creation)

## How it runs

Status

![](/favicon.ico)Served on Mixpeek Ray Serve app in the inference registry; text\_extractor can select it per run. The registry marks it a small fast fallback, E5 is the default.

Serve apps

`sentence_transformers__all_MiniLM_L6_v2`

Runtime

transformers AutoModel + AutoTokenizer (BertModel), mean pooling

Weights

safetensors, no remote code

Parameters

22.7 M

Size on disk

91 MB

Preprocessing

Tokenize with truncation at 256 tokens.

Postprocessing

Mean pool over the attention mask, L2-normalize (384 dims).

Serving

both

Hardware

Runs on CPU (slower without a GPU)

### Scale to zero

Minimum replicas

0

Maximum replicas

4

Idle timeout

300 s

Memory

0.5 GB

CPUs

0.25

GPUs

0

Cold start, node warm

Not recorded

Cold start, new node

Not recorded

## Measured cost

Unmeasured

No committed throughput or cost measurement for this model.

## Our evaluations

Dataset and metric

Score

Baseline

Date

LongMemEval subset, 60 questions (hybrid\_flat, run outside Mixpeek)

QA accuracy, SYSTEM number: local MiniLM dense + rank\_bm25 RRF retrieval, Gemini reader; not Mixpeek's Serve app

0.783

None

2026-09-27

## Questions

What is all-MiniLM-L6-v2 best at?

Small, fast English sentence vectors on CPU (22M params, 384 dims) for short text, dedup and clustering.

What are the limits of all-MiniLM-L6-v2?

Non-English text, long passages (truncated at 256 tokens here), and hard retrieval where E5-large wins.

Can all-MiniLM-L6-v2 be used commercially?

Yes. Apache-2.0 weights; no use restrictions.

How does all-MiniLM-L6-v2 run on Mixpeek?

Ray Serve app in the inference registry; text\_extractor can select it per run. The registry marks it a small fast fallback, E5 is the default.

## Identity

Catalog id

`all-minilm-l6-v2`

Family

sentence-transformers

Hub id

`sentence-transformers/all-MiniLM-L6-v2`

License

Apache-2.0

Commercial use

AllowedApache-2.0 weights; no use restrictions.

Released

Not recorded

Last verified

Verified 2026-11-05

Paper

[arxiv.org/abs/1908.10084](https://arxiv.org/abs/1908.10084)

Code

[github.com/UKPLab/sentence-transformers](https://github.com/UKPLab/sentence-transformers)

## References and formats

*   `hf://sentence-transformers/all-MiniLM-L6-v2@1110a243fdf4706b3f48f1d95db1a4f5529b4d41`

Format

File

Loads today

safetensors

model.safetensors

Yes

ONNX

9 files, e.g. onnx/model.onnx

Yes

PyTorch .bin

3 files, e.g. openvino/openvino\_model.bin

No

TensorFlow

tf\_model.h5

No

## Related models

*   [Multilingual E5 Large Instruct](/models/multilingual-e5-large-instruct)Embedding
*   [Gemini Embedding 2](/models/gemini-embedding-2)Embedding
*   [Vertex AI multimodalembedding@001](/models/multimodalembedding)Embedding
*   [SigLIP Base patch16 224](/models/siglip-base-patch16-224)Embedding
*   [LAION CLAP HTSAT-tiny (630k-audioset-best)](/models/clap-htsat-tiny)Embedding
*   [DINOv2 Base](/models/dinov2-base)Embedding

## Sources

*   [huggingface.co/sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2)
*   [huggingface.co/api/models/sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/api/models/sentence-transformers/all-MiniLM-L6-v2)
*   [arxiv.org/abs/1908.10084](https://arxiv.org/abs/1908.10084)