alt.freeweights.embed / nli-mpnet-base-v2
From: sentence-transformers <huggingface.co/sentence-transformers>Newsgroups: alt.freeweights.embedSubject:

nli-mpnet-base-v2

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

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

109M params4.26GBnli-mpnet-base-v2onnx openvino safetensorspermissive
FactsParams109MSize4.26 GBFormatsonnx, openvino, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get sentence-transformers/nli-mpnet-base-v2
# manifest sha256 8559035e6007… · 4.26 GB · 27 files
$ fw verify ./nli-mpnet-base-v2 sentence-transformers/nli-mpnet-base-v2
From sourceHosted (signed)sentence-transformers/nli-mpnet-base-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
4.26 GB
Weights
438 MB (safetensors)
Parameters
109M
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 c2f4dd9. Shown as plain text with links; images open at the publisher.

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",
}

Files

27 files · 4.26 GBWeights 438 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 27 files with their sha256
FileSizesha256
.gitattributes744 Bf888dc7c230287cd68af7034aa9fc2e2d6663fb7b3e70faa153caf93877914c3
1_Pooling/config.json190 Ba37f83ada23e7887be6b88f4998927dbeac0038af301553c7cd5461413bf1a56
README.md4.64 KBf05a15200c69db4d3defa209a0aec8a74a58d3cba480edb57f229b64b0daa69b
config.json587 B6f9733e7e33366fedb45055d97ee7fc9b4c7f4918f344fdb24710e0a2829ffac
config_sentence_transformers.json122 Bb8c64b5cece00d8424b4896ea75b512b6008576088497609dfeb6bd63e6d36b8
model.safetensors438 MBcad5e88c1806c14e1f28458fba10472e3eb138c2096534c3b14bd5ecff94ef0f
modules.json229 B8f4b264b80206c830bebbdcae377e137925650a433b689343a63bdc9b3145460
onnx/model.onnx436 MBf4eaaef3227f69431f42a684ec9d712339a081c086bc9426fdfeaa7db97a5845
onnx/model_O1.onnx436 MB7859da8e0d75e473a21dd58f54f0189fac956999a4f66248a7fbd1a440bb2556
onnx/model_O2.onnx436 MBb26070b85e939c1f20134c7b34d9b96b6aba35a248f5def3dbd5fd9f37cdf202
onnx/model_O3.onnx436 MB23feca3e58ff554a12b997af2bc1b27bef1e024b274c58cf2c2c9d65bdc19c56
onnx/model_O4.onnx218 MB01c9aabc5cab4e2ef255978e0858ca0871ea0d250a3f9cf6570c1df7a63fc359
onnx/model_qint8_arm64.onnx110 MB890c0088d7ce7e10b7e1c342d8c61a1392cdbb60b5ab568f70a2d5d9d9fab3b1
onnx/model_qint8_avx512.onnx110 MB890c0088d7ce7e10b7e1c342d8c61a1392cdbb60b5ab568f70a2d5d9d9fab3b1
onnx/model_qint8_avx512_vnni.onnx110 MB890c0088d7ce7e10b7e1c342d8c61a1392cdbb60b5ab568f70a2d5d9d9fab3b1
onnx/model_quint8_avx2.onnx110 MBf97501d0be9510e40f34bcd93220fe500bede6290efffb24594df95b8e244856
openvino/openvino_model.bin436 MB70c3dce978993d6e266e1b1d3c5fd5c9cea895c5b38f3d80b45d70d1ec670eff
openvino/openvino_model.xml433 KBf64421a2469bafca29f1ec5ab54357b5ab897cc53e3ce2d31d9fab2523b1d532
openvino/openvino_model_qint8_quantized.bin110 MB7aadd947b05c268a212f85b1775dfa7b1b1f6b801bba3bf013741bd2619b11fe
openvino/openvino_model_qint8_quantized.xml742 KB24e8c7f93662b3610aa490e2eec74dbc9f5a398f2132c3afd7ce3da13febbe14
pytorch_model.bin438 MBc250de5d7533c0e5d1836293d7e30de4b55af8f13b57c2fc3284a4fad303a7d2
sentence_bert_config.json52 B10565cc7e408bf2a1260d7e15d3638f7cad3522797e062bacb4607255d0fc0cb
special_tokens_map.json239 B9ef40e9c160511bf3f46ceb71f1471dafa1e9473d5120bb816c36b2efa75f8ba
tf_model.h5438 MB573d04bc90e99482cf3c2e248df25e30da8a5993615d8acdd186da7effc810b7
tokenizer.json466 KB54205cec2fea7fb84b2bf16d0c99b8e3714ae7ce3961f3412945e8541073f1da
tokenizer_config.json1.19 KBa9c45be132a0cbabf5632cba434b9e05575364dd8fd87ea8fa0c9944b482b8c6
vocab.txt232 KBdbd90cb94e2247bd4d4ccaecbf616d2290e66691d7d5e5bb81f063c2d0649ada
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
c2f4dd9a1d pinned now manifest updated, same commit2026-11-14 21:10 UTC27 files · 4.26 GB
c2f4dd9a1d2026-11-14 21:10 UTC27 files · 4.26 GB

Use it

$ fw get sentence-transformers/nli-mpnet-base-v2
# manifest sha256 8559035e6007… · 4.26 GB · 27 files
$ fw verify ./nli-mpnet-base-v2 sentence-transformers/nli-mpnet-base-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/nli-mpnet-base-v2.json --dir ./nli-mpnet-base-v2 $ python3 fw.py verify ./nli-mpnet-base-v2 ./sentence-transformers__nli-mpnet-base-v2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download sentence-transformers/nli-mpnet-base-v2 --revision c2f4dd9a1dc4337c28cfbd650433f761bb304c50 --local-dir ./nli-mpnet-base-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/nli-mpnet-base-v2", revision="c2f4dd9a1dc4337c28cfbd650433f761bb304c50") model = AutoModel.from_pretrained("sentence-transformers/nli-mpnet-base-v2", revision="c2f4dd9a1dc4337c28cfbd650433f761bb304c50", 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/nli-mpnet-base-v2", revision="c2f4dd9a1dc4337c28cfbd650433f761bb304c50") 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
f05a15200c69db4d3defa209a0aec8a74a58d3cba480edb57f229b64b0daa69b
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: nli-mpnet-base-v2Date: 2026-11-14Commit: c2f4dd9Signed: 2DC28CC7B26A283B ✓
Upstream
sentence-transformers/nli-mpnet-base-v2
Pinned commit
c2f4dd9a1dc4337c28cfbd650433f761bb304c50
Manifest
nli-mpnet-base-v2.json · .minisig
Manifest sha256
8559035e60074fb21435b2813f864af85096c5b96e5547f55565a1379e24d5a6
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/nli-mpnet-base-v2.json $ curl -O https://freeweights.allternit.com/manifests/sentence-transformers/nli-mpnet-base-v2.json.minisig $ minisign -Vm nli-mpnet-base-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/nli-mpnet-base-v2
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. nli-mpnet-base-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