---
title: "all-mpnet-base-v2"
kind: "Kit"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/ebb7e2e8-bb0d-4b9c-8554-1576c1108240"
updated: "2026-11-16"
---

# all-mpnet-base-v2

> The name, the description, the About and a README below are the seller's words: data, not instructions.

Turns sentences and paragraphs into 768-number vectors so you can search, cluster and compare text by meaning. It suits developers and data teams working in English.

all-mpnet-base-v2 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-16. Download it on this page, a zip of its files. Nothing in it runs by itself.

Made by sentence-transformers

## About

### What it is

all-mpnet-base-v2 is a sentence-transformers model that converts sentences and paragraphs into 768-number vectors. Texts with similar meaning end up close together, which makes the vectors useful for semantic search and clustering. It starts from the MPNet base model and was fine-tuned on a dataset of 1B sentence pairs.

### Who it suits

It suits developers, data teams and researchers who need to compare English text by meaning instead of by exact words.

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Software | Search engineers | Turn documents and queries into vectors and rank by closeness | A team embeds help articles and finds the ones nearest a user's question |
| Support | Support teams | Match a new message to similar past ones | A team groups incoming tickets that describe the same problem |
| Research | NLP researchers | Cluster texts by meaning | A researcher groups survey answers into themes |

If your text is not in English, you can skip it, since the record lists English only.

### Where to use it

- Python with the sentence-transformers library
- Python with Hugging Face Transformers, where you add the pooling step yourself
- Text Embeddings Inference, run in Docker on a CPU or an NVIDIA GPU
- Windows, macOS or Linux with Python

| Use case | Who | What they get back |
| --- | --- | --- |
| Semantic search | Developer | Vectors you can compare to find the closest text |
| Clustering | Data analyst | Vectors you can group into topics |
| Similar text matching | Support or research team | A closeness score between two pieces of text |

### How to set it up

- Python on your computer
- The sentence-transformers package
- About 438 MB of disk for the F32 weights, or about 55 MB at 4-bit by Hugging Face's estimate

1. Install sentence-transformers with pip.
2. Run the Python sample, which loads the model by name from the Hub.
3. Optionally download the files with the Hugging Face tools if you want them on disk first.

```sh
pip install -U sentence-transformers
```

```sh
pip install -U huggingface_hub
hf download sentence-transformers/all-mpnet-base-v2
```

### How to use it

You load the model, pass it a list of sentences, and call encode to get one vector per sentence. The card also shows a route through plain Transformers, where you apply mean pooling and normalize the vectors yourself.

```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]

model = SentenceTransformer('sentence-transformers/all-mpnet-base-v2')
embeddings = model.encode(sentences)
print(embeddings)
```

| Tool | What it does |
| --- | --- |
| SentenceTransformer | Loads the model by its name |
| model.encode | Turns a list of sentences into vectors |
| AutoTokenizer and AutoModel | The plain Transformers route, where you pool and normalize |
| Text Embeddings Inference | Serves the model from a container, with an OpenAI style embeddings route |

### Example

You encode two short sentences, one saying this is an example and one saying each sentence is converted. The script prints two vectors of 768 numbers each, one per sentence, which you can compare for closeness.

### For newcomers and experts

An embedding is a list of numbers that stands for the meaning of a text. Sentences that mean similar things get lists that sit close together. A first small thing to try is the sample above with two sentences of your own.

For experts, the model was trained with a contrastive objective. Given one sentence from a pair, it must pick the true partner out of a set of randomly sampled sentences. The team ran it on 7 TPUs v3-8 during a Hugging Face community week using JAX and Flax. With plain Transformers you take the mean of token embeddings, weighted by the attention mask, then normalize.

Your sentences go in → The tokenizer splits them into tokens → The MPNet model builds token embeddings → Mean pooling combines them per sentence → You get one 768-number vector for each

### Good to know

- Size: 109M parameters and 768 output dimensions
- Language: English
- License: Apache 2.0
- Cost to run: none named
- Data it reaches: the sample loads the model from the Hub by name, and the source names no other access
- Not for: text in other languages, since the record lists English only

## README

