/ Модель

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

Контекст
131 072 токена
Параметры
2,6 млрд
Размер весов
6,8 ГБ
Лицензия
Apache 2.0
Архитектура
granitemoehybrid · dense
Опубликована
16 июн 2026

granite-4.0-h-3b-ar

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

Компактная инструктивная языковая модель IBM Research и MBZUAI для диалогов и генерации текста на арабском языке, его диалектах и английском.

529скачиваний за 30 дней7лайковвеса обновлены30 июн 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

В подключённых источниках результатов для этой модели пока нет.

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

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

granite-4.0-h-3b-ar — компактная инструктивная языковая модель, разработанная IBM Research и Mohamed bin Zayed University of Artificial Intelligence (MBZUAI) в рамках IBM–MBZUAI AI Center of Excellence. Она предназначена для диалогов и генерации текста на современном стандартном арабском, нескольких региональных арабских диалектах и английском языке, в том числе для разнородных и межъязыковых сценариев.

Модель содержит 2,6 млрд параметров и использует плотную decoder-only архитектуру GraniteMoeHybrid с GQA, Mamba2, SwiGLU, RMSNorm и общими входными и выходными эмбеддингами. Контекстное окно по метаданным составляет 131 072 токена. Компактный размер позволяет рассматривать её для эффективного развёртывания при ограниченных ресурсах; обучение охватывало общие задачи, а также примеры по математике, программированию и рассуждениям.

Качество может зависеть от диалекта, предметной области, формулировки запроса и сложности задачи; результаты на арабских диалектах могут уступать английским. Модель способна выдавать неточные, предвзятые, неподходящие или небезопасные ответы, поэтому перед использованием в конкретной задаче рекомендуется оценка и настройка, а для рискованных сценариев — модерация входов и выходов. Лицензия — Apache-2.0.

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

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

Ограничения

Качество зависит от диалекта, области, формулировки запроса и сложности задачи; для арабских диалектов оно может быть ниже, чем для английского. Возможны неточные, предвзятые или небезопасные ответы, поэтому перед применением нужны оценка и, для рискованных сценариев, модерация.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

ibm-research/granite-4.0-h-3b-ar

granite-4.0-h-3b-ar: A multilingual LLM for English and Arabic, including MSA and its regional dialects.

Model Summary

granite-4.0-h-3b-ar is a lightweight 3-billion-parameter instruct model developed through a collaboration between IBM Research and the Mohamed bin Zayed University of Artificial Intelligence (MBZUAI) as part of the IBM–MBZUAI AI Center of Excellence. Despite its compact size, the model delivers strong performance, making it well-suited for efficient deployment in resource-constrained environments.

The model builds upon the capabilities of granite-4.0-h-micro-base and uses the exact architecture (GQA, Mamba2, MLP with SwiGLU, RMSNorm, and shared input/output embeddings), delivering enhanced performance across Modern Standard Arabic (MSA, ar) and multiple Arabic dialects, including Egyptian (arz), Moroccan (ary), Syrian/Levantine (apc), Saudi/Najdi (ars), and Emirati/Gulf (afb). At the same time, it retains strong proficiency in English (en), making it a robust and efficient multilingual model suitable for a wide range of cross-lingual and dialectal applications.

Key Technical Specifications

  • Model Developers: IBM Research and MBZUAI (IBM–MBZUAI AI Center of Excellence)
  • Languages: Arabic (MSA & dialects) and English
  • Architecture: Decoder-only dense transformer architecture
  • Parameters: 3 Billion
  • Context Length: 8,192
  • Vocabulary Size: 100,352
  • Core architecture components: GQA, Mamba2, MLP with SwiGLU, RMSNorm, and shared input/output embeddings

Training Procedure

