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-allnli

Sentence Similarity
sentence-transformers
TensorBoard
Safetensors
English
mpnet
feature-extraction
generated_with_trainer
dataset_size:100K<n<1M
loss:SoftmaxLoss
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Metrics Training metrics Community

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

  • Libraries
  • sentence-transformers

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

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("tomaarsen/mpnet-base-allnli")
    
    sentences = [
        "A taxi SUV drives past an urban construction site, as a man walks down the street in the other direction.",
        "The woman is walking down the street with high heels.",
        "A man is reading documents in a binder.",
        "A man is chasing an SUV that is going in the same direction as him."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
mpnet-base-allnli
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
tomaarsen's picture
tomaarsen HF Staff
Delete emissions.csv
9102dbb verified about 2 years ago
  • 1_Pooling
    Training in progress, step 30 about 2 years ago
  • runs
    Model save about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    35.4 kB
    Model save about 2 years ago
  • config.json
    618 Bytes
    Training in progress, step 30 about 2 years ago
  • config_sentence_transformers.json
    216 Bytes
    Training in progress, step 30 about 2 years ago
  • model.safetensors
    438 MB
    xet
    Training in progress, step 210 about 2 years ago
  • modules.json
    368 Bytes
    Training in progress, step 30 about 2 years ago
  • sentence_bert_config.json
    56 Bytes
    Training in progress, step 30 about 2 years ago
  • special_tokens_map.json
    1.01 kB
    Training in progress, step 30 about 2 years ago
  • tokenizer.json
    711 kB
    Training in progress, step 30 about 2 years ago
  • tokenizer_config.json
    1.46 kB
    Training in progress, step 30 about 2 years ago
  • training_args.bin
    5.43 kB
    xet
    Training in progress, step 30 about 2 years ago
  • vocab.txt
    232 kB
    Training in progress, step 30 about 2 years ago