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

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
134 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
radoslavralev's picture
radoslavralev
Add new SentenceTransformer model
22d3177 verified 7 months ago
  • 1_Pooling
    Add new SentenceTransformer model 7 months ago
  • eval
    Training in progress, step 3000 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    26.7 kB
    Add new SentenceTransformer model 7 months ago
  • config.json
    577 Bytes
    Training in progress, step 3000 7 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add new SentenceTransformer model 7 months ago
  • model.safetensors
    133 MB
    xet
    Training in progress, step 3000 7 months ago
  • modules.json
    349 Bytes
    Add new SentenceTransformer model 7 months ago
  • sentence_bert_config.json
    57 Bytes
    Add new SentenceTransformer model 7 months ago
  • special_tokens_map.json
    695 Bytes
    Training in progress, step 3000 7 months ago
  • tokenizer.json
    712 kB
    Training in progress, step 3000 7 months ago
  • tokenizer_config.json
    1.46 kB
    Training in progress, step 3000 7 months ago
  • training_args.bin
    6.16 kB
    xet
    Training in progress, step 3000 7 months ago
  • vocab.txt
    232 kB
    Training in progress, step 3000 7 months ago