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
/
sparse-mpnet-base-nq-fresh

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

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

  • Libraries
  • sentence-transformers

    How to use tomaarsen/sparse-mpnet-base-nq-fresh with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("tomaarsen/sparse-mpnet-base-nq-fresh")
    
    sentences = [
        "what is the difference between uae and saudi arabia",
        "Monopoly Junior Players take turns in order, with the initial player determined by age before the game: the youngest player goes first. Players are dealt an initial amount Monopoly money depending on the total number of players playing: 20 in a two-player game, 18 in a three-player game or 16 in a four-player game. A typical turn begins with the rolling of the die and the player advancing their token clockwise around the board the corresponding number of spaces. When the player lands on an unowned space they must purchase the space from the bank for the amount indicated on the board, and places a sold sign on the coloured band at the top of the space to denote ownership. If a player lands on a space owned by an opponent the player pays the opponent rent in the amount written on the board. If the opponent owns both properties of the same colour the rent is doubled.",
        "Saudi Arabia–United Arab Emirates relations However, the UAE and Saudi Arabia continue to take somewhat differing stances on regional conflicts such the Yemeni Civil War, where the UAE opposes Al-Islah, and supports the Southern Movement, which has fought against Saudi-backed forces, and the Syrian Civil War, where the UAE has disagreed with Saudi support for Islamist movements.[4]",
        "Governors of states of India The governors and lieutenant-governors are appointed by the President for a term of five years."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
sparse-mpnet-base-nq-fresh
448 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
tomaarsen's picture
tomaarsen HF Staff
Link to the training script
7070c21 verified over 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model over 1 year ago
  • 2_CSRSparsity
    Add new SentenceTransformer model over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    81.6 kB
    Link to the training script over 1 year ago
  • config.json
    579 Bytes
    Add new SentenceTransformer model over 1 year ago
  • config_sentence_transformers.json
    224 Bytes
    Add new SentenceTransformer model over 1 year ago
  • model.safetensors
    438 MB
    xet
    Add new SentenceTransformer model over 1 year ago
  • modules.json
    387 Bytes
    Add new SentenceTransformer model over 1 year ago
  • sentence_bert_config.json
    56 Bytes
    Add new SentenceTransformer model over 1 year ago
  • special_tokens_map.json
    1.01 kB
    Add new SentenceTransformer model over 1 year ago
  • tokenizer.json
    711 kB
    Add new SentenceTransformer model over 1 year ago
  • tokenizer_config.json
    1.49 kB
    Add new SentenceTransformer model over 1 year ago
  • train_nq.py
    4.23 kB
    Create train_nq.py over 1 year ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model over 1 year ago