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