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