Instructions to use UWECProgrammer/setfit-model-2.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use UWECProgrammer/setfit-model-2.4 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("UWECProgrammer/setfit-model-2.4") 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-2.4 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("UWECProgrammer/setfit-model-2.4") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download sentence_bert_config.json from UWECProgrammer/setfit-model-2.4: direct link, hf CLI and curl.
- Browser
- Download file 53 Bytes
-
https://huggingface.co/UWECProgrammer/setfit-model-2.4/resolve/refs%2Fpr%2F1/sentence_bert_config.json
- Command line
-
hf download hf://UWECProgrammer/setfit-model-2.4@refs/pr/1/sentence_bert_config.json
-
curl -L -o sentence_bert_config.json https://huggingface.co/UWECProgrammer/setfit-model-2.4/resolve/refs%2Fpr%2F1/sentence_bert_config.json
53 Bytes
| { | |
| "max_seq_length": 514, | |
| "do_lower_case": false | |
| } |