Feature Extraction
sentence-transformers
Safetensors
English
mpnet
sentence-similarity
dataset_size:100K<n<1M
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use ayoubkirouane/Mpnet-base-ALL-NLI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ayoubkirouane/Mpnet-base-ALL-NLI with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ayoubkirouane/Mpnet-base-ALL-NLI") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
base_model:
- microsoft/mpnet-base
Dataset :
- sentence-transformers/all-nli
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]
- Downloads last month
- 1