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

trbeers
/
distilroberta-base-nli-v2

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

Instructions to use trbeers/distilroberta-base-nli-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use trbeers/distilroberta-base-nli-v2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("trbeers/distilroberta-base-nli-v2")
    
    sentences = [
        "An Indian woman is washing and cleaning dirty laundry at a lake and in the background is a kid who appears to have jumped into the lake.",
        "An Indian woman is doing her laundry in a lake.",
        "An Indian woman is putting her laundry into the machine.",
        "A girl is playing with a Slinky."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
distilroberta-base-nli-v2
332 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
trbeers's picture
trbeers
Add new SentenceTransformer model.
a840b09 verified almost 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    20.3 kB
    Add new SentenceTransformer model. almost 2 years ago
  • config.json
    671 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • config_sentence_transformers.json
    195 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • merges.txt
    456 kB
    Add new SentenceTransformer model. almost 2 years ago
  • model.safetensors
    328 MB
    xet
    Add new SentenceTransformer model. almost 2 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • special_tokens_map.json
    280 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • tokenizer.json
    2.11 MB
    Add new SentenceTransformer model. almost 2 years ago
  • tokenizer_config.json
    1.22 kB
    Add new SentenceTransformer model. almost 2 years ago
  • vocab.json
    798 kB
    Add new SentenceTransformer model. almost 2 years ago