SAVRN
Search Contact SAVRN

Open-weight model · Sentence similarity

all-MiniLM-L6-v2

by Sentence Transformers sentence-transformers/all-MiniLM-L6-v2

This is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.

Parameters23M
Context512
Weights975.6 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads255.1M

Runs On

What it takes to serve all-MiniLM-L6-v2 (23M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.0 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By Sentence Transformers, published under apache-2.0, revision 1110a243fdf4.

This is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.

Usage (Sentence-Transformers)

Using this model becomes easy when you have sentence-transformers installed:

pip install -U sentence-transformers

Then you can use the model like this:

from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]

model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
embeddings = model.encode(sentences)
print(embeddings)

Usage (HuggingFace Transformers)

Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.

Read the full model card (760 words)

Configuration

Architecture
BertModel
Context length (tokens)
512
Layers
6
Hidden size
384
Feed-forward size
1,536
Attention heads
12
Vocabulary size
30,522
Model type
bert

Identity and Version

Repository
sentence-transformers/all-MiniLM-L6-v2
Publisher
Sentence Transformers
Task
Sentence similarity
Modality
Text
Library
sentence-transformers
Parameters
23M parameters
Languages
en
Revision
1110a243fdf4706b3f48f1d95db1a4f5529b4d41
First published
2022-03-02
Last updated
2026-06-01

Files and Weights

30 files, 976.9 MB in total. The weights are 15 files totalling 975.6 MB in bin, h5, onnx, ot, safetensors.

Weights15 files · 975.6 MB
Configuration8 files · 53.9 KB
Tokenizer3 files · 698.1 KB
Documentation1 file · 10.5 KB
Other2 files · 579.3 KB
Repository1 file · 1.2 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights90.9 MB 53aa51172d14
onnx/model.onnxWeights90.4 MB 6fd5d72fe458
onnx/model_O1.onnxWeights90.4 MB 1391c6fc20b5
onnx/model_O2.onnxWeights90.3 MB 1de390502919
onnx/model_O3.onnxWeights90.3 MB a44f671e364d
onnx/model_O4.onnxWeights45.2 MB 1667d7f3ba66
onnx/model_qint8_arm64.onnxWeights23.0 MB 4278337fd0ff
onnx/model_qint8_avx512.onnxWeights23.0 MB 4278337fd0ff
onnx/model_qint8_avx512_vnni.onnxWeights23.0 MB 4278337fd0ff
onnx/model_quint8_avx2.onnxWeights23.0 MB b941bf19f1f1
openvino/openvino_model.binWeights90.3 MB 8b86cab4722e
openvino/openvino_model_qint8_quantized.binWeights22.9 MB c92ea4af3c6b
pytorch_model.binWeights90.9 MB c3a85f238711
rust_model.otWeights90.9 MB 2d98d96d2783
tf_model.h5Weights91.0 MB 24c06a7429b8
1_Pooling/config.jsonConfiguration190 B
config.jsonConfiguration612 B
config_sentence_transformers.jsonConfiguration116 B
data_config.jsonConfiguration39.3 KB
modules.jsonConfiguration349 B
sentence_bert_config.jsonConfiguration53 B
special_tokens_map.jsonConfiguration112 B
train_script.pyConfiguration13.2 KB
README.mdDocumentation10.5 KB
openvino/openvino_model.xmlOther211.3 KB
openvino/openvino_model_qint8_quantized.xmlOther368.0 KB
.gitattributesRepository1.2 KB
tokenizer.jsonTokenizer466.2 KB
tokenizer_config.jsonTokenizer350 B
vocab.txtTokenizer231.5 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
975.6 MB
Download from Sentence Transformers

Released by Sentence Transformers through its official repository on Hugging Face. Read the license.

Built From

  • Derived from nreimers/MiniLM-L6-H384-uncased
  • Described by arXiv:1704.05179
  • Described by arXiv:1810.09305
  • Described by arXiv:1904.06472
  • Described by arXiv:2102.07033
  • Described by arXiv:2104.08727
  • Quantized from nreimers/MiniLM-L6-H384-uncased
  • Trained on (disclosed) code_search_net
  • Trained on (disclosed) eli5
  • Trained on (disclosed) embedding-data/PAQ_pairs
  • Trained on (disclosed) embedding-data/QQP
  • Trained on (disclosed) embedding-data/SPECTER
  • Trained on (disclosed) embedding-data/WikiAnswers
  • Trained on (disclosed) embedding-data/altlex
  • Trained on (disclosed) embedding-data/flickr30k-captions
  • Trained on (disclosed) embedding-data/sentence-compression
  • Trained on (disclosed) embedding-data/simple-wiki
  • Trained on (disclosed) flax-sentence-embeddings/stackexchange_xml
  • Trained on (disclosed) gooaq
  • Trained on (disclosed) ms_marco
  • Trained on (disclosed) multi_nli
  • Trained on (disclosed) natural_questions
  • Trained on (disclosed) s2orc
  • Trained on (disclosed) search_qa
  • Trained on (disclosed) snli
  • Trained on (disclosed) trivia_qa
  • Trained on (disclosed) wikihow
  • Trained on (disclosed) yahoo_answers_topics

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
mteb/arguana Task ArguAnaMetric ArguAnaSetup Obtained using MTEB v1.12.75Comparison conditions not established 50.167 Obtained using MTEB v1.12.75
Reported by a third party
Evaluated revision not stated 2026-03-05
mteb/arguana Task ArguAna_default_testMetric ArguAna_default_testSetup Obtained using MTEB v1.12.75Comparison conditions not established 50.167 Obtained using MTEB v1.12.75
Reported by a third party
Evaluated revision not stated 2026-03-05

