Text Classification
setfit
Safetensors
sentence-transformers
bert
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use bew/setfit-subject-model-basic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use bew/setfit-subject-model-basic with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("bew/setfit-subject-model-basic") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use bew/setfit-subject-model-basic with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("bew/setfit-subject-model-basic") 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] - Notebooks
- Google Colab
- Kaggle
Download model_head.pkl from bew/setfit-subject-model-basic: direct link, hf CLI and curl.
- Browser
- Download file 22.7 kB
-
https://huggingface.co/bew/setfit-subject-model-basic/resolve/main/model_head.pkl
- Command line
-
hf download hf://bew/setfit-subject-model-basic/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/bew/setfit-subject-model-basic/resolve/main/model_head.pkl
22.7 kB
- Xet hash:
- ed11ad03f05f5e1dbcbde9a8375af39ea188dbe77e5716f3f66fb46a9ecaf791
- Size of remote file:
- 22.7 kB
- SHA256:
- 4ff9815077abf2ee920e760c8937213cd59a4da709101c382761c7a20edcd95f
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.