The first open-source Arabic-specialized code explanation and generation model.
AraCode-7B understands, explains, and generates code in Arabic — a capability no existing model provides with such precision. Whether you're a student learning to code, a developer working in Arabic, or a researcher exploring multilingual code AI, this model was built specifically for you.
🌟 What makes AraCode-7B different?
Existing code models (CodeLlama, StarCoder, DeepSeek-Coder) generate excellent code but only communicate effectively in English. On the other hand, general Arabic LLMs (Jais, ALLaM, Falcon-Arabic) handle Arabic beautifully but were never natively optimized for strict coding tasks.
AraCode-7B bridges this gap. It combines robust Arabic linguistic capabilities with precise, executable code generation and strict instruction adherence.
📊 Comprehensive Benchmarks
We evaluated AraCode-7B using both custom coding benchmarks and standardized frameworks (IFEval, AraGen) to compare its performance against the latest state-of-the-art Arabic and multilingual models.
1. Code Generation & Understanding (Zero-Shot)
Tested on a custom Arabic benchmark measuring raw coding capability, algorithmic logic, and debugging.
Model
Code Gen (%)
Explain (%)
Debug (%)
Translate NL->Code (%)
Total Score
AraCode-7B (Ours)
90.0%
92.5%
100.0%
94.0%
94.12%
ALLaM-7B-Instruct
45.0%
86.2%
100.0%
90.0%
80.30%
Key Takeaway: AraCode-7B achieves a massive 90% in executable Code Generation. Unlike general conversational models that suffer from "excessive chatting" or infinite loops during generation, AraCode outputs clean, ready-to-run Python code efficiently.
2. Instruction Following (IFEval - Arabic)
Evaluated on strict instruction adherence (e.g., "output only code", "start with a specific word"). Competitor scores are based on published strict 0-shot IFEval (ar) benchmarks.
Model
IFEval (Arabic) (%)
AraCode-7B (Ours - Local Eval)
80.00%
Jais-2-8B
37.92%
Qwen2.5-7B-Instruct
33.21%
ALLaM-7B-Instruct-preview
19.40%
Llama-3.1-8B-Instruct
10.87%
Key Takeaway: AraCode-7B excels at instruction following. For developers, this means the model respects formatting constraints (like returning raw code without Markdown blocks) far better than general-purpose LLMs.
3. Cultural Alignment & Safety (AraGen 3C3H Framework)
Evaluated on Cultural awareness, Helpfulness, Harmlessness, Honesty, and Humility. Competitor scores are based on published AraGen 12-24 benchmarks.
Model
AraGen 3C3H Average (%)
Jais-2-8B
67.20%
Qwen2.5-7B-Instruct
53.20%
AraCode-7B (Ours - Local Eval)
50.00%
Llama-3.1-8B-Instruct
40.65%
Key Takeaway: AraCode-7B maintains a healthy balance (50%) in safety and cultural alignment. As a domain-specific model optimized for logic and programming, it successfully avoids the "alignment tax"—ensuring that strict conversational guardrails do not degrade its primary function as a coding assistant.
🚀 Quickstart
You can easily run this model locally using popular GGUF tools.
تستخدم الدالة تقنية البحث الثنائي بكفاءة عالية وبتعقيد زمني O(log n)، مما يجعلها ممتازة للمصفوفات الكبيرة.
Github : https://github.com/Rahimdzx/AraCode-7B
📄 License
This model is released under the Apache 2.0 license.