alt.freeweights.embed / paraphrase-MiniLM-L6-v2
From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject:

paraphrase-MiniLM-L6-v2

Date: 2026-11-14Commit: c9a2bfeSigned: 2DC28CC7B26A283B ✓

Sentence similarity model with 23M parameters. Onnx and openvino and safetensors weights, 886 MB in all. Published by sentence-transformers under Apache-2.0.

23M params886MBparaphrase-MiniLM-L6-v2onnx openvino safetensorspermissive
FactsParams23MSize886 MBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/paraphrase-MiniLM-L6-v2
# manifest sha256 f7d8abda1c73… · 886 MB · 27 files
$ fw verify ./paraphrase-MiniLM-L6-v2 sentence-transformers/paraphrase-MiniLM-L6-v2
From sourceHosted (signed)sentence-transformers/paraphrase-MiniLM-L6-v2Last check: 2026-11-14 21:10 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Evaluate with

Overview

Size
886 MB
Weights
90.9 MB (safetensors)
Parameters
23M
Formats
onnx, openvino, safetensors
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
27, each with a sha256
Publisher
sentence-transformers
Added
2026-11-14
Section
alt.freeweights.embed
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:10 UTCpassed

Model card

From the publisher at commit c9a2bfe. Shown as plain text with links; images open at the publisher.

sentence-transformers/paraphrase-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.

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/paraphrase-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.

from transformers import AutoTokenizer, AutoModel
import torch


#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
    token_embeddings = model_output[0] #First element of model_output contains all token embeddings
    input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
    return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)


# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']

# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/paraphrase-MiniLM-L6-v2')
model = AutoModel.from_pretrained('sentence-transformers/paraphrase-MiniLM-L6-v2')

# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')

# Compute token embeddings
with torch.no_grad():
    model_output = model(**encoded_input)

# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])

print("Sentence embeddings:")
print(sentence_embeddings)

Full Model Architecture#

