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

tomaarsen
/
mpnet-base-all-nli-triplet

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

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

  • Libraries
  • sentence-transformers

    How to use tomaarsen/mpnet-base-all-nli-triplet with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("tomaarsen/mpnet-base-all-nli-triplet")
    
    sentences = [
        "The strangely dressed guys, one wearing an orange wig, sunglasses with peace signs, and a karate costume with an orannge belt, another wearing a curly blue wig, heart shaped sunglasses, and a karate outfit painted with leaves, and the third wearing pink underwear, a black afro, and giant sunglasses.",
        "A blonde female is reaching into a golf hole while holding two golf balls.",
        "There are people wearing outfits.",
        "The people are naked."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
mpnet-base-all-nli-triplet
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
tomaarsen's picture
tomaarsen HF Staff
Update README.md
e88732e verified about 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
    25.6 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
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. about 2 years ago