Omartificial-Intelligence-Space / mmbert-base-arabic-nli

huggingface.co
Total runs: 156
24-hour runs: 0
7-day runs: 1
30-day runs: 143
Model's Last Updated: October 08 2025
sentence-similarity

Introduction of mmbert-base-arabic-nli

Model Details of mmbert-base-arabic-nli

mmbert-base-arabic-nli: Arabic Semantic Embedding Model Fine-Tuned with Triplet and GIST Distillation Loss!

poster

Guide Model (Teacher)

mmbert-base-arabic-nli is a high-quality Sentence Transformer model fine-tuned from jhu-clsp/mmBERT-base with GISTEmbedLoss guided by Arabic-Triplet-Matryoshka-V2 .

It maps Arabic sentences and paragraphs into a 768-dimensional semantic space , optimized for semantic textual similarity , semantic search , paraphrase mining , text classification , and clustering tasks.

The model achieves Spearman correlation of 0.8311 on STS benchmarks and supports sequences up to 8192 tokens , making it ideal for long-form Arabic understanding and retrieval-augmented generation (RAG) applications.

Model Details
Model Description
  • Model Type: Sentence Transformer
  • Base model: jhu-clsp/mmBERT-base
  • Maximum Sequence Length: 8192 tokens
  • Output Dimensionality: 768 dimensions
  • Similarity Function: Cosine Similarity
Full Model Architecture
SentenceTransformer(
  (0): Transformer({'max_seq_length': 8192, 'do_lower_case': False, 'architecture': 'ModernBertModel'})
  (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)
Evaluation
MTEB Benchmark Comparison

Performance comparison on Arabic Semantic Textual Similarity (STS17, STS22-v2) benchmarks from the Massive Text Embedding Benchmark (MTEB) .

MTEB STS17 vs STS22-v2 results

The fine-tuned mmbert-base-arabic-nli demonstrates a significant improvement in semantic understanding across both MTEB benchmarks, achieving up to +30 points over the base mmBERT in cross-domain Arabic sentence similarity.


Semantic Similarity
Metric Value
pearson_cosine 0.8259
spearman_cosine 0.8311

Usage
Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load this model and run inference.

from sentence_transformers import SentenceTransformer

# 🔹 Load the model from Hugging Face Hub
model = SentenceTransformer("Omartificial-Intelligence-Space/mmbert-base-arabic-nli")

# 🔹 Example Arabic sentences
sentences = [
    "متوسط درجة الحرارة في أورلاندو، فلوريدا.",
    "تقع أورلاندو في وسط فلوريدا، ويبلغ متوسط درجة الحرارة الإجمالية فيها 83 درجة فهرنهايت، ومتوسط منخفض يبلغ 62 درجة.",
    "تتمتع جنوب فلوريدا بمناخ دافئ ورطب على مدار العام، مما يجعلها وجهة مثالية للعطلات."
]

# 🔹 Generate embeddings
embeddings = model.encode(sentences)
print("Shape of embeddings:", embeddings.shape)
# Output: (3, 768)

# 🔹 Compute pairwise cosine similarities
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([
#   [1.0000, 0.8495, 0.7115],
#   [0.8495, 1.0000, 0.7436],
#   [0.7115, 0.7436, 1.0000]
# ])
Citation
BibTeX
Sentence Transformers
@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",
}
GISTEmbedLoss
@misc{solatorio2024gistembed,
    title={GISTEmbed: Guided In-sample Selection of Training Negatives for Text Embedding Fine-tuning},
    author={Aivin V. Solatorio},
    year={2024},
    eprint={2402.16829},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}

Runs of Omartificial-Intelligence-Space mmbert-base-arabic-nli on huggingface.co

156
Total runs
0
24-hour runs
1
3-day runs
1
7-day runs
143
30-day runs

More Information About mmbert-base-arabic-nli huggingface.co Model

More mmbert-base-arabic-nli license Visit here:

https://choosealicense.com/licenses/apache-2.0

mmbert-base-arabic-nli huggingface.co

mmbert-base-arabic-nli huggingface.co is an AI model on huggingface.co that provides mmbert-base-arabic-nli's model effect (), which can be used instantly with this Omartificial-Intelligence-Space mmbert-base-arabic-nli model. huggingface.co supports a free trial of the mmbert-base-arabic-nli model, and also provides paid use of the mmbert-base-arabic-nli. Support call mmbert-base-arabic-nli model through api, including Node.js, Python, http.

Omartificial-Intelligence-Space mmbert-base-arabic-nli online free

mmbert-base-arabic-nli huggingface.co is an online trial and call api platform, which integrates mmbert-base-arabic-nli's modeling effects, including api services, and provides a free online trial of mmbert-base-arabic-nli, you can try mmbert-base-arabic-nli online for free by clicking the link below.

Omartificial-Intelligence-Space mmbert-base-arabic-nli online free url in huggingface.co:

https://huggingface.co/Omartificial-Intelligence-Space/mmbert-base-arabic-nli

mmbert-base-arabic-nli install

mmbert-base-arabic-nli is an open source model from GitHub that offers a free installation service, and any user can find mmbert-base-arabic-nli on GitHub to install. At the same time, huggingface.co provides the effect of mmbert-base-arabic-nli install, users can directly use mmbert-base-arabic-nli installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mmbert-base-arabic-nli install url in huggingface.co:

https://huggingface.co/Omartificial-Intelligence-Space/mmbert-base-arabic-nli

Url of mmbert-base-arabic-nli

Provider of mmbert-base-arabic-nli huggingface.co

Omartificial-Intelligence-Space
ORGANIZATIONS

Other API from Omartificial-Intelligence-Space