multilingual-e5-base
intfloat · Kit
Turns text in about 100 languages into vectors so you can compare meaning across them, for search and matching. Made for developers who build multilingual retr…
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 . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U sentence-transformers
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.
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.
| 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 |
pip install -U sentence-transformers
pip install -U huggingface_hub hf download sentence-transformers/all-mpnet-base-v2
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.
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 |
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.
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.
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.
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:
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:
pip install -U sentence-transformers
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.
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:
Download its files with Hugging Face's command line:
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.
README.md 5 KB
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 | |
| all-MiniLM-L6-v2Shares openvino · sentence-similarity · text-embeddings-inference | 174,740,184 | 6,104 | 22.7M | apache-2.0 | |
| paraphrase-multilingual-MiniLM-L12-v2Shares openvino · sentence-similarity · text-embeddings-inference | 26,540,125 | 1,505 | 118M | apache-2.0 | |
| multilingual-e5-largeShares openvino · sentence-similarity · text-embeddings-inference | 7,120,555 | 1,284 | 560M | mit | |
| multilingual-e5-baseShares openvino · sentence-similarity · text-embeddings-inference | 4,750,367 | 422 | 278M | mit | |
| bge-small-en-v1.5Shares sentence-similarity · text-embeddings-inference · sentence-transformers | 45,750,548 | 671 | 33.4M | mit |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
intfloat · Kit
Turns text in about 100 languages into vectors so you can compare meaning across them, for search and matching. Made for developers who build multilingual retr…
aldegad · Skill
Turns one base drawing of a character into game-ready sprites, either an atlas with a manifest or transparent motion loops, for game developers working in Code…
yanliudesign · Skill
Makes original one-ink and two-ink editorial images from a theme, an object or your photo, for posters, zines, portraits and packaging. Returns the image, the…
foryourhealth111-pixel · Skill
Picks the right skills from a large installed pool and breaks each task into checkable steps for your coding agent. In its own benchmark, mean reward rose 21.1…
elementalsouls · Skill
Gives Claude Code 83 skills and 15 slash commands for bug bounty hunting and authorized red-team work, from web vulnerability classes to enterprise identity at…
bsaleh03 · Kit
Runs Qwen3.8-27B with a vocabulary cut down to ASCII, so a single 16 GB graphics card can hold a much longer prompt. A GGUF build for English text and code wit…