models

/

all-mpnet-base-v2-5B

Version:

5B GPU: I64

MAX Model

This version is not quantized and a GPU is recommended.

  1. Install our magic package manager:

    curl -ssL https://magic.modular.com/ | bash

    Then run the source command that's printed in your terminal.

  2. Install Max Pipelines in order to run this model.

    magic global install max-pipelines && magic global update
  3. Start a local endpoint for all-mpnet-base-v2/5B:

    max-pipelines serve --huggingface-repo-id=sentence-transformers/all-mpnet-base-v2

    The endpoint is ready when you see the URI printed in your terminal:

    Server ready on http://0.0.0.0:8000 (Press CTRL+C to quit)
  4. Now open another terminal to send a request using curl:

    curl -N http://0.0.0.0:8000/v1/embeddings -H "Content-Type: application/json" -d '{
      "input": "Turn this sentence into embeddings",
      "model": "sentence-transformers/all-mpnet-base-v2",
      "encoding_format": "float"
    }' 
  5. 🎉 Hooray! You’re running Generative AI. Our goal is to make this as easy as possible.

Deploy this model to cloud

DETAILS

EmbeddingMODEL CLASS
MAX Model

MAX Models are popular open-source models converted to MAX’s native graph format. Anything with the label is either SOTA or being worked on. Learn more about MAX Models.

Browse all MAX Models

HARDWARE
GPU
QUANTIZATION
I64
ARCHITECTURE
MAX Model

MAX GITHUB

Modular / MAX

MODEL

sentence-transformers

sentence-transformers/all-mpnet-base-v2

QUESTIONS ABOUT THIS MODEL?

Leave a comment

PROBLEMS WITH THE CODE?

File an Issue

TAGS

sentence-transformers

/

pytorch

/

onnx

/

safetensors

/

openvino

/

mpnet

/

fill-mask

/

feature-extraction

/

sentence-similarity

/

transformers

/

en

/

dataset:s2orc

/

dataset:flax-sentence-embeddings/stackexchange_xml

/

dataset:ms_marco

/

dataset:gooaq

/

dataset:yahoo_answers_topics

/

dataset:code_search_net

/

dataset:search_qa

/

dataset:eli5

/

dataset:snli

/

dataset:multi_nli

/

dataset:wikihow

/

dataset:natural_questions

/

dataset:trivia_qa

/

dataset:embedding-data/sentence-compression

/

dataset:embedding-data/flickr30k-captions

/

dataset:embedding-data/altlex

/

dataset:embedding-data/simple-wiki

/

dataset:embedding-data/QQP

/

dataset:embedding-data/SPECTER

/

dataset:embedding-data/PAQ_pairs

/

dataset:embedding-data/WikiAnswers

/

arxiv:1904.06472

/

arxiv:2102.07033

/

arxiv:2104.08727

/

arxiv:1704.05179

/

arxiv:1810.09305

/

license:apache-2.0

/

autotrain_compatible

/

endpoints_compatible

/

region:us

Resources & support for
running all-mpnet-base-v2-5B

@ Copyright - Modular Inc - 2025