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