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