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

YeonwooSung
/
ModernBERT-large-biencoder-msmarco

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

Instructions to use YeonwooSung/ModernBERT-large-biencoder-msmarco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use YeonwooSung/ModernBERT-large-biencoder-msmarco with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("YeonwooSung/ModernBERT-large-biencoder-msmarco")
    
    sentences = [
        "how long will rotisserie chicken keep in refridgerator",
        "1 Meats with gravy or sauces: 1 to 2 days refrigerator or 6 months (freezer). 2  Rotisserie chicken: 3 to 4 days (refrigerator) or 2 to 3 months (freezer). 3  Opened package of hot dogs: 1 week (refrigerator) or 1 to 2 months (freezer).4  Opened package of deli meat: 3 to 4 days (refrigerator) or 1 to 2 months (freezer). Rotisserie chicken: 3 to 4 days (refrigerator) or 2 to 3 months (freezer). 2  Opened package of hot dogs: 1 week (refrigerator) or 1 to 2 months (freezer). 3  Opened package of deli meat: 3 to 4 days (refrigerator) or 1 to 2 months (freezer).",
        "Can Spinach Cause Constipation? Those who have problems with constipation will want to stay away from certain foods including spinach. Because spinach has so much fiber in it, it can cause constipation in some people, especially those who are already prone to it. Other foods which you will want to avoid if you problems with constipation include apples, peaches, raw carrots, zucchini, kidney beans, lima beans, and whole-grain cereal.",
        "Brush the chickens with oil and season the outside and cavities with salt and pepper. Skewer the chickens onto the rotisserie rod and grill, on the rotisserie, for 30 to 35 minutes, or until the chicken is golden brown and just cooked through. Remove from grill and let rest for 10 minutes before serving."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
ModernBERT-large-biencoder-msmarco
1.58 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
Yeonwoo Sung
Update README.md
b297632 verified over 1 year ago
  • 1_Pooling
    Upload 10 files over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    34.4 kB
    Update README.md over 1 year ago
  • config.json
    1.24 kB
    Upload 10 files over 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Upload 10 files over 1 year ago
  • model.safetensors
    1.58 GB
    xet
    Upload 10 files over 1 year ago
  • modules.json
    229 Bytes
    Upload 10 files over 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Upload 10 files over 1 year ago
  • special_tokens_map.json
    694 Bytes
    Upload 10 files over 1 year ago
  • tokenizer.json
    3.58 MB
    Upload 10 files over 1 year ago
  • tokenizer_config.json
    20.8 kB
    Upload 10 files over 1 year ago