The enhanced Arabic and dialect-capable model is built starting from the granite-4.0-h-micro-base, following a carefully designed multi-stage pipeline. First, continued pretraining (CPT) adapts the base model to Arabic and its dialects by exposing it to large-scale bilingual data. This stage enables the model to acquire language-specific features and broaden its knowledge across multiple aspects of Arabic contexts, including culture, religion, and regional variations. Next, instruction fine-tuning (IFT) is applied to improve the model’s ability to follow Arabic and dialectal instructions precisely and consistently. Afterward, a layer-wise model merging strategy combines the fine-tuned model with the granite-4.0-h-micro model. This step is critical to ensure that the model retains its strong English capabilities while gaining enhanced Arabic performance. Finally, a second round of instruction fine-tuning is conducted on the merged model. This stage stabilizes the merged weights and further refines overall performance, resulting in a balanced, high-quality bilingual model that performs well across English, standard Arabic, and dialectal Arabic settings.

Training Data

The training data consists of a mixture of public English and Arabic datasets with permissive licenses, crawled MSA and dialectal data collected in accordance with IBM Data Acquisition guidelines, and synthetic data generated using open-weight large language models.

Rigorous data filtering and quality control procedures were applied to the crawled data. This included removing non-Arabic content using language identification, followed by both exact and fuzzy deduplication. Finally, additional filtering was performed using IBM’s Data Prep Kit to eliminate low-quality samples.

Given the scarcity of high-quality regional dialectal data, a large portion of FineWeb-Edu English educational content was translated into five Arabic dialects using GPT-OSS-120B as the teacher model. The generated translations were further filtered using a LLM-as-a-judge framework with multiple models, in order to ensure both knowledge accuracy and fluency.

Continued Pre-Training Data

In the Continued Pre-Training (CPT) stage, approximately 100B tokens of English and standard/dialectal Arabic data were used, with a roughly balanced distribution between the two languages. The training data spans diverse domains and is sourced from public datasets such as FineWeb, DCLM, HPLT, Webhose, and Wikipedia, as well as crawled and translated data. Extensive experiments were conducted to optimize the data mixture across these sources, with weights tuned on a heldout development set.

Instruction Fine-Tuning Data

Due to the limited availability of Arabic and dialectal datasets with permissive licenses, we rely on English datasets and translated data for instruction fine-tuning. Approximately one million examples are used in this stage. The data is mainly curated to support general-domain applications, while also including domain-specific examples for math, coding, and reasoning tasks.

Infrastructure

The granite-4.0-h-3b-ar language model was trained using an NVIDIA H100 cluster hosted in an IBM data center. The training infrastructure is designed to support large-scale distributed workloads and can scale to thousands of GPUs.

How to Use

Here is a simple example on how to use granite-4.0-h-3b-ar for text generation:

  • Prompt: "أخبرني عن شركة أي بي إم وعن جامعة محمد بن زايد للذكاء الاصطناعي" (Tell me about IBM company and Mohamed bin Zayed University of Artificial Intelligence.)

Using HuggingFace

Install the following libraries:

pip install torch torchvision torchaudio
pip install accelerate
pip install transformers

Then, use the following code:

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

device= "cuda"

model_id = "ibm-research/granite-4.0-h-3b-ar"

messages = [
    {"role": "user", "content": "أخبرني عن شركة أي بي إم وعن جامعة محمد بن زايد للذكاء الاصطناعي"},
]

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map=device,
    torch_dtype=torch.bfloat16,
    attn_implementation="flash_attention_2",
)

model.eval()

messages = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
input_tokens = tokenizer(messages, return_tensors="pt").to(device)

outputs = model.generate(**input_tokens, max_new_tokens=1024)
outputs = tokenizer.batch_decode(outputs)

print(outputs[0])

Expected output (actual output can vary):

