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
- Xet hash:
- 83f2d0482f9474ac5b35a579852e3b89961790a66be11e29635ce46fea959776
- Size of remote file:
- 5.59 kB
- SHA256:
- a4caef1d7d5bc88404d4f6a9b13dc7a07f45f87ab47b1ca1608b6d8eeaea6173
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.