# all-MiniLM-L6-v2

> Sentence Transformers model that maps sentences and paragraphs to a 384-dimensional vector space

Source: https://talira.ai/catalog/all-minilm-l6-v2-e11ef7yh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: AI model
- Categories: [ai / models / embeddings](https://talira.ai/categories/ai/models/embeddings), [search / semantic search](https://talira.ai/categories/search/semantic-search)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Backed by: [Sentence Transformers](https://talira.ai/orgs/sentence-transformers.md), [Hugging Face](https://talira.ai/orgs/hugging-face.md)

all-MiniLM-L6-v2 is a small Sentence Transformers model: a six-layer MiniLM (nreimers/MiniLM-L6-H384-uncased) fine-tuned with a contrastive objective on more than a billion sentence pairs, which maps sentences and short paragraphs to 384-dimensional vectors for semantic search, clustering and sentence similarity. It was built during Hugging Face's community week using JAX/Flax, truncates input longer than 256 word pieces, and uses mean pooling. It has about 22M parameters, is the default model of [candle](https://talira.ai/catalog/candle-mxvc1kc7.md)'s BERT example and is built into [fastembed-rs](https://talira.ai/catalog/fastembed-rs-9cry7y9m.md); the weights are Apache-2.0.

## Links

- Website: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2
- GitHub: https://github.com/huggingface/sentence-transformers
- Docs: https://sbert.net/

## Problems it solves

- a tiny sentence embedding model that runs fast on any laptop CPU
- group similar sentences together without training anything
- check whether two short texts mean the same thing
- a lightweight model for semantic search over titles and short descriptions
- the classic starter model for learning how embeddings and vector search work
- embed short texts in a mobile or desktop app with a model of under 100 MB
- find duplicate questions in a forum or FAQ by meaning
- a well-supported embedding model that every vector database tutorial and library already knows
- suggest related articles from their titles alone

## Features

- 384-dimensional embeddings
- about 22M parameters, six layers
- fine-tuned on more than 1 billion sentence pairs
- mean pooling, normalised vectors
- input truncated at 256 word pieces
- Apache-2.0 licence
- default model of candle's BERT example
- built into fastembed-rs, also as a quantized variant
- in the Ollama library as all-minilm

## Limitations

- Doesn't read inputs longer than 256 word pieces: longer text is truncated[^1]
- Doesn't cover languages other than English: its model card lists English only[^1]

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- backed by Sentence Transformers and Hugging Face

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [fastembed-rs](https://talira.ai/catalog/fastembed-rs-9cry7y9m.md)
- Works with [candle](https://talira.ai/catalog/candle-mxvc1kc7.md)

## Alternatives

- [bge-small-en-v1.5](https://talira.ai/catalog/bge-small-en-v1-5-kb749xdz.md): BAAI's small English general embedding model, version 1.5
- [potion-base-8M](https://talira.ai/catalog/potion-base-8m-78qc5xh7.md): Minish's small static English embedding model, distilled from bge-base-en-v1.5
- [snowflake-arctic-embed-xs](https://talira.ai/catalog/snowflake-arctic-embed-xs-93bx26q7.md): Snowflake's tiny Arctic Embed retrieval model: 22M parameters, 384 dimensions
- [multilingual-e5-small](https://talira.ai/catalog/multilingual-e5-small-w6nv9gjz.md): Small multilingual E5 text embedding model: 12 layers, 384 dimensions, 100 languages
- [snowflake-arctic-embed-s](https://talira.ai/catalog/snowflake-arctic-embed-s-718qym23.md): Snowflake's small Arctic Embed retrieval model: 33M parameters, 384 dimensions
- [potion-retrieval-32M](https://talira.ai/catalog/potion-retrieval-32m-a9wwc9ze.md): Minish's static embedding model optimised for retrieval

## Sources

[^1]: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2 (checked 20 Nov 2026)
