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