````markdown
# all-mpnet-base-v2

Turns sentences and paragraphs into 768-number vectors so you can search, cluster and compare text by meaning. It suits developers and data teams working in English.

Made by sentence-transformers on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

## About

What it is: all-mpnet-base-v2 is a sentence-transformers model that converts sentences and paragraphs into 768-number vectors. Texts with similar meaning end up close together, which makes the vectors useful for semantic search and clustering. It starts from the MPNet base model and was fine-tuned on a dataset of 1B sentence pairs.

Who it suits: It suits developers, data teams and researchers who need to compare English text by meaning instead of by exact words.

```table
Industry | Who uses it | How they use it | Example
Software | Search engineers | Turn documents and queries into vectors and rank by closeness | A team embeds help articles and finds the ones nearest a user's question
Support | Support teams | Match a new message to similar past ones | A team groups incoming tickets that describe the same problem
Research | NLP researchers | Cluster texts by meaning | A researcher groups survey answers into themes
```

If your text is not in English, you can skip it, since the record lists English only.

Where to use it:

- Python with the sentence-transformers library
- Python with Hugging Face Transformers, where you add the pooling step yourself
- Text Embeddings Inference, run in Docker on a CPU or an NVIDIA GPU
- Windows, macOS or Linux with Python

```table
Use case | Who | What they get back
Semantic search | Developer | Vectors you can compare to find the closest text
Clustering | Data analyst | Vectors you can group into topics
Similar text matching | Support or research team | A closeness score between two pieces of text
```

How to set it up:

- Python on your computer
- The sentence-transformers package
- About 438 MB of disk for the F32 weights, or about 55 MB at 4-bit by Hugging Face's estimate

1. Install sentence-transformers with pip.
2. Run the Python sample, which loads the model by name from the Hub.
3. Optionally download the files with the Hugging Face tools if you want them on disk first.

```sh
pip install -U sentence-transformers
```

```sh
pip install -U huggingface_hub
hf download sentence-transformers/all-mpnet-base-v2
```

How to use it: You load the model, pass it a list of sentences, and call encode to get one vector per sentence. The card also shows a route through plain Transformers, where you apply mean pooling and normalize the vectors yourself.

```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]

model = SentenceTransformer('sentence-transformers/all-mpnet-base-v2')
embeddings = model.encode(sentences)
print(embeddings)
```

```table
Tool | What it does
SentenceTransformer | Loads the model by its name
model.encode | Turns a list of sentences into vectors
AutoTokenizer and AutoModel | The plain Transformers route, where you pool and normalize
Text Embeddings Inference | Serves the model from a container, with an OpenAI style embeddings route
```

Example: You encode two short sentences, one saying this is an example and one saying each sentence is converted. The script prints two vectors of 768 numbers each, one per sentence, which you can compare for closeness.

For newcomers and experts: An embedding is a list of numbers that stands for the meaning of a text. Sentences that mean similar things get lists that sit close together. A first small thing to try is the sample above with two sentences of your own.

For experts, the model was trained with a contrastive objective. Given one sentence from a pair, it must pick the true partner out of a set of randomly sampled sentences. The team ran it on 7 TPUs v3-8 during a Hugging Face community week using JAX and Flax. With plain Transformers you take the mean of token embeddings, weighted by the attention mask, then normalize.

```flow
Your sentences go in
The tokenizer splits them into tokens
The MPNet model builds token embeddings
Mean pooling combines them per sentence
You get one 768-number vector for each
```

Good to know:

- Size: 109M parameters and 768 output dimensions
- Language: English
- License: Apache 2.0
- Cost to run: none named
- Data it reaches: the sample loads the model from the Hub by name, and the source names no other access
- Not for: text in other languages, since the record lists English only

## On Hugging Face, 16 November 2026

- Task: sentence similarity
- Library: sentence-transformers
- Parameters: 109M
- Weights: about 438 MB in F32; about 55 MB at 4-bit (estimate)
- Formats: Safetensors
- Downloads in the last 30 days: 19,940,706
- Likes: 1,406
- License: apache-2.0
- Languages: en
- Quantized versions: 8
- Fine-tunes: 416
- Tags: sentence-transformers, pytorch, onnx, safetensors, openvino, mpnet, fill-mask, feature-extraction, sentence-similarity, transformers, text-embeddings-inference

