Downloads · 30 days
99
19% of all-time downloads
ayoubkirouane/Mpnet-base-ALL-NLI
Mpnet-base-ALL-NLI is a feature extraction model from ayoubkirouane. Use it when you need embeddings to search or compare text. It is set up for sentence-transformers. The card lists the license as apache-2.0.
- microsoft/mpnet-base - sentence-transformers/all-nli
Downloads · 30 days
99
19% of all-time downloads
All-time downloads
528
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("ayoubkirouane/Mpnet-base-ALL-NLI")
# Run inference
sentences = [
'a baby smiling',
'The boy is smiling',
'The girl is standing.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]