Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:477792
loss:CachedMultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use benjamintli/modernbert-msmarco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use benjamintli/modernbert-msmarco with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("benjamintli/modernbert-msmarco") sentences = [ "tachyphylaxis definition", "1 In some areas plumbers charge $45 -$75 an hour; in other regions the hourly rate can be $75 -$150. 2 Most plumbers charge a two-hour minimum or a service call fee of $75 -$150, and some plumbers bill a flat fee per job instead of an hourly rate.3 Either away, exact costs will depend on the complexity and type of work done. Plumbers' rates vary significantly by location. 2 In some areas plumbers charge $45 -$75 an hour; in other regions the hourly rate can be $75 -$150.", "Medical Definition of tachyphylaxis. plural. tachyphylaxes. \\-ËsÄz\\play. : diminished response to later increments in a sequence of applications of a physiologically active substance (as the diminished pressor response that follows repeated injections of renin)", "Quick Answer. Injury to the phrenic nerve can paralyze the diaphragm and have a serious impact on the regulation of breathing, such as difficulty during inhalation, according to the UCLA Division of Plastic & Reconstructive Surgery. The phrenic nerve is responsible for the function of the diaphragm. Continue Reading." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K
This model has 2 files scanned as unsafe.