Model reference · open weights

ALLaM

LLMs humain-ai Text gen 1 build Open weights 9k dl/mo

ALLaM is an open-weight language model from humain-ai. ALLaM-7B-Instruct-preview (BF16) weighs 14.0 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • ALLaM-7B-Instruct-preview is a 7.0B parameter autoregressive Transformer developed by humain-ai for text generation in Arabic and English.
  • The model is designed to advance Arabic Language Technology and supports a context length of 4096 tokens.
  • It is released under the apache-2.0 licence.

Summary of the humain-ai/ALLaM-7B-Instruct-preview model card, 2026-10-01

What it is

Released byhumain-ai
Released2025-02-13
Parameters7.0B
VRAM14.0 GB for the weights

What it runs on

Memory and cards for ALLaM-7B-Instruct-preview (BF16)

14.0 GBweights, file size
524 MBcache per 1K tokens
652 MBruntime overhead, at least
4,096 tokenscontext max
CardRequests at onceContext maxMemory
4K each
RTX 3060 12 GB11.6 GB
RTX 4060 Ti 16 GB1K15.4 GB
RTX 3090 24 GB4all 4K23.4 GB
RTX 4090 24 GB4all 4K23.4 GB
RTX 5090 32 GB7all 4K31.0 GB
L40S 48 GB13all 4K44.0 GB
A100 80 GB29all 4K78.2 GB
H100 80 GB28all 4K78.1 GB
RTX PRO 6000 Blackwell 96 GB35all 4K93.8 GB
DGX Spark (GB10) 128 GB unified41all 4K107 GB
H200 141 GB55all 4K138 GB
B200 180 GB73all 4K176 GB
2× RTX 3060 12 GB
tensor parallel
3all 4K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
7all 4K15.4 GB a card
2× RTX 4090 24 GB
tensor parallel
14all 4K23.4 GB a card
2× RTX 3090 24 GB
tensor parallel
14all 4K23.4 GB a card
2× RTX 5090 32 GB
tensor parallel
21all 4K31.0 GB a card
Memory needed at each load
Requests at once4K tokens each
116.8 GB
525.4 GB
831.8 GB
1649.0 GB
3283.4 GB
64152 GB

One card, with vLLM's small-card settings.

From the model card

What humain-ai says about ALLaM

Read the model card

ALLaM is a series of powerful language models designed to advance Arabic Language Technology (ALT) developed by the National Center for Artificial Intelligence (NCAI) at the Saudi Data and AI Authority (SDAIA). ALLaM-AI/ALLaM-7B-Instruct-preview is trained from scratch. Our pretraining from scratch recipe consists of two steps: training on 4T English tokens followed by training on 1.2T mixed Arabic/English tokens. This retains the English capabilities of the model without catastrophic forgetting, effectively transferring knowledge from one language distribution to another.

Intended Use

ALLaM is specifically designed to expedite the research and development of ALT through Large Language Models (LLM). It serves as one of the foundational elements for building product offerings as well as facilitating experimental initiatives.

The ALLaM series models are designed to be a component of a larger AI system, and it is important for developers to incorporate safety measures when creating these systems. These safety measures are crucial for ensuring a balance between effectiveness and security, as well as minimizing potential risks, such as those resulting from the integration of the model with external tools.

Model Details

ALLaM is a family of LLMs specially trained for Arabic. The main two paths followed for pretraining are:

  • ALLaM: Pretraining models from scratch
  • ALLaM-Adapted/ALLaM-(**)/(**)-ALLaM/: Continued training from open source/weight models

For this release, we are providing our instruction-tuned 7B parameter generative model pretrained from scratch.

Some parameters for this model are provided in the following table:

SizeContext LengthPretraining TokensInstructionsPreference Pairs
7B parameters4096 tokens4T(en) + 1.2T(en+ar)7M260K
Model Revisions Loading Tags:
  • Version 7b-alpha-v1.27.2.25 (Old Release): revision = "v1"
  • Version 7b-alpha-v2.33.0.30 (Newest Releas): revision = "v2"

Model Description

  • Developed by: National Center for Artificial Intelligence at SDAIA
  • Model type: Autoregressive Transformer
  • Language(s): Arabic, English
  • License: Please see the LICENSE file
  • Input: Text
  • Output: Text

Training Details

ALLaM-7B-Instruct-preview is pretrained on a total of 5.2 trillion tokens in English and Arabic, Our training codebase is built on NVIDIA/MegatronLM. Average MFU during training was ~42%. We trained our model using bf16-mixed precision.

Getting started

System Prompt

It is important to note that this model is optimized to function without a predefined system prompt. While Allam does not come with a default system prompt, it does provide the flexibility to add a custom system prompt. For instance, a well crafted system prompt could be:

“You are ALLaM, a bilingual English and Arabic AI assistant.” System prompts can also be in Arabic:

"أنت علام، مساعد ذكاء اصطناعي مطور من الهيئة السعودية للبيانات والذكاء الاصطناعي، تجيب على الأسئلة بطريقة مفيدة مع مراعاة القيم الثقافية المحلية." Alternatively, users can get creative with their prompts, such as:

“You are an AI assistant who responds to everything like a pirate.”

The system prompt is integrated inside the tokenizer config (accessed via apply_chat_template() module).

Example Usages

The weights for ALLaM model checkpoints can be accessed via HuggingFace transformers (tested with transformers>=4.40.1). The following code snippet demonstrates how to load the model and generate text using the ALLaM-AI/ALLaM-7B-Instruct-preview model.

from transformers import AutoModelForCausalLM, AutoTokenizer
allam_model = AutoModelForCausalLM.from_pretrained("ALLaM-AI/ALLaM-7B-Instruct-preview")
tokenizer = AutoTokenizer.from_pretrained("ALLaM-AI/ALLaM-7B-Instruct-preview")
messages=[
    {"role": "user", "content": "كيف أجهز كوب شاهي؟"},
]
inputs = tokenizer.apply_chat_template(messages, tokenize=False)
inputs = tokenizer(inputs, return_tensors='pt', return_token_type_ids=False)
inputs = {k: v.to('cuda') for k,v in inputs.items()}
allam_model = allam_model.to('cuda')
response = allam_model.generate(**inputs, max_new_tokens=4096, do_sample=True, top_k=50, top_p=0.95, temperature=.6)
print(tokenizer.batch_decode(response, skip_special_tokens=True)[0])

Ethical Considerations and Limitations

ALLaM is a generative model that comes with inherent uncertainties. Trials cannot encompass every possible use case. Hence, predicting ALLaM's responses in every context is not possible, leading on occasion to incorrect or biased outputs. Developers must conduct thorough safety evaluations and make specific adjustments to ensure the model is suitable for the intended purposes.

The output generated by this model is not considered a statement of NCAI, SDAIA, or any other organization.

Evaluation

Automatic Benchmarks

Arabic Benchmarks

Massive Multitask Language Understanding (MMLU) is a collection of many multiple-choice evaluation questions sourced from various academic levels (elementary to college level). These questions are typically related to humanities, STEM, or social sciences. It was originally an English dataset, but other variants were developed for Arabic:

  • Arabic MMLU: A collection of 14,575 original Arabic questions spanning 40 domains published by MBZUAI.
  • OpenAI MMLU-ar: A dataset comprising 14,042 questions, translated from the original MMLU benchmark published by OpenAI.

Exams Arabic ([Exams (Ar)](https://github.com/FreedomIntelligence/Arabic-eval/blob/main/LLM/b

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms