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 pytorch_model.bin from nbroad/setfit-sci-wiki: direct link, hf CLI and curl.
- Browser
- Download file 438 MB
-
https://huggingface.co/nbroad/setfit-sci-wiki/resolve/refs%2Fpr%2F1/pytorch_model.bin
- Command line
-
hf download hf://nbroad/setfit-sci-wiki@refs/pr/1/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/nbroad/setfit-sci-wiki/resolve/refs%2Fpr%2F1/pytorch_model.bin
438 MB
- Xet hash:
- c267c52ee8f9a8e59ef72cbebb84fe2607aaef53da8230caafa8b084592b8c7d
- Size of remote file:
- 438 MB
- SHA256:
- bd3085805605de838e6b7f043e8aaf6406cd0c192a23c555d1e911daf91ec6df
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.