Instructions to use IslemTouati/french_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use IslemTouati/french_model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("IslemTouati/french_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 IslemTouati/french_model with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("IslemTouati/french_model") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Commit ·
3246646
1
Parent(s): 7e886a8
Add SetFit model
Browse files- model_head.pkl +1 -1
- pytorch_model.bin +1 -1
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 33655
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:376ba16b007bc6351be231b47910a22c53cc18ec80455a56b0658d03a2607e45
|
| 3 |
size 33655
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1346782317
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de9abdc1c6a7b4c9b0d938557abfdd52bebd4e5b49d660ea41b6c120c71846ec
|
| 3 |
size 1346782317
|