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

  • Log In
  • Sign Up

tomaarsen
/
mpnet-base-natural-questions-mnsrl

Sentence Similarity
sentence-transformers
Safetensors
English
mpnet
feature-extraction
Generated from Trainer
dataset_size:100231
loss:MultipleNegativesSymmetricRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use tomaarsen/mpnet-base-natural-questions-mnsrl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use tomaarsen/mpnet-base-natural-questions-mnsrl with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("tomaarsen/mpnet-base-natural-questions-mnsrl")
    
    sentences = [
        "when did the british leave new york city",
        "Golden State Warriors The Golden State Warriors are an American professional basketball team based in Oakland, California. The Warriors compete in the National Basketball Association (NBA) as a member of the league's Western Conference Pacific Division. The Warriors play their home games at the Oracle Arena in Oakland. The Warriors have reached nine NBA Finals, winning five NBA championships in 1947,[b] 1956, 1975, 2015 and 2017. Golden State's five NBA championships are tied for fourth-most in NBA history with the San Antonio Spurs, and behind only the Boston Celtics (17), Los Angeles Lakers (16) and Chicago Bulls (6). As of 2017, the Warriors are the third most valuable NBA franchise according to Forbes, with an estimated value of $2.6 billion.[6]",
        "Evacuation Day (New York) Evacuation Day on November 25 marks the day in 1783 when British troops departed from New York City on Manhattan Island, after the end of the American Revolutionary War. After this British Army evacuation, General George Washington triumphantly led the Continental Army from his former headquarters, north of the city, across the Harlem River south down Manhattan through the town to The Battery at the foot of Broadway.[1]",
        "Biochemical oxygen demand BOD can be used as a gauge of the effectiveness of wastewater treatment plants. It is listed as a conventional pollutant in the U.S. Clean Water Act.[2]"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
mpnet-base-natural-questions-mnsrl
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
tomaarsen's picture
tomaarsen HF Staff
Add new SentenceTransformer model.
3207540 verified over 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    44.6 kB
    Add new SentenceTransformer model. over 2 years ago
  • config.json
    618 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • config_sentence_transformers.json
    215 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • model.safetensors
    438 MB
    xet
    Add new SentenceTransformer model. over 2 years ago
  • modules.json
    242 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • sentence_bert_config.json
    56 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • special_tokens_map.json
    1.01 kB
    Add new SentenceTransformer model. over 2 years ago
  • tokenizer.json
    711 kB
    Add new SentenceTransformer model. over 2 years ago
  • tokenizer_config.json
    1.46 kB
    Add new SentenceTransformer model. over 2 years ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. over 2 years ago