SentenceTransformer(
  (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel 
  (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)

Citing & Authors#

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:

@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "http://arxiv.org/abs/1908.10084",
}

Files

27 files · 886 MBWeights 90.9 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 27 files with their sha256
FileSizesha256
.gitattributes744 Bf888dc7c230287cd68af7034aa9fc2e2d6663fb7b3e70faa153caf93877914c3
1_Pooling/config.json190 B4be450dde3b0273bb9787637cfbd28fe04a7ba6ab9d36ac48e92b11e350ffc23
README.md3.51 KB8de1a9ab4f83f29f1ea01d12b4e1c03d18781d3c0fabbd4044c01bd67dd40f78
config.json629 Baed58fca2ba858ac31c042053f99deff1717ca0e7430335d316d58b2d13a046b
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors90.9 MB2ce4480dc3b2f8edeee50c43765c72768e79fc0113d3f73773dded4887cca298
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx90.4 MB441a5dc61ff3b889892feeb7aa0400518cc9908603209c45861ba3abef3006bc
onnx/model_O1.onnx90.4 MBe4b50dcc09ca71accf34b7c7d843ad157499bb2e2c7f7a9b9bc1bbb720147ce6
onnx/model_O2.onnx90.3 MBd99151ccdfb700fb278610e060f3debf615b59da275ba5784385d49c8b8e8e9c
onnx/model_O3.onnx90.3 MB053f244528154eef2db50c676536cdf0ab1e9cba20693ad8c9d83cb592126072
onnx/model_O4.onnx45.2 MB891a315753191d6dfb32c193615187456e33ee52d6425e0ad8dac2d086350f81
onnx/model_qint8_arm64.onnx23.0 MBccc4bb68331e8410226d021ed709d6f2db3b0b25a43504828fa1d54fc6f7b3b3
onnx/model_qint8_avx512.onnx23.0 MBccc4bb68331e8410226d021ed709d6f2db3b0b25a43504828fa1d54fc6f7b3b3
onnx/model_qint8_avx512_vnni.onnx23.0 MBccc4bb68331e8410226d021ed709d6f2db3b0b25a43504828fa1d54fc6f7b3b3
onnx/model_quint8_avx2.onnx23.0 MB7d2e9f4180455601b4ebb64602ba667f551c87f16e791550479346851b6e4787
openvino/openvino_model.bin90.3 MBc6005063ac5c88df685065089e887719f43956959a2080c7b9467bc17924645d
openvino/openvino_model.xml211 KBf87dd1482b2a745f8c699b81ddd9cbcad666a193be4693abcea44b7ac8c67c1e
openvino/openvino_model_qint8_quantized.bin22.9 MBf036c75118e1df8040b4be3d5b7589ae1f1bb0c1f0f5d666b9bd317a2c8014d5
openvino/openvino_model_qint8_quantized.xml368 KB778fdc97d3a8c63275093ec687f7891b95a43f326bdcedb5183c88f669fa2814
pytorch_model.bin90.9 MB5d716de760acbdc09e79a11e718c5606e0812b6aeb76c6664cba876d174e3ecd
sentence_bert_config.json53 B70f4448f31320443fe3557cacea5abf2dcc4915dda8c80646bec9f3bb0aa5a1f
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tf_model.h591.0 MBee09134d6f68fddf22606d3bc296855df94e527bbfe1555151e4b9613564a218
tokenizer.json466 KB5fd1c882abbd30517dced455a2c9768945ec726b96727927e4959348d9de550b
tokenizer_config.json314 B65f933db3e0493bcde9a4e1b8fd5ee13f18d2f8ac62db911a1be51b7fd64ffb0
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
c9a2bfebc2 pinned now manifest updated, same commit2026-11-14 21:10 UTC27 files · 886 MB
c9a2bfebc22026-11-14 21:10 UTC27 files · 886 MB

Use it

$ fw get sentence-transformers/paraphrase-MiniLM-L6-v2
# manifest sha256 f7d8abda1c73… · 886 MB · 27 files
$ fw verify ./paraphrase-MiniLM-L6-v2 sentence-transformers/paraphrase-MiniLM-L6-v2
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/sentence-transformers/paraphrase-MiniLM-L6-v2.json --dir ./paraphrase-MiniLM-L6-v2 $ python3 fw.py verify ./paraphrase-MiniLM-L6-v2 ./sentence-transformers__paraphrase-MiniLM-L6-v2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/paraphrase-MiniLM-L6-v2 --revision c9a2bfebc254878aee8c3aca9e6844d5bbb102d1 --local-dir ./paraphrase-MiniLM-L6-v2
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModel, AutoTokenizer tok = AutoTokenizer.from_pretrained("sentence-transformers/paraphrase-MiniLM-L6-v2", revision="c9a2bfebc254878aee8c3aca9e6844d5bbb102d1") model = AutoModel.from_pretrained("sentence-transformers/paraphrase-MiniLM-L6-v2", revision="c9a2bfebc254878aee8c3aca9e6844d5bbb102d1", device_map="auto")
sentence-transformersEmbed text with sentence-transformers.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from sentence_transformers import SentenceTransformer model = SentenceTransformer("sentence-transformers/paraphrase-MiniLM-L6-v2", revision="c9a2bfebc254878aee8c3aca9e6844d5bbb102d1") vectors = model.encode(["Hello"])

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
8de1a9ab4f83f29f1ea01d12b4e1c03d18781d3c0fabbd4044c01bd67dd40f78
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject: paraphrase-MiniLM-L6-v2Date: 2026-11-14Commit: c9a2bfeSigned: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/paraphrase-MiniLM-L6-v2
Pinned commit
c9a2bfebc254878aee8c3aca9e6844d5bbb102d1
Manifest
paraphrase-MiniLM-L6-v2.json · .minisig
Manifest sha256
f7d8abda1c7309a60e3260aefe5278a0d9b57b56e1b260722c8c664564b07f31
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:10 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/paraphrase-MiniLM-L6-v2.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/paraphrase-MiniLM-L6-v2.json.minisig $ minisign -Vm paraphrase-MiniLM-L6-v2.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/paraphrase-MiniLM-L6-v2
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. paraphrase-MiniLM-L6-v2.json. Provenance. Takedown history: none.
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-MiniLM-L6-v1
From: unsloth <huggingface.co/unsloth>Subject: all-MiniLM-L6-v2
From: mlx-community <huggingface.co/mlx-community>Subject: all-MiniLM-L6-v2-4bit
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-mpnet-base-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: allenai-specter
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: bert-base-nli-max-tokens