Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
bert
feature-extraction
text-embeddings-inference
Instructions to use Volowan/MNLP_M3_document_encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Volowan/MNLP_M3_document_encoder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Volowan/MNLP_M3_document_encoder") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use Volowan/MNLP_M3_document_encoder with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Volowan/MNLP_M3_document_encoder") model = AutoModel.from_pretrained("Volowan/MNLP_M3_document_encoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from Volowan/MNLP_M3_document_encoder: direct link, hf CLI and curl.
- Browser
- Download file 90.9 MB
-
https://huggingface.co/Volowan/MNLP_M3_document_encoder/resolve/main/model.safetensors
- Command line
-
hf download hf://Volowan/MNLP_M3_document_encoder/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/Volowan/MNLP_M3_document_encoder/resolve/main/model.safetensors
90.9 MB
- Xet hash:
- c9248be8fc7be96f47ea0c32d1d555eed1d7f749d482b09a6cc63f76fe45daa6
- Size of remote file:
- 90.9 MB
- SHA256:
- 1377e9af0ca0b016a9f2aa584d6fc71ab3ea6804fae21ef9fb1416e2944057ac
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.