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