Sentence Similarity
sentence-transformers
PyTorch
Transformers
mpnet
feature-extraction
text-embeddings-inference
Instructions to use nategro/nps-psb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use nategro/nps-psb with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nategro/nps-psb") 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 nategro/nps-psb with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("nategro/nps-psb") model = AutoModel.from_pretrained("nategro/nps-psb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from nategro/nps-psb: direct link, hf CLI and curl.
- Browser
- Download file 438 MB
-
https://huggingface.co/nategro/nps-psb/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://nategro/nps-psb/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/nategro/nps-psb/resolve/main/pytorch_model.bin
438 MB
- Xet hash:
- 4864319b652f32f2277ddaf041848739b32167163309e198b093433341ef6ce7
- Size of remote file:
- 438 MB
- SHA256:
- f2374d7f6c2c7af285ef58a852776c8bde1d1329794bef20f72a324692e8080e
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.