Model reference · open weights
Fanar-1 is an open-weight language model from QCRI. Fanar-1-9B-Instruct (BF16) weighs 17.6 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 QCRI/Fanar-1-9B-Instruct model card, 2026-10-01
What it is
| Released by | QCRI |
|---|---|
| Released | 2025-06-01 |
| Parameters | 8.8B |
| VRAM | 17.6 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 4K each | |||
| RTX 3060 12 GB … RTX 4060 Ti 16 GB 2 smaller cards | |||
| RTX 3090 24 GB | 3 | all 4K | 23.4 GB |
| RTX 4090 24 GB | 3 | all 4K | 23.4 GB |
| RTX 5090 32 GB | 9 | all 4K | 31.0 GB |
| L40S 48 GB | 18 | all 4K | 44.0 GB |
| A100 80 GB | 42 | all 4K | 78.2 GB |
| H100 80 GB | 39 | all 4K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 50 | all 4K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 60 | all 4K | 107 GB |
| H200 141 GB | 82 | all 4K | 138 GB |
| B200 180 GB | 108 | all 4K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 2 | all 4K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 8 | all 4K | 15.4 GB a card |
| 2× RTX 4090 24 GB tensor parallel | 19 | all 4K | 23.4 GB a card |
| 2× RTX 3090 24 GB tensor parallel | 19 | all 4K | 23.4 GB a card |
| Requests at once | 4K tokens each |
|---|---|
| 1 | 19.7 GB |
| 5 | 25.4 GB |
| 8 | 29.6 GB |
| 16 | 40.9 GB |
| 32 | 63.4 GB |
| 64 | 108 GB |
One card, with vLLM's small-card settings.
From the model card
Fanar-1-9B-Instruct is a powerful Arabic-English LLM developed by Qatar Computing Research Institute (QCRI) at Hamad Bin Khalifa University (HBKU), a member of Qatar Foundation for Education, Science, and Community Development. It is the instruction-tuned version of Fanar-1-9B. We continually pretrain the google/gemma-2-9b model on 1T Arabic and English tokens. We pay particular attention to the richness of the Arabic language by supporting Modern Standard Arabic (MSA) and a diverse set of Arabic dialects, including Gulf, Levantine, and Egyptian. Fanar models, through meticulous curation of the pretraining and instruction-tuning data, are aligned with Islamic values and Arab cultures.
Fanar-1-9B-Instruct is a core component of the Fanar GenAI platform that offers a suite of capabilities including image generation, video and image understanding, deep thinking, advanced text-to-speech (TTS) and automatic-speech-recognition (ASR), attribution and fact-checking, Islamic RAG, among several other features.
We have published a comprehensive report with all the details regarding our Fanar GenAI platform. We also provide an API to our models and the GenAI platform (request access here).
| Attribute | Value |
|---|---|
| Developed by | QCRI at HBKU |
| Sponsored by | Ministry of Communications and Information Technology, State of Qatar |
| Model Type | Autoregressive Transformer |
| Parameter Count | 8.7 Billion |
| Context Length | 4096 Tokens |
| Input | Text only |
| Output | Text only |
| Training Framework | LitGPT |
| Pretraining Token Count | 1 Trillion (ar + en) |
| SFT Instructions | 4.5M |
| DPO Preference Pairs | 250K |
| Languages | Arabic, English |
| License | Apache 2.0 |
Fanar-1-9B-Instruct was continually pretrained on 1T tokens, with a balanced focus on Arabic and English: ~515B English tokens from a carefully curated subset of the Dolma dataset, 410B Arabic tokens that we collected, parsed, and filtered from a variety of sources, and 102B code tokens curated from The Stack dataset. Our codebase used the LitGPT framework.
Fanar-1-9B-Instruct underwent a two-phase post-training pipeline:
| Phase | Size |
|---|---|
| Supervised Fine-tuning (SFT) | 4.5M Instructions |
| Direct Preference Optimization (DPO) | 250K Preference Pairs |
Fanar-1-9B-Instruct is compatible with the Hugging Face transformers library (≥ v4.40.0). Here's how to load and use the model:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "QCRI/Fanar-1-9B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
# message content may be in Arabic or English
messages = [
{"role": "user", "content": "ما هي عاصمة قطر؟"},
]
inputs = tokenizer.apply_chat_template(messages, tokenize=False, return_tensors="pt")
outputs = model.generate(**tokenizer(inputs, return_tensors="pt", return_token_type_ids=False), max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Inference using VLLM is also supported:
from vllm import LLM, SamplingParams
model_name = "QCRI/Fanar-1-9B-Instruct"
llm = LLM(model=model_name)
sampling_params = SamplingParams(temperature=0.7, max_tokens=256)
# message content may be in Arabic or English
messages = [
{"role": "user", "content": "ما هي عاصمة قطر؟"},
]
outputs = llm.chat(messages, sampling_params)
print(outputs[0].outputs[0].text)
Fanar-1-9B-Instruct is built for:
Fanar-1-9B-Instruct can be deployed as part of a broader AI system. Developers are encouraged to implement proper safeguards to ensure culturally respectful, accurate, and safe deployment. It should not be used to generate or spread harmful, illegal, or misleading content.
A version of this model can be accessed through Fanar Chat. We are continuously improving the Fanar’s models and capabilities, and answers can differ from what you get from Fanar-1-9B-Instruct.
Fanar-1-9B-Instruct is capable of generating fluent and contextually appropriate responses. However, as with any generative model there are uncertainities. The model may produce biased, offensive, or incorrect outputs. The model is not suitable for high-stakes decision-making (e.g., legal, medical, or financial advice). Though we have extensively tested Fanar-1-9B-Instruct and attempted to mitigate these issues, we cannot redress every possible scenario. Thus, we advise developers to implement safety checks and perform domain-specific fine-tuning for
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.