Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

diptanuc
/
all-mpnet-base-v2

Sentence Similarity
sentence-transformers
PyTorch
Rust
English
mpnet
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • sentence-transformers

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

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("diptanuc/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]
  • Notebooks
  • Google Colab
  • Kaggle
all-mpnet-base-v2
877 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 14 commits
diptanuc's picture
diptanuc
fixed the datasets file
befcf4e about 3 years ago
  • 1_Pooling
    upload over 4 years ago
  • .gitattributes
    1.18 kB
    initial commit over 4 years ago
  • README.md
    10.6 kB
    fixed the datasets file about 3 years ago
  • config.json
    571 Bytes
    upload over 4 years ago
  • config_sentence_transformers.json
    116 Bytes
    upload over 4 years ago
  • data_config.json
    39.3 kB
    upload over 4 years ago
  • modules.json
    349 Bytes
    upload over 4 years ago
  • pytorch_model.bin
    438 MB
    xet
    upload over 4 years ago
  • rust_model.ot
    438 MB
    xet
    Adding rust model about 3 years ago
  • sentence_bert_config.json
    53 Bytes
    up over 4 years ago
  • special_tokens_map.json
    239 Bytes
    upload over 4 years ago
  • tokenizer.json
    466 kB
    upload over 4 years ago
  • tokenizer_config.json
    363 Bytes
    upload over 4 years ago
  • train_script.py
    13.1 kB
    upload over 4 years ago
  • vocab.txt
    232 kB
    upload over 4 years ago