AI SeedbankHelp preserve open and free AI for humanity's future

← All models

sentence-transformers_paraphrase-MiniLM-L12-v2

sentence-transformers · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

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-v2

Open magnet in torrent client · infohash ad16ada9e7514fadccd89aedb5627bb0c03481b2

Files & hashes

PathSizesha1sha256
1_Pooling/config.json190 B (190 B)d1514c3162bbe87b343f565fadc62e6c06f04f034be450dde3b0273bb9787637cfbd28fe04a7ba6ab9d36ac48e92b11e350ffc23
README.md3.4 KB (3,517 B)b452fe7683922fd62553f4f10fc8023f330b3e18ffa7927e48c96aa58c5feeec772796c8d215045713e7cb5777f805938278fb08
config.json631 B (631 B)614ffe47b58b69c50613b6e78bf752e4bd59472a169ae3bbb2b8af5f639dad8ce2b803b97df459d9ca999ae6bb4eeb49d60c4aa4
config_sentence_transformers.json122 B (122 B)b974b349cb2d419ada11181750a733ff82f291adb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors127.3 MB (133,466,304 B)c586f3aa4b8bced7c32467dd1b656d3e27126d5523e2b2ef417fd4ddd1745a4bdb8a85c142d5901ba1818c18a292df639e3d4ae8
modules.json229 B (229 B)f7640f94e81bb7f4f04daf1668850b38763a13d98f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
openvino/openvino_model.bin126.7 MB (132,852,880 B)1e276494ab95337e15238dfee7423cd182b252727557ae98eb25b86273b909a75e8af435e11408c5c98cdfed77e7ac1b1a78162d
openvino/openvino_model.xml388.7 KB (398,045 B)7ba5adb26e0fc64294446e6733a88de94b8f5a666258271d8368ad36bd08a6979ba3eed370bdb19e97e3324c646ff6616b560226
openvino/openvino_model_qint8_quantized.bin32.3 MB (33,818,048 B)7510dc06968937a63b0d7a4016d55da7a4fe68a32e9d768edc8926ca32fce264017610777a2ca1931eaca25f84fdd07ba62dd059
openvino/openvino_model_qint8_quantized.xml691.6 KB (708,149 B)0f39c3b088723108cc37d6cdf4d49c5228d2dd9abf8d4e055081f0e0eb637f277658770ac89a9f4e881744ad39b93039366df08e
pytorch_model.bin127.3 MB (133,518,577 B)5c370c475b2f0840a9de9d8756e87a56829d63dadc5e91f5769ccc3e3efe431a8f44d70e4d684014c4cfc1db02d0a8a6ef592dd4
sentence_bert_config.json53 B (53 B)59d594003bf59880a884c574bf88ef7555bb0202fc1993fde0a95c24ec6c022539d41cf6e2f7c9721e5415d6fb6897472a9cd4b7
special_tokens_map.json112 B (112 B)e7b0375001f109a6b8873d756ad4f7bbb15fbaa5303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tokenizer.json455.2 KB (466,081 B)40c4a0f6c414c8218190234bbce9bf4cc04fa3ac5fd1c882abbd30517dced455a2c9768945ec726b96727927e4959348d9de550b
tokenizer_config.json316 B (316 B)615b59d30bb38818fec848b0f2938d2cac10ef61004a73627dc426fe8178103267521ac79b8e9cb7442416a88996eafa52d51716
vocab.txt226.1 KB (231,508 B)fb140275c155a9c7c5a3b3e0e77a9e839594a93807eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3

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 repositorysentence-transformers/paraphrase-MiniLM-L12-v2
Revision (pinned)2b9058918c3d228389532ccf813578658e4af706
Fetched at2026-09-04T05:38:05Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ 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