Instructions to use moshew/gte-tiny_SetFit_sst2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use moshew/gte-tiny_SetFit_sst2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("moshew/gte-tiny_SetFit_sst2") 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 moshew/gte-tiny_SetFit_sst2 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("moshew/gte-tiny_SetFit_sst2") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download config_sentence_transformers.json from moshew/gte-tiny_SetFit_sst2: direct link, hf CLI and curl.
- Browser
- Download file 123 Bytes
-
https://huggingface.co/moshew/gte-tiny_SetFit_sst2/resolve/main/config_sentence_transformers.json
- Command line
-
hf download hf://moshew/gte-tiny_SetFit_sst2/config_sentence_transformers.json
-
curl -L -o config_sentence_transformers.json https://huggingface.co/moshew/gte-tiny_SetFit_sst2/resolve/main/config_sentence_transformers.json
123 Bytes
| { | |
| "__version__": { | |
| "sentence_transformers": "2.2.2", | |
| "transformers": "4.34.0", | |
| "pytorch": "2.0.1+cu118" | |
| } | |
| } |