Model reference · open weights

Fanar-1

LLMs QCRI Text gen 1 build Open weights 159k dl/mo

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.

  • Fanar-1-9B-Instruct is an 8.8 billion parameter text-generation model developed by QCRI for Arabic and English tasks.
  • It features a 4096 token context length and is distributed under the Apache 2.0 license.

Summary of the QCRI/Fanar-1-9B-Instruct model card, 2026-10-01

What it is

Released byQCRI
Released2025-06-01
Parameters8.8B
VRAM17.6 GB for the weights

What it runs on

Memory and cards for Fanar-1-9B-Instruct (BF16)

17.6 GBweights, file size
172 MBcache per 1K tokens
1.4 GBwindow cache per request
737 MBruntime overhead, at least
4,096 tokenscontext max
CardRequests at onceContext maxMemory
4K each
RTX 3060 12 GB … RTX 4060 Ti 16 GB
2 smaller cards
RTX 3090 24 GB3all 4K23.4 GB
RTX 4090 24 GB3all 4K23.4 GB
RTX 5090 32 GB9all 4K31.0 GB
L40S 48 GB18all 4K44.0 GB
A100 80 GB42all 4K78.2 GB
H100 80 GB39all 4K78.1 GB
RTX PRO 6000 Blackwell 96 GB50all 4K93.8 GB
DGX Spark (GB10) 128 GB unified60all 4K107 GB
H200 141 GB82all 4K138 GB
B200 180 GB108all 4K176 GB
2× RTX 3060 12 GB
tensor parallel
2all 4K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
8all 4K15.4 GB a card
2× RTX 4090 24 GB
tensor parallel
19all 4K23.4 GB a card
2× RTX 3090 24 GB
tensor parallel
19all 4K23.4 GB a card
Memory needed at each load
Requests at once4K tokens each
119.7 GB
525.4 GB
829.6 GB
1640.9 GB
3263.4 GB
64108 GB

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

From the model card

What QCRI says about Fanar-1

Read 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).


Model Details

AttributeValue
Developed byQCRI at HBKU
Sponsored byMinistry of Communications and Information Technology, State of Qatar
Model TypeAutoregressive Transformer
Parameter Count8.7 Billion
Context Length4096 Tokens
InputText only
OutputText only
Training FrameworkLitGPT
Pretraining Token Count1 Trillion (ar + en)
SFT Instructions4.5M
DPO Preference Pairs250K
LanguagesArabic, English
LicenseApache 2.0

Model Training

Pretraining

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.

Post-training

Fanar-1-9B-Instruct underwent a two-phase post-training pipeline:

PhaseSize
Supervised Fine-tuning (SFT)4.5M Instructions
Direct Preference Optimization (DPO)250K Preference Pairs

Getting Started

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)

Intended Use

Fanar-1-9B-Instruct is built for:

  • Conversational agents (Arabic only or bilingual)
  • Cultural and dialectal question answering in Arabic
  • Educational, governmental, and civic NLP applications focused on the Arab world or Arabic-speaking audiences
  • Research on Arabic natural language generation and understanding

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.


Ethical Considerations & Limitations

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.

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