This is a
sentence-transformers
model finetuned from
aubmindlab/bert-base-arabertv02
.
It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining,
text classification, clustering, and more.
This model is trained on 100K samples filtered from the
akhooli/arabic-triplets-1m-curated-sims-len
dataset with 75K training and 25K validation.
Trained for 5 epochs, with final training loss of 0.133 (using MatryoshkaLoss).
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'ما هو نوع الدهون الموجودة في الأفوكادو',
'حوالي 15 في المائة من الدهون في الأفوكادو مشبعة ، مع كل كوب واحد من الأفوكادو المفروم يحتوي على 3.2 جرام من الدهون المشبعة ، وهو ما يمثل 16 في المائة من DV البالغ 20 جرامًا. تحتوي الأفوكادو في الغالب على دهون أحادية غير مشبعة ، مع 67 في المائة من إجمالي الدهون ، أو 14.7 جرامًا لكل كوب مفروم ، ويتكون من هذا النوع من الدهون.',
'يمكن أن يؤدي ارتفاع مستوى الدهون الثلاثية ، وهي نوع من الدهون (الدهون) في الدم ، إلى زيادة خطر الإصابة بأمراض القلب ، ويمكن أن يؤدي توفير مستوى مرتفع من الدهون الثلاثية ، وهي نوع من الدهون (الدهون) في الدم ، إلى زيادة خطر الإصابة بأمراض القلب. مرض.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
Training Details
Training Dataset
Unnamed Dataset
Size: 75,000 training samples
Columns:
anchor
,
positive
, and
negative
Approximate statistics based on the first 1000 samples:
anchor
positive
negative
type
string
string
string
details
min: 4 tokens
mean: 12.88 tokens
max: 58 tokens
min: 4 tokens
mean: 13.74 tokens
max: 126 tokens
min: 4 tokens
mean: 13.38 tokens
max: 146 tokens
Samples:
anchor
positive
negative
هل تشاجر (سي إس لويس) و (جي آر آر تولكين) ؟ إن كان الأمر كذلك، فما هو السبب؟
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
MatryoshkaLoss
@misc{kusupati2024matryoshka,
title={Matryoshka Representation Learning},
author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
year={2024},
eprint={2205.13147},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
MultipleNegativesRankingLoss
@misc{henderson2017efficient,
title={Efficient Natural Language Response Suggestion for Smart Reply},
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
year={2017},
eprint={1705.00652},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Runs of akhooli Arabic-SBERT-100K on huggingface.co
21.6K
Total runs
0
24-hour runs
330
3-day runs
1.1K
7-day runs
5.8K
30-day runs
More Information About Arabic-SBERT-100K huggingface.co Model
Arabic-SBERT-100K huggingface.co
Arabic-SBERT-100K huggingface.co is an AI model on huggingface.co that provides Arabic-SBERT-100K's model effect (), which can be used instantly with this akhooli Arabic-SBERT-100K model. huggingface.co supports a free trial of the Arabic-SBERT-100K model, and also provides paid use of the Arabic-SBERT-100K. Support call Arabic-SBERT-100K model through api, including Node.js, Python, http.
Arabic-SBERT-100K huggingface.co is an online trial and call api platform, which integrates Arabic-SBERT-100K's modeling effects, including api services, and provides a free online trial of Arabic-SBERT-100K, you can try Arabic-SBERT-100K online for free by clicking the link below.
akhooli Arabic-SBERT-100K online free url in huggingface.co:
Arabic-SBERT-100K is an open source model from GitHub that offers a free installation service, and any user can find Arabic-SBERT-100K on GitHub to install. At the same time, huggingface.co provides the effect of Arabic-SBERT-100K install, users can directly use Arabic-SBERT-100K installed effect in huggingface.co for debugging and trial. It also supports api for free installation.