Abstract
We present Fanar 2.0, the second generation of Qatar's Arabic-centric Generative AI platform. Sovereignty is a first-class design principle: every component, from data pipelines to deployment infrastructure, was designed and operated entirely at QCRI, Hamad Bin Khalifa University. Fanar 2.0 is a story of resource-constrained excellence: the effort ran on 256 NVIDIA H100 GPUs, with Arabic having only ~0.5% of web data despite 400 million native speakers. Fanar 2.0 adopts a disciplined strategy of data quality over quantity, targeted continual pre-training, and model merging to achieve substantial gains within these constraints. At the core is Fanar-27B, continually pre-trained from a Gemma-3-27B backbone on a curated corpus of 120 billion high-quality tokens across three data recipes. Despite using 8x fewer pre-training tokens than Fanar 1.0, it delivers substantial benchmark improvements: Arabic knowledge (+9.1 pts), language (+7.3 pts), dialects (+3.5 pts), and English capability (+7.6 pts). Beyond the core LLM, Fanar 2.0 introduces a rich stack of new capabilities. FanarGuard is a state-of-the-art 4B bilingual moderation filter for Arabic safety and cultural alignment. The speech family Aura gains a long-form ASR model for hours-long audio. Oryx vision family adds Arabic-aware image and video understanding alongside culturally grounded image generation. An agentic tool-calling framework enables multi-step workflows. Fanar-Sadiq utilizes a multi-agent architecture for Islamic content. Fanar-Diwan provides classical Arabic poetry generation. FanarShaheen delivers LLM-powered bilingual translation. A redesigned multi-layer orchestrator coordinates all components through intent-aware routing and defense-in-depth safety validation. Taken together, Fanar 2.0 demonstrates that sovereign, resource-constrained AI development can produce systems competitive with those built at far greater scale.
Introduction: The Challenge of Arabic AI
Developing high-quality Generative AI for Arabic faces three massive hurdles: data scarcity, linguistic complexity, and the need for AI sovereignty. Despite having 400 million speakers, Arabic represents only ~0.5% of web content, much of which is noisy. Furthermore, the language features extreme dialectal variation and unique cultural sensitivities that general-purpose models often mishandle. Fanar 2.0 aims to prove that a resource-constrained team can build a full-stack, sovereign AI system that outperforms much larger models by being disciplined about data and architecture.
Evolution of the Fanar Stack
Fanar 2.0 represents a comprehensive upgrade over the initial version, expanding the flagship model size, context window, and introducing a wide array of specialized components for safety, vision, and speech.
Methodology: Data-Centric Continual Pre-training
The core of the stack is Fanar-27B, built using continual pre-training on the Gemma-3-27B backbone. The team employed a three-recipe strategy to maximize token utility:
- Recipe 1: Curated high-quality Arabic/English data (50B tokens).
- Recipe 2: Curated data mixed with educational web content (70B tokens).
- Recipe 3: Translation-centric parallel data (30B tokens).
Techniques such as recipe-based annealing and model merging were used to stabilize representations. For post-training, a five-stage pipeline was implemented, including Supervised Fine-Tuning (SFT), long-context adaptation (up to 32K tokens), and Direct Preference Optimization (DPO). A standout feature is the use of native Arabic reasoning traces and structured self-verification to mitigate hallucinations.
Specialized Components and Infrastructure
Fanar 2.0 moves beyond a single LLM to a modular ecosystem:
- Safety: FanarGuard (4B) provides state-of-the-art Arabic safety performance.
- Vision & Speech: The Oryx family introduces Arabic-aware image/video understanding, while Aura adds long-form ASR capabilities.
- Specialized Agents: Fanar-Sadiq uses a multi-agent architecture for Islamic content, and Fanar-Diwan specializes in classical Arabic poetry.
- Orchestration: An intelligent multi-layer orchestrator rephrases prompts and routes queries to specialized experts based on detected intent.
Key Results
Fanar 2.0 demonstrates that quality outweighs quantity. Despite using ~8x fewer pre-training tokens than Fanar 1.0, Fanar-27B saw a +9.1 point jump in Arabic world knowledge and a +7.6 point increase in English capability. The model matches or outperforms variants 2-3x its size on specific Arabic linguistic tasks. In the vision domain, Oryx leads in cultural compliance with a score of 85.49, while the Aura speech system achieved a 16.66% Word Error Rate (WER) on MSA broadcast data, outperforming Whisper-v3.
Conclusion and Future Work
Fanar 2.0 proves that sovereign AI development is viable under resource constraints. Future work will explore Mixture-of-Experts (MoE) architectures for Fanar 3.0 to increase capacity without increasing inference costs, alongside deeper multi-turn safety evaluations and the expansion of regional dialectal corpora.
Summary updated