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 model_head.pkl from fadhilarkn/setfit-model: direct link, hf CLI and curl.
- Browser
- Download file 7.12 kB
-
https://huggingface.co/fadhilarkn/setfit-model/resolve/main/model_head.pkl
- Command line
-
hf download hf://fadhilarkn/setfit-model/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/fadhilarkn/setfit-model/resolve/main/model_head.pkl
7.12 kB
- Xet hash:
- 22a211b6aac6e43c0454b74cfb0da5bc9cf0319402fa552ec5fad95bdf9b4daf
- Size of remote file:
- 7.12 kB
- SHA256:
- d8bde3f813bd38bcde3dced761a01e28965e3280108f1faa8da612855077ba96
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.