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