Instructions to use taldarim/setfit-diffable-head with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use taldarim/setfit-diffable-head with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("taldarim/setfit-diffable-head") 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] - setfit
How to use taldarim/setfit-diffable-head with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("taldarim/setfit-diffable-head") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from taldarim/setfit-diffable-head: direct link, hf CLI and curl.
- Browser
- Download file 438 MB
-
https://huggingface.co/taldarim/setfit-diffable-head/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://taldarim/setfit-diffable-head/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/taldarim/setfit-diffable-head/resolve/main/pytorch_model.bin
438 MB
- Xet hash:
- 69f78adab1b80d4306dd759f95372ac0c7f8b7e80a50cf1929c73a71301b4352
- Size of remote file:
- 438 MB
- SHA256:
- fafc07b16f952c862e36c515dd529a0e54698410d4ba1b0e130658ddcf2ca735
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.