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

redis
/
unified-negatives

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

Instructions to use redis/unified-negatives with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use redis/unified-negatives with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("redis/unified-negatives")
    
    sentences = [
        "This positive resistance model is a different way of analyzing feedback oscillator operation.",
        "This positive resistance model is a different way of analyzing feedback oscillator operation.",
        "This negative resistance model is an alternate way of analyzing feedback oscillator operation.",
        "I am BE 8th sem. CSE student. Which path should I choose as a career or which course I should do to get a good job in future within my country?"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
unified-negatives / eval
7.94 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
radoslavralev's picture
radoslavralev
Training in progress, step 3000
0d756ea verified 4 months ago
  • Information-Retrieval_evaluation_NanoMSMARCO_results.csv
    2.53 kB
    Training in progress, step 3000 4 months ago
  • Information-Retrieval_evaluation_NanoNQ_results.csv
    2.33 kB
    Training in progress, step 3000 4 months ago
  • NanoBEIR_evaluation_mean_results.csv
    3.08 kB
    Training in progress, step 3000 4 months ago