Sentence Similarity
sentence-transformers
Safetensors
Arabic
bert
mteb
feature-extraction
Generated from Trainer
dataset_size:557850
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use Omartificial-Intelligence-Space/Arabic-labse-Matryoshka with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Omartificial-Intelligence-Space/Arabic-labse-Matryoshka with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Omartificial-Intelligence-Space/Arabic-labse-Matryoshka") sentences = [ "ذكر متوازن بعناية يقف على قدم واحدة بالقرب من منطقة شاطئ المحيط النظيفة", "رجل يقدم عرضاً", "هناك رجل بالخارج قرب الشاطئ", "رجل يجلس على أريكه" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download modules.json from Omartificial-Intelligence-Space/Arabic-labse-Matryoshka: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/Omartificial-Intelligence-Space/Arabic-labse-Matryoshka/resolve/main/modules.json
- Command line
-
hf download hf://Omartificial-Intelligence-Space/Arabic-labse-Matryoshka/modules.json
-
curl -L -o modules.json https://huggingface.co/Omartificial-Intelligence-Space/Arabic-labse-Matryoshka/resolve/main/modules.json
461 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| }, | |
| { | |
| "idx": 2, | |
| "name": "2", | |
| "path": "2_Dense", | |
| "type": "sentence_transformers.models.Dense" | |
| }, | |
| { | |
| "idx": 3, | |
| "name": "3", | |
| "path": "3_Normalize", | |
| "type": "sentence_transformers.models.Normalize" | |
| } | |
| ] |