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

← All models

sentence-transformers_nli-mpnet-base-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
  • text-embeddings-inference pipeline_tag: sentence-similarity

sentence-transformers/nli-mpnet-base-v2

This is a sentence-transformers model: It maps sentences & paragraphs to a 768 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/nli-mpnet-base-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/nli-mpnet-base-v2')
model = AutoModel.from_pretrained('sentence-transformers/nli-mpnet-base-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, mean pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])

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

Usage (Text Embeddings Inference (TEI))

Text Embeddings Inference (TEI) is a blazing fast inference solution for text embedding models.

  • CPU:
docker run -p 8080:80 -v hf_cache:/data --pull always ghcr.io/huggingface/text-embeddings-inference:cpu-latest --model-id sentence-transformers/nli-mpnet-base-v2 --pooling mean --dtype float16
  • NVIDIA GPU:
docker run --gpus all -p 8080:80 -v hf_cache:/data --pull always ghcr.io/huggingface/text-embeddings-inference:cuda-latest --model-id sentence-transformers/nli-mpnet-base-v2 --pooling mean --dtype float16

Send a request to /v1/embeddings to generate embeddings via the OpenAI Embeddings API:

curl http://localhost:8080/v1/embeddings \
  -H "Content-Type: application/json" \
  -d '{"model":"sentence-transformers/nli-mpnet-base-v2","input":"This is an example sentence"}'

Or check the Text Embeddings Inference API specification instead.

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 75, 'do_lower_case': False}) with Transformer model: MPNetModel 
  (1): Pooling({'word_embedding_dimension': 768, '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:ee5382e4e0582f1cb006c0b16d63dd81309cec55&dn=sentence-transformers_nli-mpnet-base-v2

Open magnet in torrent client · infohash ee5382e4e0582f1cb006c0b16d63dd81309cec55

Files & hashes

PathSizesha1sha256
1_Pooling/config.json190 B (190 B)4e09f293dfe90bba49f87cfe7996271f07be2666a37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md4.5 KB (4,641 B)b8cbc71b06c8afb0f4ccf45a69674f607550ed5bf05a15200c69db4d3defa209a0aec8a74a58d3cba480edb57f229b64b0daa69b
config.json587 B (587 B)15bab02ae302c09baeb7f21bdd7508946ca10f696f9733e7e33366fedb45055d97ee7fc9b4c7f4918f344fdb24710e0a2829ffac
config_sentence_transformers.json122 B (122 B)b974b349cb2d419ada11181750a733ff82f291adb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors417.7 MB (437,971,872 B)527cd027f14ad716598f427d5d03108cdcdab347cad5e88c1806c14e1f28458fba10472e3eb138c2096534c3b14bd5ecff94ef0f
modules.json229 B (229 B)f7640f94e81bb7f4f04daf1668850b38763a13d98f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
openvino/openvino_model.bin415.4 MB (435,583,684 B)cbc2f27ff0303fce69d1f91c58ce55a014996cf870c3dce978993d6e266e1b1d3c5fd5c9cea895c5b38f3d80b45d70d1ec670eff
openvino/openvino_model.xml422.6 KB (432,772 B)96482901c6ebc94200a71f01a4933aee15f59d9bf64421a2469bafca29f1ec5ab54357b5ab897cc53e3ce2d31d9fab2523b1d532
openvino/openvino_model_qint8_quantized.bin104.9 MB (109,974,792 B)40ac292364bfc334437387a3e1ab1f44275da31e7aadd947b05c268a212f85b1775dfa7b1b1f6b801bba3bf013741bd2619b11fe
openvino/openvino_model_qint8_quantized.xml724.7 KB (742,100 B)666f3c85eeeb372a84b2099af3999709ff441cb824e8c7f93662b3610aa490e2eec74dbc9f5a398f2132c3afd7ce3da13febbe14
pytorch_model.bin417.7 MB (438,022,897 B)4fd6a94830a28a2bf33f795b812e4e9f0066d655c250de5d7533c0e5d1836293d7e30de4b55af8f13b57c2fc3284a4fad303a7d2
sentence_bert_config.json52 B (52 B)a4b5ede0ec427c9db298fe86576b309b2c983b3410565cc7e408bf2a1260d7e15d3638f7cad3522797e062bacb4607255d0fc0cb
special_tokens_map.json239 B (239 B)378d4fa393d5eaccf69c437a20f1cda6ac65c14d9ef40e9c160511bf3f46ceb71f1471dafa1e9473d5120bb816c36b2efa75f8ba
tokenizer.json455.2 KB (466,166 B)569d0c867a1370243697094d5f9c90a75752fa4454205cec2fea7fb84b2bf16d0c99b8e3714ae7ce3961f3412945e8541073f1da
tokenizer_config.json1.2 KB (1,186 B)f4d7c407f4f9f22360a40bbf6df137bb26434e81a9c45be132a0cbabf5632cba434b9e05575364dd8fd87ea8fa0c9944b482b8c6
vocab.txt226.1 KB (231,536 B)1c51ab79a2298a340952d3e6012042a9c84bbe4ddbd90cb94e2247bd4d4ccaecbf616d2290e66691d7d5e5bb81f063c2d0649ada

Cite this release

Canonical URL
https://aiseedbank.org/models/sentence-transformers_nli-mpnet-base-v2/
Slug
sentence-transformers_nli-mpnet-base-v2
Infohash
ee5382e4e0582f1cb006c0b16d63dd81309cec55
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: sentence-transformers_nli-mpnet-base-v2.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorysentence-transformers/nli-mpnet-base-v2
Revision (pinned)c2f4dd9a1dc4337c28cfbd650433f761bb304c50
Fetched at2026-09-04T05:37:49Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T05:38:04Z

apache-2.01.33 GB (1,423,433,065 bytes)sentence-transformerspytorchonnxsafetensorsopenvinompnetfeature-extractionsentence-similaritytransformerstext-embeddings-inferenceendpoints_compatible1 language (tf)paper: 1908.10084