/ Модель

Характеристики

Контекст
12 288 токенов
Параметры
2,7 млрд
Размер весов
5,2 ГБ
Лицензия
Gemma
Архитектура
gemma2 · dense
Библиотека
transformers
Опубликована
26 янв 2025

SILMA-Kashif-2B-Instruct-v1.0

Генерация текстаТекст → текст4 профессии

Специализированная модель SILMA AI на Gemma 2 для ответов на вопросы по контексту в арабских и английских RAG-системах.

1 270скачиваний за 30 дней24лайкавеса обновлены11 июн 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки6

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

  • BBH

    BBH Raw · выше — лучше

    Результат

    0,3793

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • GPQA

    GPQA Raw · выше — лучше

    Результат

    0,2701

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • IFEval

    IFEval Raw · выше — лучше

    Результат

    0,1181

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • MATH Lvl 5

    MATH Lvl 5 Raw · выше — лучше

    Результат

    0,0113

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • MMLU-PRO

    MMLU-PRO Raw · выше — лучше

    Результат

    0,2258

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • MUSR

    MUSR Raw · выше — лучше

    Результат

    0,4043

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

SILMA Kashif 2B Instruct v1.0 — специализированная языковая модель от SILMA AI на архитектуре Gemma 2. Она предназначена прежде всего для генерации ответов на вопросы по предоставленному контексту в RAG-системах; также умеет извлекать сущности из текста. Модель содержит 2,7 млрд параметров, принимает текст и поддерживает контекст до 12 288 токенов.

Модель рассчитана на арабский и английский языки. В заявленных сценариях она отвечает по коротким и длинным фрагментам, объединяет сведения из нескольких частей текста, работает с табличными данными и может сообщить, что ответа в контексте нет. По данным README, модель слабее справляется со сложными числовыми и финансовыми рассуждениями; обучение для вопросов и ответов ограничивает её пригодность для задач общего назначения. Для использования указана лицензия Gemma.

Сценарии применения

  • ответы на вопросы по арабским документам в RAG-системе
  • ответы на вопросы по английским документам в RAG-системе
  • объединение сведений из нескольких фрагментов для ответа
  • ответы на вопросы по таблицам и длинным текстам
  • извлечение сущностей из текста

Ограничения

Модель слабо справляется со сложными числовыми и финансовыми рассуждениями. Она специализирована на вопросах по текстовому контексту и не предназначена для широкого круга задач общего назначения.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

SILMA Kashif v1.0 (The Arabic RAG Model)

  • SILMA Kashif 2B Instruct v1.0 is the premier release within the SILMA Kashif Family of models, specifically designed for RAG (Retrieval-Augmented Generation) tasks
  • Kashif excels in a specific task, answering questions based on contextual pieces in both Arabic and English. In addition, the model is also capable of performing Entity Extraction tasks as a minor skill
  • SILMA Kashif 2B v1.0 stands out as the top-performing open model in RAG within the 3-9 billion parameter range based on our evaluations using SILMA RAGQA Benchmark
  • SILMA Kashif is built on the powerful foundational models of Google Gemma, merging their strengths to deliver unmatched performance for users
  • Kashif is an open-weight model, free to use in accordance with our open license
  • Finally, the model comes with a context length of 12k

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

Model Skills and Capabilities

The model underwent intensive training to master a wide range of tasks and excel in performance.

  • The ability to answer questions in Arabic and English
  • The ability to deal with short and long contexts
  • The ability to provide short and long answers effectively
  • The ability to answer complex numerical questions
  • The ability to answer questions based on tabular data
  • Answering multi-hop questions: The ability to answer a single question using pieces of data from multiple paragraphs
  • Negative rejection: The ability to identify and exclude inaccurate answers, and provide a more accurate statement such as "The answer cannot be found in the given context"
  • Multi-domains: The ability to answer questions based on texts from different fields such as finance, medical, legal, etc.
  • The ability to deal with ambiguous contexts
  • The ability to extract entities from text
  • Ability to deal with diverse and complex prompts

Model Evaluation

silma-ragqa-benchmark-colored-2.png

Datasetexact_matchrouge1bleubertscore
ragbench-finqa-en-test0.0000.5870.3210.760
ragbench-tatqa-ar-test0.0000.4840.1300.774
ragbench-tatqa-en-test0.0590.6460.4230.808
rag-instruct-benchmark-tester-en0.3700.6830.1960.791
ragbench-expertqa-en-test0.0000.4650.1510.677
ragbench-msmarco-ar-test0.0000.1440.0960.781
sciq-ar-test0.1700.0000.0000.753
ragbench-covidqa-en-test0.0200.5210.2420.734
ragbench-emanual-ar-test0.0000.2370.1590.806
ragbench-finqa-ar-test0.0000.3770.1090.780
xquad-r-validation-en0.1200.3260.0410.603
ragbench-emanual-en-test0.0000.5650.2880.722
xquad-r-ar-validation0.0700.1300.0420.698
boolq-ar-test0.4500.0000.0000.700
ragbench-hotpotqa-en-test0.0600.7320.5030.837
ragbench-covidqa-ar-test0.0000.1790.1040.783
ragbench-msmarco-en-test0.0200.4910.2070.729
### Benchmark Average Scores0.0790.3860.1770.749

SILMA RAG QA Benchmark Score: 0.3478

SILMA AI

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

Usage

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

Running with the pipeline API

import 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)
  • Response:
فيرجين ميديا

"وقد وافقت كل من بي سكاي بي و فيرجين ميديا على إنهاء الدعاوى القضائية بالمحكمة العليا ضد بعضهما بشأن معاليم الحمل التي تخص قنواتهما الأساسية."

Note: for advanced usage examples such as multi-gpu, quantization or chat templates, please refer to SILMA v1.0 examples

Runing with Ollama

ollama run hf.co/silma-ai/SILMA-Kashif-2B-Instruct-v1.0-GGUF

Prompt Format

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.

  • Arabic
أجب على السؤال بناءً على السياق أدناه

السياق:
.....
.....

السؤال: ...
الإجابة: ...
  • English
Answer the following question using the provided context below

Context: 
.....
.....

Question: ...
Answer: ...

GPU Requirements

The following are the minimum/recommended GPU requirements for running inference:

  • Recommended

    • At least one GPU with a minimum of 24 GB of GPU memory
    • Examples: Nvidia RTX 4090
  • Minimum

    • At least one GPU with 8 GB of GPU memory
    • Examples: Nvidia RTX 3070, RTX 3080 or T4

Effect of Quantization

We have seen 2.6% drop in score (to 0.338) for the same model quantized 4bit

Citation

@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}}
}

Intended Usage

  • The model should only be used in question answering use-cases such as RAG
  • The model can also be used to extract entities from text

Limitations

  • Because it has few parameters, we've noticed that the model isn't very effective for handling complex numerical and financial reasoning, such as solving tricky calculations
  • The model has been trained specifically for text-based question answering, which may limit its ability to perform tasks beyond this scope, including simple tasks

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Gemma2ForCausalLM
Ревизия весов
0947ffb

0 моделей