Model reference · open weights
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.
Summary of the humain-ai/ALLaM-7B-Instruct-preview model card, 2026-10-01
What it is
| Released by | humain-ai |
|---|---|
| Released | 2025-02-13 |
| Parameters | 7.0B |
| VRAM | 14.0 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 4K each | |||
| RTX 3060 12 GB | 11.6 GB | ||
| RTX 4060 Ti 16 GB | 1K | 15.4 GB | |
| RTX 3090 24 GB | 4 | all 4K | 23.4 GB |
| RTX 4090 24 GB | 4 | all 4K | 23.4 GB |
| RTX 5090 32 GB | 7 | all 4K | 31.0 GB |
| L40S 48 GB | 13 | all 4K | 44.0 GB |
| A100 80 GB | 29 | all 4K | 78.2 GB |
| H100 80 GB | 28 | all 4K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 35 | all 4K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 41 | all 4K | 107 GB |
| H200 141 GB | 55 | all 4K | 138 GB |
| B200 180 GB | 73 | all 4K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 3 | all 4K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 7 | all 4K | 15.4 GB a card |
| 2× RTX 4090 24 GB tensor parallel | 14 | all 4K | 23.4 GB a card |
| 2× RTX 3090 24 GB tensor parallel | 14 | all 4K | 23.4 GB a card |
| 2× RTX 5090 32 GB tensor parallel | 21 | all 4K | 31.0 GB a card |
| Requests at once | 4K tokens each |
|---|---|
| 1 | 16.8 GB |
| 5 | 25.4 GB |
| 8 | 31.8 GB |
| 16 | 49.0 GB |
| 32 | 83.4 GB |
| 64 | 152 GB |
One card, with vLLM's small-card settings.
From 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.
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.
ALLaM is a family of LLMs specially trained for Arabic. The main two paths followed for pretraining are:
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:
| Size | Context Length | Pretraining Tokens | Instructions | Preference Pairs |
|---|---|---|---|---|
| 7B parameters | 4096 tokens | 4T(en) + 1.2T(en+ar) | 7M | 260K |
revision = "v1"revision = "v2"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.
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).
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])
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.
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:
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.