sentence-transformers How to use bobox/DeBERTaV3-small-GeneralSentenceTransformer-v2-AllSoft with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("bobox/DeBERTaV3-small-GeneralSentenceTransformer-v2-AllSoft")
sentences = [
"The X and Y chromosomes in human beings that determine the sex of an individual.",
"A glacier leaves behind bare rock when it retreats.",
"Prokaryotes are unicellular organisms that lack organelles surrounded by membranes.",
"Mammalian sex determination is determined genetically by the presence of chromosomes identified by the letters x and y."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]