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

aryanmagoon
/
ms_marco_bi_encoder

Sentence Similarity
sentence-transformers
Safetensors
distilbert
feature-extraction
Generated from Trainer
dataset_size:676193
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use aryanmagoon/ms_marco_bi_encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use aryanmagoon/ms_marco_bi_encoder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("aryanmagoon/ms_marco_bi_encoder")
    
    sentences = [
        "which type of tides have the largest range",
        "Your BMI is based on your height and weight. It's one way to see if you're at a healthy weight. Underweight: Your BMI is less than 18.5. Healthy weight: Your BMI is 18.5 to 24.9. Overweight: Your BMI is 25 to 29.9. Obese: Your BMI is 30 or higher. The chart below shows examples of body mass indexes. The figure at which your height corresponds with your weight is your body mass index.",
        "For example, a slight color change in the test pad for protein may indicate a small amount of protein present in the urine whereas a deep color change may indicate a large amount. The most frequently performed chemical tests using reagent test strips are: 1  Specific gravity.",
        "When the moon is full or new, the gravitational pull of the moon and sun are combined. At these times, the high tides are very high and the low tides are very low. This is known as a spring high tide. Spring tides are especially strong tides (they do not have anything to do with the season Spring). They occur when the Earth, the Sun, and the Moon are in a line. The gravitational forces of the Moon and the Sun both contribute to the tides. Spring tides occur during the full moon and the new moon."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
ms_marco_bi_encoder
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
aryanmagoon's picture
aryanmagoon
Add new SentenceTransformer model.
e2fa119 verified over 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model. over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    21.8 kB
    Add new SentenceTransformer model. over 1 year ago
  • config.json
    542 Bytes
    Add new SentenceTransformer model. over 1 year ago
  • config_sentence_transformers.json
    201 Bytes
    Add new SentenceTransformer model. over 1 year ago
  • model.safetensors
    265 MB
    xet
    Add new SentenceTransformer model. over 1 year ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. over 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. over 1 year ago
  • special_tokens_map.json
    695 Bytes
    Add new SentenceTransformer model. over 1 year ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model. over 1 year ago
  • tokenizer_config.json
    1.39 kB
    Add new SentenceTransformer model. over 1 year ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. over 1 year ago