How to use from the
Use from the
sentence-transformers library
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("zacbrld/MNLP_M3_document_encoder_300tok")

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]

MNLP Document Encoder

Fine-tuned SentenceTransformer model for retrieving high-quality scientific chunks in STEM disciplines.

Base model: sentence-transformers/all-MiniLM-L6-v2

Downloads last month
4
Safetensors
Model size
22.7M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support