Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
Generated from Trainer
dataset_size:11662655
loss:CachedMultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use makiart/ModernBERT-base-DPR-msmarco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use makiart/ModernBERT-base-DPR-msmarco with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("makiart/ModernBERT-base-DPR-msmarco") sentences = [ "where is henderson mn", "Confidence votes 1.7K. Assuming we're talking about the `usual' 12 volt car battery' the resting voltage should be around 11 to 11.5 volts. Under charge it's as high as 15 volts as supplied from the alternator,and most cars won't start if the voltage is under 10.5 to 11.5 volts. The term `12 volt battery' is what's referred to as, `nominal' or `in name only' as a general reference and not meant to be an accurate description.", "Henderson is a very small town of 1,000 people on the west bank of the Minnesota River just south of the Minneapolis and Saint Paul metro area.", "Henderson, officially the City of Henderson, is an affluent city in Clark County, Nevada, United States, about 16 miles southeast of Las Vegas. It is the second-largest city in Nevada, after Las Vegas, with an estimated population of 292,969 in 2016.[2] The city is part of the Las Vegas metropolitan area, which spans the entire Las Vegas Valley. Henderson occupies the southeastern end of the valley, at an elevation of approximately 1,330 feet (410 m)." ] 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!