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
      • 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-gooaq

Sentence Similarity
sentence-transformers
Safetensors
English
mpnet
feature-extraction
dataset_size:1M<n<10M
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

    How to use tomaarsen/mpnet-base-gooaq with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("tomaarsen/mpnet-base-gooaq")
    
    sentences = [
        "11 is what of 8?",
        "*RARE* CANDY AXE AND RED NOSED RAIDER IS BACK - FORTNITE ITEM SHOP 8TH DECEMBER 2019.",
        "Convert fraction (ratio) 8 / 11 Answer: 72.727272727273%",
        "Old-age pensions are not included in taxable income under the personal income tax."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
mpnet-base-gooaq
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
tomaarsen's picture
tomaarsen HF Staff
Update train_script.py
d1c74c9 verified almost 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    36.3 kB
    Update README.md about 2 years ago
  • config.json
    618 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • config_sentence_transformers.json
    215 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • model.safetensors
    438 MB
    xet
    Add new SentenceTransformer model. about 2 years ago
  • modules.json
    242 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • sentence_bert_config.json
    56 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • special_tokens_map.json
    1.01 kB
    Add new SentenceTransformer model. about 2 years ago
  • tokenizer.json
    711 kB
    Add new SentenceTransformer model. about 2 years ago
  • tokenizer_config.json
    1.46 kB
    Add new SentenceTransformer model. about 2 years ago
  • train_script.py
    3.36 kB
    Update train_script.py almost 2 years ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. about 2 years ago