How to use cahya/last-sts with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("cahya/last-sts") sentences = [ "A chef is preparing some food.", "Five birds stand on the snow.", "A chef prepared a meal.", "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!