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

paraphrase-MiniLM-L12-v2

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

Sentence similarity model with 33M parameters. Onnx and openvino and safetensors weights, 1.30 GB in all. Published by sentence-transformers under Apache-2.0.

33M params1.30GBparaphrase-MiniLM-L12-v2onnx openvino safetensorspermissive
FactsParams33MSize1.30 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/paraphrase-MiniLM-L12-v2
# manifest sha256 56ead56a425f… · 1.30 GB · 27 files
$ fw verify ./paraphrase-MiniLM-L12-v2 sentence-transformers/paraphrase-MiniLM-L12-v2
From sourceHosted (signed)sentence-transformers/paraphrase-MiniLM-L12-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
1.30 GB
Weights
133 MB (safetensors)
Parameters
33M
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 2b90589. Shown as plain text with links; images open at the publisher.

sentence-transformers/paraphrase-MiniLM-L12-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-L12-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-L12-v2')
model = AutoModel.from_pretrained('sentence-transformers/paraphrase-MiniLM-L12-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 · 1.30 GBWeights 133 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.52 KBffa7927e48c96aa58c5feeec772796c8d215045713e7cb5777f805938278fb08
config.json631 B169ae3bbb2b8af5f639dad8ce2b803b97df459d9ca999ae6bb4eeb49d60c4aa4
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors133 MB23e2b2ef417fd4ddd1745a4bdb8a85c142d5901ba1818c18a292df639e3d4ae8
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx133 MB53fe85a72542e4f06a6ac3d3e8fbef0719285035bea0afc6ca177a2725f87b04
onnx/model_O1.onnx133 MBa204cb173f2fd111dea4c7309c488c3ee385c19494fa26908b9d29bc0118c08c
onnx/model_O2.onnx133 MBd880744d3c9a69a973689a6f6054c0897cfb1a710f1ded67c17f41d4c4ee5c63
onnx/model_O3.onnx133 MB1c44e25e81461e6bad37945ff4ff9cc6294e46defb7acafba217412cb06f12ab
onnx/model_O4.onnx66.6 MB9559897572944822beee9deed32546c9465e56fcb8fbd859a0524fda11ade736
onnx/model_qint8_arm64.onnx34.1 MBd0eca9b0817259112b40c927e38b9879c69c7d7bae02d9bc186e8f69579afc29
onnx/model_qint8_avx512.onnx34.1 MBd0eca9b0817259112b40c927e38b9879c69c7d7bae02d9bc186e8f69579afc29
onnx/model_qint8_avx512_vnni.onnx34.1 MBd0eca9b0817259112b40c927e38b9879c69c7d7bae02d9bc186e8f69579afc29
onnx/model_quint8_avx2.onnx34.2 MBd1ef81ee6cddd7bac712b587c19961b9ec511ebff629f8b454aa5c0714f274de
openvino/openvino_model.bin133 MB7557ae98eb25b86273b909a75e8af435e11408c5c98cdfed77e7ac1b1a78162d
openvino/openvino_model.xml398 KB6258271d8368ad36bd08a6979ba3eed370bdb19e97e3324c646ff6616b560226
openvino/openvino_model_qint8_quantized.bin33.8 MB2e9d768edc8926ca32fce264017610777a2ca1931eaca25f84fdd07ba62dd059
openvino/openvino_model_qint8_quantized.xml708 KBbf8d4e055081f0e0eb637f277658770ac89a9f4e881744ad39b93039366df08e
pytorch_model.bin134 MBdc5e91f5769ccc3e3efe431a8f44d70e4d684014c4cfc1db02d0a8a6ef592dd4
sentence_bert_config.json53 Bfc1993fde0a95c24ec6c022539d41cf6e2f7c9721e5415d6fb6897472a9cd4b7
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tf_model.h5134 MB85b1ede4499e30cc75a3c11f016499d1b52c1cdbdb434df3316570da8340f5fa
tokenizer.json466 KB5fd1c882abbd30517dced455a2c9768945ec726b96727927e4959348d9de550b
tokenizer_config.json316 B004a73627dc426fe8178103267521ac79b8e9cb7442416a88996eafa52d51716
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
2b9058918c pinned now manifest updated, same commit2026-11-14 21:10 UTC27 files · 1.30 GB
2b9058918c2026-11-14 21:10 UTC27 files · 1.30 GB

Use it

$ fw get sentence-transformers/paraphrase-MiniLM-L12-v2
# manifest sha256 56ead56a425f… · 1.30 GB · 27 files
$ fw verify ./paraphrase-MiniLM-L12-v2 sentence-transformers/paraphrase-MiniLM-L12-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-L12-v2.json --dir ./paraphrase-MiniLM-L12-v2 $ python3 fw.py verify ./paraphrase-MiniLM-L12-v2 ./sentence-transformers__paraphrase-MiniLM-L12-v2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/paraphrase-MiniLM-L12-v2 --revision 2b9058918c3d228389532ccf813578658e4af706 --local-dir ./paraphrase-MiniLM-L12-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-L12-v2", revision="2b9058918c3d228389532ccf813578658e4af706") model = AutoModel.from_pretrained("sentence-transformers/paraphrase-MiniLM-L12-v2", revision="2b9058918c3d228389532ccf813578658e4af706", 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-L12-v2", revision="2b9058918c3d228389532ccf813578658e4af706") 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
ffa7927e48c96aa58c5feeec772796c8d215045713e7cb5777f805938278fb08
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-L12-v2Date: 2026-11-14Commit: 2b90589Signed: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/paraphrase-MiniLM-L12-v2
Pinned commit
2b9058918c3d228389532ccf813578658e4af706
Manifest
paraphrase-MiniLM-L12-v2.json · .minisig
Manifest sha256
56ead56a425f62eefb0e580f1c34889e1f24b64b2cb1698e50436e458fa17a45
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-L12-v2.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/paraphrase-MiniLM-L12-v2.json.minisig $ minisign -Vm paraphrase-MiniLM-L12-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-L12-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-L12-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