Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

IRPC
/
all-mpnet-base-v2

Sentence Similarity
sentence-transformers
PyTorch
ONNX
Safetensors
OpenVINO
Transformers
English
mpnet
fill-mask
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use IRPC/all-mpnet-base-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use IRPC/all-mpnet-base-v2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("IRPC/all-mpnet-base-v2")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use IRPC/all-mpnet-base-v2 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("IRPC/all-mpnet-base-v2")
    model = AutoModelForMaskedLM.from_pretrained("IRPC/all-mpnet-base-v2")
  • Notebooks
  • Google Colab
  • Kaggle
all-mpnet-base-v2
3.82 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
major-katsurAGI's picture
major-katsurAGI
chore: Add model files
c3a9ca9 verified about 1 year ago
  • 1_Pooling
    chore: Add model files about 1 year ago
  • onnx
    chore: Add model files about 1 year ago
  • openvino
    chore: Add model files about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    10.6 kB
    chore: Add model files about 1 year ago
  • config.json
    571 Bytes
    chore: Add model files about 1 year ago
  • config_sentence_transformers.json
    116 Bytes
    chore: Add model files about 1 year ago
  • data_config.json
    39.3 kB
    chore: Add model files about 1 year ago
  • model.safetensors
    438 MB
    xet
    chore: Add model files about 1 year ago
  • modules.json
    349 Bytes
    chore: Add model files about 1 year ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "collections.OrderedDict",
    • "torch.LongStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    438 MB
    xet
    chore: Add model files about 1 year ago
  • sentence_bert_config.json
    53 Bytes
    chore: Add model files about 1 year ago
  • special_tokens_map.json
    239 Bytes
    chore: Add model files about 1 year ago
  • tokenizer.json
    466 kB
    chore: Add model files about 1 year ago
  • tokenizer_config.json
    363 Bytes
    chore: Add model files about 1 year ago
  • train_script.py
    13.1 kB
    chore: Add model files about 1 year ago
  • vocab.txt
    232 kB
    chore: Add model files about 1 year ago