Sentence Similarity
sentence-transformers
Safetensors
Arabic
modernbert
feature-extraction
Generated from Trainer
loss:MultipleNegativesRankingLoss
mteb
Eval Results (legacy)
text-embeddings-inference
Instructions to use NAMAA-Space/AraModernBert-Base-STS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use NAMAA-Space/AraModernBert-Base-STS with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("NAMAA-Space/AraModernBert-Base-STS") sentences = [ "الذكاء الاصطناعي يغير طريقة تفاعلنا مع التكنولوجيا.", "التكنولوجيا تتطور بسرعة بفضل الذكاء الاصطناعي.", "الذكاء الاصطناعي يسهم في تطوير التطبيقات الذكية.", "تحديات الذكاء الاصطناعي تشمل الحفاظ على الأمان والأخلاقيات." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from NAMAA-Space/AraModernBert-Base-STS: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/NAMAA-Space/AraModernBert-Base-STS/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://NAMAA-Space/AraModernBert-Base-STS/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/NAMAA-Space/AraModernBert-Base-STS/resolve/main/tokenizer_config.json
1.55 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<|padding|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "[UNK]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "[CLS]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "4": { | |
| "content": "[SEP]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "5": { | |
| "content": "[PAD]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "6": { | |
| "content": "[MASK]", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "[CLS]", | |
| "extra_special_tokens": {}, | |
| "mask_token": "[MASK]", | |
| "model_input_names": [ | |
| "input_ids", | |
| "attention_mask" | |
| ], | |
| "model_max_length": 8192, | |
| "pad_token": "[PAD]", | |
| "sep_token": "[SEP]", | |
| "tokenizer_class": "PreTrainedTokenizer", | |
| "unk_token": "[UNK]" | |
| } | |