Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
Generated from Trainer
dataset_size:499184
loss:MultipleNegativesRankingLoss
text-embeddings-inference
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
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!