How to use nickprock/ModernBERT-base-sts with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nickprock/ModernBERT-base-sts") sentences = [ "The man talked to a girl over the internet camera.", "A group of elderly people pose around a dining table.", "A teenager talks to a girl over a webcam.", "There is no 'still' that is not relative to some other object." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
The community tab is the place to discuss and collaborate with the HF community!