Memory Requirements

PrecisionWeights in memory
As published975.6 MB
16-bit0.0 GB
8-bit0.0 GB
4-bit0.0 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Built on This Model

Compare all-MiniLM-L6-v2

Questions About all-MiniLM-L6-v2

How much GPU memory does all-MiniLM-L6-v2 need?

About 0.1 GB at 16-bit and 0 GB at 4-bit: the weights (23M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run all-MiniLM-L6-v2 on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use all-MiniLM-L6-v2 commercially?

Yes. all-MiniLM-L6-v2 is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is all-MiniLM-L6-v2's context length?

512 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Sentence similarity

paraphrase-MiniLM-L6-v2

Sentence Transformers

This is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Using this model becomes easy when you have sentence-transformers installed: Then you can use the model like this: Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings. This model was trained by sentence-transformers. If you find this model helpful, feel free to cite our publication Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks

Open weights apache-2.0 23M parameters 512 tokens sentence-transformers

Model · Sentence similarity

multi-qa-MiniLM-L6-cos-v1

Sentence Transformers

This is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and was designed for semantic search. It has been trained on 215M (question, answer) pairs from diverse sources. For an introduction to semantic search, have a look at: SBERT.net - Semantic Search Using this model becomes easy when you have sentence-transformers installed: Then you can use the model like this: Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the correct pooling-operation on-top of the contextualized word embeddings. Similarly to the PyTorch example above, to use the model…

Open weights 23M parameters 512 tokens sentence-transformers

Model · Sentence similarity

paraphrase-MiniLM-L3-v2

Sentence Transformers

This is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Using this model becomes easy when you have sentence-transformers installed: Then you can use the model like this: Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings. This model was trained by sentence-transformers. If you find this model helpful, feel free to cite our publication Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks

Open weights apache-2.0 17M parameters 512 tokens sentence-transformers

Model · Sentence similarity

bge-micro-v2

Taylor

This is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Distilled in a 2-step training process (bge-micro was step 1) from BAAI/bge-small-en-v1.5. Using this model becomes easy when you have sentence-transformers installed: Then you can use the model like this: Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings. For an automated evaluation of this model, see the Sentence Embeddings Benchmark: https://seb.sbert.net

Open weights mit 17M parameters 512 tokens sentence-transformers

Model · Sentence similarity

rubert-tiny2

David Dale

This is an updated version of cointegrated/rubert-tiny: a small Russian BERT-based encoder with high-quality sentence embeddings. This post in Russian gives more details. The differences from the previous version include: - sentence embeddings approximate LaBSE closer than before; - meaningful segment embeddings (tuned on the NLI task) - the model is focused only on Russian. The model should be used as is to produce sentence embeddings (e.g. for KNN classification of short texts) or fine-tuned for a downstream task. Sentence embeddings can be produced as follows: Alternatively, you can use the model with sentencetransformers: For those who want to run the inference with VLLM, there is a…

Open weights mit 29M parameters 2,048 tokens sentence-transformers

Model · Sentence similarity

snowflake-arctic-embed-s

Snowflake

12/04/2024: Release of snowflake-arctic-embed-l-v2.0 and snowflake-arctic-embed-m-v2.0 our newest models with multilingual workloads in mind. These models outperform prior versions of Arctic Embed and we suggest these replace prior versions! 07/26/2024: Release preprint [[2407.18887] Embedding And Clustering Your Data Can Improve Contrastive Pretraining](https://arxiv.org/abs/2407.18887) on arXiv. 07/18/2024: Release of snowflake-arctic-embed-m-v1.5, capable of producing highly compressible embedding vectors that preserve quality even when squished as small as 128 bytes per vector. Details about the development of this model are available in the launch post on the Snowflake engineering…

Open weights apache-2.0 33M parameters 512 tokens sentence-transformers