Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
Generated from Trainer
dataset_size:498970
loss:BPRLoss
text-embeddings-inference
Instructions to use YeonwooSung/ModernBERT-large-msmarco-bpr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use YeonwooSung/ModernBERT-large-msmarco-bpr with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("YeonwooSung/ModernBERT-large-msmarco-bpr") sentences = [ "when was the world trade organization created", "The Dark Side Of The WTO. The World Trade Organization (WTO) was created January 1, 1995, and it has been a source of controversy ever since. The birth of the WTO was more of a continuation than a truly new creation.", "Updated May 30, 2016. The Great Depression started in 1929. On March 25, the stock market had a correction. Many investors were wiped out, since they had borrowed money from their stockbrokers. When the market fell, the brokers called in their loans. That wiped out some businesses, including banks.", "A Preparatory Committee was established in February 1946, and met for the first time in London in October 1946 to work on the charter of an international organization for trade; the work was continued from April to November 1947.even rounds of negotiations occurred under GATT before the eighth roundâthe Uruguay Round âconcluded in 1994 with the establishment of the World Trade Organization (WTO) as the GATT's replacement." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K