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