Instructions to use dlhw/setFit-customised with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use dlhw/setFit-customised with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("dlhw/setFit-customised") 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 dlhw/setFit-customised with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("dlhw/setFit-customised") 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 dlhw/setFit-customised: direct link, hf CLI and curl.
- Browser
- Download file 438 MB
-
https://huggingface.co/dlhw/setFit-customised/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://dlhw/setFit-customised/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/dlhw/setFit-customised/resolve/main/pytorch_model.bin
438 MB
- Xet hash:
- 58bae0992225b628d848c693d32b6295eeefb47da63321c7dd2a23ba9f192757
- Size of remote file:
- 438 MB
- SHA256:
- e5d9d56fe514f2c5a7cfbb018ff326edfb68321c56ed5813e6cf020aba4434e1
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.