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