Instructions to use SouhilOuchene/AC_Part2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use SouhilOuchene/AC_Part2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("SouhilOuchene/AC_Part2") 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 SouhilOuchene/AC_Part2 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("SouhilOuchene/AC_Part2") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Commit ·
b87b2d9
1
Parent(s): 34eab8f
Add SetFit model
Browse files- config.json +1 -1
- model_head.pkl +1 -1
- pytorch_model.bin +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "/root/.cache/torch/sentence_transformers/
|
| 3 |
"architectures": [
|
| 4 |
"BertModel"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "/root/.cache/torch/sentence_transformers/SouhilOuchene_AC_Part2/",
|
| 3 |
"architectures": [
|
| 4 |
"BertModel"
|
| 5 |
],
|
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 13175
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8a093409163b745444a218bd8340755cffc11ad3a35abbe69c82350357dcd99
|
| 3 |
size 13175
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 470686253
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8122d85388744373cb8da00f6af51f47ae38610b421c2f864fd0c20cddeae4c3
|
| 3 |
size 470686253
|