Instructions to use amazon/sm-hackathon-setfit-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use amazon/sm-hackathon-setfit-model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("amazon/sm-hackathon-setfit-model") 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 amazon/sm-hackathon-setfit-model with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("amazon/sm-hackathon-setfit-model") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
f8e415d | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:a2ef042db9473c8fccd3106f38692e347345e4d2175bf913a54d0f87bb227742
size 438009257
|