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 model_head.pkl from dlhw/setFit-customised: direct link, hf CLI and curl.
- Browser
- Download file 39.9 kB
-
https://huggingface.co/dlhw/setFit-customised/resolve/main/model_head.pkl
- Command line
-
hf download hf://dlhw/setFit-customised/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/dlhw/setFit-customised/resolve/main/model_head.pkl
39.9 kB
- Xet hash:
- 1d0e5918efdd8598e91c8da49bd4720d3f5e58b4c24dd3d2b8d89bf205f58788
- Size of remote file:
- 39.9 kB
- SHA256:
- 69ce015c514eeadfe054ee4cfdfced3d89a72343979fa7a76b09c88661b62acf
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.