SILMA Kashif v1.0 (The Arabic RAG Model)
24
28 commits
1 linked in READMEs
updated Jun 11, 2025
Important note: Kashif is a specialized model which should ONLY be used in RAG setups. If you are looking for a general purpose model, please refer to SILMA 9B Instruct v1.0
The model underwent intensive training to master a wide range of tasks and excel in performance.

| Dataset | exact_match | rouge1 | bleu | bertscore |
|---|---|---|---|---|
| ragbench-finqa-en-test | 0.000 | 0.587 | 0.321 | 0.760 |
| ragbench-tatqa-ar-test | 0.000 | 0.484 | 0.130 | 0.774 |
| ragbench-tatqa-en-test | 0.059 | 0.646 | 0.423 | 0.808 |
| rag-instruct-benchmark-tester-en | 0.370 | 0.683 | 0.196 | 0.791 |
| ragbench-expertqa-en-test | 0.000 | 0.465 | 0.151 | 0.677 |
| ragbench-msmarco-ar-test | 0.000 | 0.144 | 0.096 | 0.781 |
| sciq-ar-test | 0.170 | 0.000 | 0.000 | 0.753 |
| ragbench-covidqa-en-test | 0.020 | 0.521 | 0.242 | 0.734 |
| ragbench-emanual-ar-test | 0.000 | 0.237 | 0.159 | 0.806 |
| ragbench-finqa-ar-test | 0.000 | 0.377 | 0.109 | 0.780 |
| xquad-r-validation-en | 0.120 | 0.326 | 0.041 | 0.603 |
| ragbench-emanual-en-test | 0.000 | 0.565 | 0.288 | 0.722 |
| xquad-r-ar-validation | 0.070 | 0.130 | 0.042 | 0.698 |
| boolq-ar-test | 0.450 | 0.000 | 0.000 | 0.700 |
| ragbench-hotpotqa-en-test | 0.060 | 0.732 | 0.503 | 0.837 |
| ragbench-covidqa-ar-test | 0.000 | 0.179 | 0.104 | 0.783 |
| ragbench-msmarco-en-test | 0.020 | 0.491 | 0.207 | 0.729 |
| ### Benchmark Average Scores | 0.079 | 0.386 | 0.177 | 0.749 |
SILMA RAG QA Benchmark Score: 0.3478
silma.ai is a leading GenAI startup that excels in building and tailoring cutting-edge Large Language Models (LLMs) and AI technologies for the Arabic language
Below we share some code snippets on how to get quickly started with running the model. First, install the Transformers library with:
pip install -U transformers
Then, copy the snippet from the section below
pipeline APIimport torch
from transformers import pipeline
pipe = pipeline(
"text-generation",
model="silma-ai/SILMA-Kashif-2B-Instruct-v1.0",
model_kwargs={"torch_dtype": torch.bfloat16},
device="cuda", # replace with "mps" to run on a Mac device
)
messages = [
{"role": "user", "content":
"""
أجب على السؤال بناءً على السياق أدناه
السياق:
تشمل الاتفاقيات رسوم حمل سنوية ثابت قدها 30 مليون جنيه إسترليني للقنوات نظراً لأن كلاً من مزوديها قادرين على تأمين دفعات إضافية إذا ما حققت هذه القنوات أهدافاً متعلقةً بالأداء.
لا يوجد حالياً ما يشير إلى ما إذا كان الاتفاق الجديد يشمل محتوىً إضافياً كالفيديو عند الطلب والدقة العالية ، كذلك الذي سبق أن قدمته بي سكاي بي.
وقد وافقت كل من بي سكاي بي و فيرجين ميديا على إنهاء الدعاوى القضائية بالمحكمة العليا ضد بعضهما بشأن معاليم الحمل التي تخص قنواتهما الأساسية.
السؤال: ماسم الشركة التي وافقت على إنهاء دعواها القضائية ضد بي سكاي بي بالمحكمة العليا؟
الإجابة:
"""},
]
outputs = pipe(messages, max_new_tokens=600)
assistant_response = outputs[0]["generated_text"][-1]["content"].strip()
print(assistant_response)
فيرجين ميديا
"وقد وافقت كل من بي سكاي بي و فيرجين ميديا على إنهاء الدعاوى القضائية بالمحكمة العليا ضد بعضهما بشأن معاليم الحمل التي تخص قنواتهما الأساسية."
Note: for advanced usage examples such as multi-gpu, quantization or chat templates, please refer to SILMA v1.0 examples
ollama run hf.co/silma-ai/SILMA-Kashif-2B-Instruct-v1.0-GGUF
Here is a recommended way to prompt the model. You can modify the prompt based on your specific requirements, but if you encounter any challenges, following the format below in which we used to train the model may be helpful.
أجب على السؤال بناءً على السياق أدناه
السياق:
.....
.....
السؤال: ...
الإجابة: ...
Answer the following question using the provided context below
Context:
.....
.....
Question: ...
Answer: ...
The following are the minimum/recommended GPU requirements for running inference:
Recommended
Minimum
We have seen 2.6% drop in score (to 0.338) for the same model quantized 4bit
@misc{silma-kashif-2b-2024,
author = {{SILMA-AI}},
title = {SILMA Kashif 2B Instruct v1.0},
year = {2025},
howpublished = {\url{https://huggingface.co/silma-ai/SILMA-Kashif-2B-Instruct-v1.0}}
}
SILMA Kashif v1.0 (The Arabic RAG Model)
24
28 commits
1 linked in READMEs
updated Jun 11, 2025
Important note: Kashif is a specialized model which should ONLY be used in RAG setups. If you are looking for a general purpose model, please refer to SILMA 9B Instruct v1.0
The model underwent intensive training to master a wide range of tasks and excel in performance.

| Dataset | exact_match | rouge1 | bleu | bertscore |
|---|---|---|---|---|
| ragbench-finqa-en-test | 0.000 | 0.587 | 0.321 | 0.760 |
| ragbench-tatqa-ar-test | 0.000 | 0.484 | 0.130 | 0.774 |
| ragbench-tatqa-en-test | 0.059 | 0.646 | 0.423 | 0.808 |
| rag-instruct-benchmark-tester-en | 0.370 | 0.683 | 0.196 | 0.791 |
| ragbench-expertqa-en-test | 0.000 | 0.465 | 0.151 | 0.677 |
| ragbench-msmarco-ar-test | 0.000 | 0.144 | 0.096 | 0.781 |
| sciq-ar-test | 0.170 | 0.000 | 0.000 | 0.753 |
| ragbench-covidqa-en-test | 0.020 | 0.521 | 0.242 | 0.734 |
| ragbench-emanual-ar-test | 0.000 | 0.237 | 0.159 | 0.806 |
| ragbench-finqa-ar-test | 0.000 | 0.377 | 0.109 | 0.780 |
| xquad-r-validation-en | 0.120 | 0.326 | 0.041 | 0.603 |
| ragbench-emanual-en-test | 0.000 | 0.565 | 0.288 | 0.722 |
| xquad-r-ar-validation | 0.070 | 0.130 | 0.042 | 0.698 |
| boolq-ar-test | 0.450 | 0.000 | 0.000 | 0.700 |
| ragbench-hotpotqa-en-test | 0.060 | 0.732 | 0.503 | 0.837 |
| ragbench-covidqa-ar-test | 0.000 | 0.179 | 0.104 | 0.783 |
| ragbench-msmarco-en-test | 0.020 | 0.491 | 0.207 | 0.729 |
| ### Benchmark Average Scores | 0.079 | 0.386 | 0.177 | 0.749 |
SILMA RAG QA Benchmark Score: 0.3478
silma.ai is a leading GenAI startup that excels in building and tailoring cutting-edge Large Language Models (LLMs) and AI technologies for the Arabic language
Below we share some code snippets on how to get quickly started with running the model. First, install the Transformers library with:
pip install -U transformers
Then, copy the snippet from the section below
pipeline APIimport torch
from transformers import pipeline
pipe = pipeline(
"text-generation",
model="silma-ai/SILMA-Kashif-2B-Instruct-v1.0",
model_kwargs={"torch_dtype": torch.bfloat16},
device="cuda", # replace with "mps" to run on a Mac device
)
messages = [
{"role": "user", "content":
"""
أجب على السؤال بناءً على السياق أدناه
السياق:
تشمل الاتفاقيات رسوم حمل سنوية ثابت قدها 30 مليون جنيه إسترليني للقنوات نظراً لأن كلاً من مزوديها قادرين على تأمين دفعات إضافية إذا ما حققت هذه القنوات أهدافاً متعلقةً بالأداء.
لا يوجد حالياً ما يشير إلى ما إذا كان الاتفاق الجديد يشمل محتوىً إضافياً كالفيديو عند الطلب والدقة العالية ، كذلك الذي سبق أن قدمته بي سكاي بي.
وقد وافقت كل من بي سكاي بي و فيرجين ميديا على إنهاء الدعاوى القضائية بالمحكمة العليا ضد بعضهما بشأن معاليم الحمل التي تخص قنواتهما الأساسية.
السؤال: ماسم الشركة التي وافقت على إنهاء دعواها القضائية ضد بي سكاي بي بالمحكمة العليا؟
الإجابة:
"""},
]
outputs = pipe(messages, max_new_tokens=600)
assistant_response = outputs[0]["generated_text"][-1]["content"].strip()
print(assistant_response)
فيرجين ميديا
"وقد وافقت كل من بي سكاي بي و فيرجين ميديا على إنهاء الدعاوى القضائية بالمحكمة العليا ضد بعضهما بشأن معاليم الحمل التي تخص قنواتهما الأساسية."
Note: for advanced usage examples such as multi-gpu, quantization or chat templates, please refer to SILMA v1.0 examples
ollama run hf.co/silma-ai/SILMA-Kashif-2B-Instruct-v1.0-GGUF
Here is a recommended way to prompt the model. You can modify the prompt based on your specific requirements, but if you encounter any challenges, following the format below in which we used to train the model may be helpful.
أجب على السؤال بناءً على السياق أدناه
السياق:
.....
.....
السؤال: ...
الإجابة: ...
Answer the following question using the provided context below
Context:
.....
.....
Question: ...
Answer: ...
The following are the minimum/recommended GPU requirements for running inference:
Recommended
Minimum
We have seen 2.6% drop in score (to 0.338) for the same model quantized 4bit
@misc{silma-kashif-2b-2024,
author = {{SILMA-AI}},
title = {SILMA Kashif 2B Instruct v1.0},
year = {2025},
howpublished = {\url{https://huggingface.co/silma-ai/SILMA-Kashif-2B-Instruct-v1.0}}
}