Instructions to use SetFit/test-setfit-sst2-diff-head with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use SetFit/test-setfit-sst2-diff-head with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("SetFit/test-setfit-sst2-diff-head") 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 SetFit/test-setfit-sst2-diff-head with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("SetFit/test-setfit-sst2-diff-head") - Notebooks
- Google Colab
- Kaggle
Add SetFit model
Browse files- model_head.pkl +1 -1
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4425
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b746e2e0d36d7455ced3e4daf4bf9fe8caac147553b5b7ceb05ea7a65ec082b
|
| 3 |
size 4425
|