Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
Generated from Trainer
dataset_size:557850
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use estrogen/ModernBERT-base-nli-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use estrogen/ModernBERT-base-nli-v3 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("estrogen/ModernBERT-base-nli-v3") sentences = [ "A construction worker is standing on a crane placing a large arm on top of a stature in progress.", "A man is playing with his camera.", "A person standing", "Nobody is standing" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K