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