sentence-transformers_paraphrase-MiniLM-L12-v2
sentence-transformers · View on Hugging Face ↗
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
license: apache-2.0 library_name: sentence-transformers tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
- transformers pipeline_tag: sentence-similarity
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",
}
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:ad16ada9e7514fadccd89aedb5627bb0c03481b2&dn=sentence-transformers_paraphrase-MiniLM-L12-v2Open magnet in torrent client · infohash ad16ada9e7514fadccd89aedb5627bb0c03481b2
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| 1_Pooling/config.json | 190 B (190 B) | d1514c3162bbe87b343f565fadc62e6c06f04f03 | 4be450dde3b0273bb9787637cfbd28fe04a7ba6ab9d36ac48e92b11e350ffc23 |
| README.md | 3.4 KB (3,517 B) | b452fe7683922fd62553f4f10fc8023f330b3e18 | ffa7927e48c96aa58c5feeec772796c8d215045713e7cb5777f805938278fb08 |
| config.json | 631 B (631 B) | 614ffe47b58b69c50613b6e78bf752e4bd59472a | 169ae3bbb2b8af5f639dad8ce2b803b97df459d9ca999ae6bb4eeb49d60c4aa4 |
| config_sentence_transformers.json | 122 B (122 B) | b974b349cb2d419ada11181750a733ff82f291ad | b8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8 |
| model.safetensors | 127.3 MB (133,466,304 B) | c586f3aa4b8bced7c32467dd1b656d3e27126d55 | 23e2b2ef417fd4ddd1745a4bdb8a85c142d5901ba1818c18a292df639e3d4ae8 |
| modules.json | 229 B (229 B) | f7640f94e81bb7f4f04daf1668850b38763a13d9 | 8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460 |
| openvino/openvino_model.bin | 126.7 MB (132,852,880 B) | 1e276494ab95337e15238dfee7423cd182b25272 | 7557ae98eb25b86273b909a75e8af435e11408c5c98cdfed77e7ac1b1a78162d |
| openvino/openvino_model.xml | 388.7 KB (398,045 B) | 7ba5adb26e0fc64294446e6733a88de94b8f5a66 | 6258271d8368ad36bd08a6979ba3eed370bdb19e97e3324c646ff6616b560226 |
| openvino/openvino_model_qint8_quantized.bin | 32.3 MB (33,818,048 B) | 7510dc06968937a63b0d7a4016d55da7a4fe68a3 | 2e9d768edc8926ca32fce264017610777a2ca1931eaca25f84fdd07ba62dd059 |
| openvino/openvino_model_qint8_quantized.xml | 691.6 KB (708,149 B) | 0f39c3b088723108cc37d6cdf4d49c5228d2dd9a | bf8d4e055081f0e0eb637f277658770ac89a9f4e881744ad39b93039366df08e |
| pytorch_model.bin | 127.3 MB (133,518,577 B) | 5c370c475b2f0840a9de9d8756e87a56829d63da | dc5e91f5769ccc3e3efe431a8f44d70e4d684014c4cfc1db02d0a8a6ef592dd4 |
| sentence_bert_config.json | 53 B (53 B) | 59d594003bf59880a884c574bf88ef7555bb0202 | fc1993fde0a95c24ec6c022539d41cf6e2f7c9721e5415d6fb6897472a9cd4b7 |
| special_tokens_map.json | 112 B (112 B) | e7b0375001f109a6b8873d756ad4f7bbb15fbaa5 | 303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3 |
| tokenizer.json | 455.2 KB (466,081 B) | 40c4a0f6c414c8218190234bbce9bf4cc04fa3ac | 5fd1c882abbd30517dced455a2c9768945ec726b96727927e4959348d9de550b |
| tokenizer_config.json | 316 B (316 B) | 615b59d30bb38818fec848b0f2938d2cac10ef61 | 004a73627dc426fe8178103267521ac79b8e9cb7442416a88996eafa52d51716 |
| vocab.txt | 226.1 KB (231,508 B) | fb140275c155a9c7c5a3b3e0e77a9e839594a938 | 07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3 |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/sentence-transformers_paraphrase-MiniLM-L12-v2/
- Slug
- sentence-transformers_paraphrase-MiniLM-L12-v2
- Infohash
- ad16ada9e7514fadccd89aedb5627bb0c03481b2
- License
- apache-2.0
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: sentence-transformers_paraphrase-MiniLM-L12-v2.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | sentence-transformers/paraphrase-MiniLM-L12-v2 |
|---|---|
| Revision (pinned) | 2b9058918c3d228389532ccf813578658e4af706 |
| Fetched at | 2026-09-04T05:38:05Z |
| License at fetch | apache-2.0 |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-04T05:38:12Z
apache-2.0415.3 MB (435,464,762 bytes)sentence-transformerspytorchonnxsafetensorsopenvinobertfeature-extractionsentence-similaritytransformerstext-embeddings-inferenceendpoints_compatible1 language (tf)paper: 1908.10084