<|start_of_role|>user<|end_of_role|>أخبرني عن شركة أي بي إم وعن جامعة محمد بن زايد للذكاء الاصطناعي<|end_of_text|>
<|start_of_role|>assistant<|end_of_role|> 🇦🇪 أي بي إم، شركة عالمية كبيرة، تقدم خدمات تكنولوجيا معلومات وبرمجيات ومنتجات متنوعة. هي معروفة بتقنيتها المتقدمة وحلولها المبتكرة.
جامعة محمد بن زايد للذكاء الاصطناعي، مؤسسة رائدة في مجال الذكاء الاصطناعي، تهدف إلى تعزيز البحث والتطوير في هذا المجال. تسعى لتكون مركزًا للابتكار والتعاون في مجال الذكاء الاصطناعي.
<|end_of_text|>

Using vLLM (if a GPU is available)

from vllm import LLM, SamplingParams

model_id = "ibm-research/granite-4.0-h-3b-ar"

messages = [
    {"role": "user", "content": "أخبرني عن شركة أي بي إم وعن جامعة محمد بن زايد للذكاء الاصطناعي"},
]

llm = LLM(
    model=model_id,
    dtype="bfloat16",
    enforce_eager=False,
    gpu_memory_utilization=0.6,
    tensor_parallel_size=1,  # Num. of GPUs
)

# Get tokenizer and format messages
tokenizer = llm.get_tokenizer()
prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)

sampling_params = SamplingParams(max_tokens=1024)
outputs = llm.generate(prompt, sampling_params=sampling_params)

print(outputs[0].outputs[0].text)

Expected output (actual output can vary):

كشركة عالمية مشهورة في مجال التكنولوجيا، تقدم شركة أي بي إم حلولًا متقدمة للشركات والحكومات حول العالم. كما تقوم بتوفير خدماتها للعديد من المؤسسات في دولة الإمارات العربية المتحدة.
فيما يتعلق بجامعة محمد بن زايد للذكاء الاصطناعي، فهي مبادرة رائدة أطلقتها الحكومة الإماراتية بهدف خلق مجتمع معرفي وتعزيز التقنيات المتقدمة. تسعى الجامعة إلى جذب أفضل العقول في مجال الذكاء الاصطناعي من جميع أنحاء العالم وتوفير الدعم البحثي والتعليمي لهم.

Evaluation

We perform the evaluation using the following multilingual benchmarks and the included languages. We used LM-Evaluation-Harness to evaluate different models in a 5-shot setting. In the table below, we list the language labels that are used in each benchmark.

Translation (5-shot)

The models are evaluated on the Floress-200 dataset, where the performance is measured using BLEU score. Here, Dial. represents the average performance over the dialects.

Understanding and Cultural Knowledge (5-shot)

The models are evaluated on a suite of QA tasks in a generative mode. The performance is reported using exact match with strict-match as a requirement, where the model has to follow the instructions exactly as specified by the task. Below, (Dial) represents the average performance over the dialects.

Ethical Considerations and Limitations:

granite-4.0-h-3b-ar was trained on a mixture of English and Arabic data, including data covering four regional Arabic dialects. Although the model is designed to support Arabic and dialectal dialogue use cases, its performance may vary depending on the dialect, domain, prompt style, and task complexity, and may not always be comparable to its performance on English-language tasks. For dialect-specific or domain-specific applications, providing a small number of examples through few-shot prompting can help improve output accuracy and consistency. While granite-4.0-h-3b-ar has been developed with safety considerations in mind, it may still occasionally generate inaccurate, biased, inappropriate, or unsafe responses. Users and developers should conduct task-specific evaluation, safety testing, and additional tuning before deploying the model in production environments. For enterprise deployments, especially in safety-sensitive or high-risk settings, we recommend pairing granite-4.0-h-3b-ar with appropriate input and output moderation systems, such as Granite Guardian, to help detect and flag risks across relevant dimensions described in the IBM AI Risk Atlas.

citation

@misc{dialLLM,
      title={granite-4.0-h-3b-ar},
      author={IBM–MBZUAI AI Center of Excellence},
      year={2026},
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
GraniteMoeHybridForCausalLM
Ревизия весов
b32260f

0 моделей