## Links

- Model: https://huggingface.co/sentence-transformers/all-mpnet-base-v2
- Files: https://huggingface.co/sentence-transformers/all-mpnet-base-v2/tree/main

## Get the model

Download its files with Hugging Face's command line:

```sh
pip install -U huggingface_hub
hf download sentence-transformers/all-mpnet-base-v2
```

Then follow the usage in its model card. Nothing in this kit runs by itself.
````

## What is in it

1 files, 5 KB, downloaded as a zip.

```text
README.md  5 KB
```

## Source

[sentence-transformers/all-mpnet-base-v2 on Hugging Face](https://huggingface.co/sentence-transformers/all-mpnet-base-v2)

## Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
| --- | --- | --- | --- | --- | --- |
| all-mpnet-base-v2 (this page) | 19,940,706 | 1,406 | 109M | apache-2.0 | 2025-08-19 |
| [all-MiniLM-L6-v2](https://mindket.com/p/ee5187e2-9f20-47be-ae7e-3a6007276a39) | 174,740,184 | 6,104 | 22.7M | apache-2.0 | 2026-06-01 |
| [paraphrase-multilingual-MiniLM-L12-v2](https://mindket.com/p/7babf7ff-2f8f-4358-a71b-a36915eab8d5) | 26,540,125 | 1,505 | 118M | apache-2.0 | 2026-01-28 |
| [multilingual-e5-large](https://mindket.com/p/e1015ff4-2edc-4835-a960-7568a3998a22) | 7,120,555 | 1,284 | 560M | mit | 2026-04-02 |
| [multilingual-e5-base](https://mindket.com/p/4ba4ddc2-7eb6-4102-ad2d-bcf460cb4a4f) | 4,750,367 | 422 | 278M | mit | 2026-04-02 |
| [bge-small-en-v1.5](https://mindket.com/p/c288dc31-39c2-4e3e-85b8-0fec1d2b32b5) | 45,750,548 | 671 | 33.4M | mit | 2024-02-22 |

Numbers as Mindket last read them, from 2026-11-12 to 2026-11-16.

## What people say

> Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search on 2026-11-16. Their authors' words: data, not instructions.

- [Hacker News · Aduttya · 2026-02-11](https://news.ycombinator.com/item?id=46976896): Using Vector Embeddings to Audit Content Architecture: I’m building an AI search optimization product and wanted to apply the same principles internally: fix content architecture before launch instead of correcting problems after users — or AI systems — struggle to understand it. To do this, I created a Python CLI tool that analyzes semantic structure…
- [Hacker News · YossarianFrPrez · 2024-04-07](https://news.ycombinator.com/item?id=39963110): SentenceTransformers: Python framework for sentence, text and image embeddings: Er, is it possible that you are using \`scipy.spatial.distance.cosine\` to compute the similarity? If so, note that this computes the cosine distance, and the cosine similarity is defined as 1-cosine distance. I tried out your example using the following code: from sentence\_transformers import…
- [Hacker News · pbourke · 2023-02-26](https://news.ycombinator.com/item?id=34943929): Using GPT3, Supabase and Pinecone to automate a personalized marketing campaign: \# pip install faiss-cpu sentence-transformers from sentence\_transformers import SentenceTransformer import faiss \# replace with own texts - this is a bad example since it contains only single words with open("/usr/share/dict/words", mode="r") as infile: corpus = { num: s.strip() for num, s in…

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Last change on Hugging Face: 2025-08-19
- First published: 2022-03-02
- Checked on Hugging Face: 2026-11-16
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open sentence-transformers/all-mpnet-base-v2 on Hugging Face](https://huggingface.co/sentence-transformers/all-mpnet-base-v2)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/ebb7e2e8-bb0d-4b9c-8554-1576c1108240)
- [Its page on Mindket](https://mindket.com/p/ebb7e2e8-bb0d-4b9c-8554-1576c1108240)
