Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

adugeen
/
phrases-reranker-e5-base

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

Instructions to use adugeen/phrases-reranker-e5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use adugeen/phrases-reranker-e5-base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("adugeen/phrases-reranker-e5-base")
    
    sentences = [
        "Instruct: Given a dialogue context, retrieve relevant followup phrase that align with the context\nDialogue Context: bot_0: Do you like gaming. I am a big fan.\nbot_1: My kids play games but I don't play much. I love to watch movies!.\nbot_0: Oh really what is their favorite game?\nbot_1: I think it's called fortnite. I sometimes watch while cooking healthy meals. What's yours?\nbot_0: The best game I like to play is alistar.\nbot_1: Never heard of it. Old timer here! Just turned 30. What other things do you like?",
        "Followup phrase: I usually only eat them when my kids want them, it's not something that I'll make for myself.  What's your favorite dip for chicken nuggets?",
        "Followup phrase: My big doberman lays on me all the time and ripped mine off",
        "Followup phrase: Yeah, he also got me into cars."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
phrases-reranker-e5-base
1.68 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
adugeen's picture
adugeen
Upload folder using huggingface_hub
86eb18e verified over 1 year ago
  • 1_Pooling
    Upload folder using huggingface_hub over 1 year ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub over 1 year ago
  • README.md
    25.9 kB
    Upload folder using huggingface_hub over 1 year ago
  • config.json
    663 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • model.safetensors
    556 MB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • modules.json
    349 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • optimizer.pt
    1.11 GB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • rng_state.pth
    14.6 kB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • scheduler.pt
    1.47 kB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • special_tokens_map.json
    964 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer.json
    17.1 MB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer_config.json
    1.21 kB
    Upload folder using huggingface_hub over 1 year ago
  • trainer_state.json
    7.35 kB
    Upload folder using huggingface_hub over 1 year ago
  • training_args.bin
    6.29 kB
    xet
    Upload folder using huggingface_hub over 1 year ago