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") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
45489cd | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:429eebb2a079efe88c7012effb42b1b7a9bca1774abb5ae1fa5d6a4b35122c98
size 90887590
|