all-mpnet-base-v2 is a sentence embedding model from the Sentence-Transformers library that maps English sentences and paragraphs into dense 768-dimensional vector representations. Based on the microsoft/mpnet-base transformer, the model is fine-tuned using over 1.17 billion sentence pairs via contrastive learning to perform tasks such as semantic search, information retrieval, clustering, and similarity detection. It supports both PyTorch and ONNX, and can be used via SentenceTransformers or Hugging Face Transformers with custom pooling. This model truncates input longer than 384 tokens and achieves strong results across a variety of datasets, including Reddit, WikiAnswers, StackExchange, MS MARCO, and more. Originally trained during Hugging Face’s Community Week using JAX/Flax and TPUs, it delivers high-quality semantic embeddings suitable for production-scale NLP applications.

Features

  • Maps sentences to 768-dimensional dense vectors
  • Trained on 1.17B sentence pairs using contrastive learning
  • Fine-tuned from microsoft/mpnet-base
  • Optimized for sentence similarity, clustering, and retrieval
  • Truncates input longer than 384 tokens
  • Available in PyTorch, ONNX, and OpenVINO formats
  • Efficient inference using Sentence-Transformers or Transformers
  • Pretrained on diverse datasets including Reddit, S2ORC, StackExchange

Project Samples

Project Activity

See All Activity >

Categories

AI Models

Follow all-mpnet-base-v2

all-mpnet-base-v2 Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of all-mpnet-base-v2!

Additional Project Details

Registered

2025-07-01