SUPERBRAIN-1 — Arabic-first root reasoning + Arabic math (Fanar-1-9B)
SUPERBRAIN-1 is a 9B Arabic model by ABUZ8, built on QCRI/Fanar-1-9B. It is trained to reason through Arabic morphology (ṣarf): find the root of a word, build any verb Form I–X from a root, conjugate, derive. On top of that, it solves Arabic math word problems step by step.
It is a completion model, not a chat model. Give it one of the prompt formats below and read the first line of the output.
Files
| File | Version | What it is |
|---|---|---|
superbrain1-soup_90_10-q5_k_m.gguf | v4 (current, 2026-10-17) | 90/10 soup of v3 + run9 — best roots, zero family drops |
superbrain1-run12_math-q5_k_m.gguf | math specialist (2026-10-17) | math GRPO from v4 — Arabic GSM8K 78.9% (best ever), roots below bar |
superbrain1-run8b-q5_k_m.gguf | v3 (2026-10-16) | weak-bucket GRPO + soup |
superbrain1-run6-q5_k_m.gguf | v2 (2026-10-12, kept for math) | roots + Quranic words + Arabic math (GSM8K 63.6%) |
superbrain1-q5_k_m.gguf | v1 (2026-10-06) | morphology specialist (best verb forms) |
Results
All scores use greedy decoding on the Q5_K_M GGUF served by llama.cpp. Evaluation files are in eval/.
ArabicMMLU (verified 2026-10-20)
Champion v4 (soup_90_10, Q5_K_M GGUF, llama.cpp): 47.48% — 1,403 / 2,955 items, clean re-run with zero HTTP errors, 2026-10-20. Proof file: mmlu_v4-arabicmmlu-b4-clean-2026-10-20.json.
| Subject | Accuracy |
|---|---|
| Economics | 63.10% |
| Arabic Language (General) | 53.10% |
| Islamic Studies | 48.31% |
| Civics | 46.75% |
| Arabic Grammar | 31.51% |
| Overall | 47.48% |
Packet B — held-out test. 1,343 items over 258 roots that were excluded from all training data: real Quranic words (gold roots from the Quranic Arabic Corpus) and modern words from the Arramooz lexicon. The exam is published as a dataset: abuz8studios/arabic-sarf-packet-b.
Arabic math. All 1,190 problems of the Arabic GSM8K test split (Omartificial-Intelligence-Space/Arabic-gsm8k-v2), with exact match on the final number. The test questions were hash-checked so that none of them reached training.
| Fanar-1-9B base | v1 (SFT) | v2 (run6) | |
|---|---|---|---|
| Root extraction, bare question | 59.5% | 66.8% | 78.0% |
| Root extraction, few-shot | 43.2% | 67.9% | 78.6% |
| Verb Forms I–X (428 items) | 16.6% | 94.9% | 88.8% |
| Arabic GSM8K (1,190) | — | — | 63.6% |
| 85-item gate (v3) | 61.2% | 96.5% | 95.3% |
Math rose from 21.9% to 63.6%. The checkpoint before the math stage (Quranic-word round) scored 21.9% on the same 1,190 problems. 300 GRPO steps with an exact-answer reward took it to 63.6%.
v2 root accuracy by root class (bare question):
| Class | Accuracy |
|---|---|
| sound | 90.7% |
| doubled | 68.8% |
| hollow | 68.6% |
| assimilated | 64.8% |
| hamzated | 63.5% |
| defective | 48.1% |
v1 scored 79/56/60/44/51/45% on the same classes.
Generalization probe. The root خدم was banned from all training data. Asked for the root of مستخدمين ("users"), both v1 and v2 answer خدم under all three prompt formats.
Prompt formats
Root (bare): ما جذر كلمة «مستخدمين»؟\nالجذر: → خدم
Verb form: الجذر: درج — الصيغة العاشرة\nالفعل: → استدرج
Conjugation: الفعل: نجم | الزمن: المضارع المجزوم | الضمير: هما\nالتصريف: → ينجما
Math:
المهمة: حل السؤال التالي خطوة بخطوة ثم اكتب الجواب النهائي رقمًا.
سؤال: ...
الحل:
→ The model writes worked steps, then الجواب: <number>.
Usage (llama.cpp)
llama-server -m superbrain1-soup_90_10-q5_k_m.gguf -ngl 99 -c 4096 --port 8099
curl -s http://127.0.0.1:8099/completion -d '{"prompt":"ما جذر كلمة «مستخدمين»؟\nالجذر:","n_predict":16,"temperature":0}'
How v2 was trained
Every stage is kept only if it beats the previous champion on Packet B without losing more than 2 points elsewhere.
- Supervised fine-tuning (v1) on 600,000 generated gold items from 5,955 roots: root extraction, conjugation, verb forms, form naming, derivation. QLoRA r64, loss on the answer only.
- GRPO rounds on roots and morphology (champion "rl1f"), with an exact-match reward checked by a program.
- GRPO on Quranic words (355 hard items, 400 steps).
- GRPO on Arabic math (662 Arabic GSM8K train problems the model sometimes got right, 300 steps, 8 samples per prompt), with an exact-number reward.
Every reward is a program check, either a root oracle or an exact number. No AI judge is used.
Limitations
- v2 traded some verb-form accuracy for roots and math (94.9% → 88.8%). Form VI is the weak spot at 55%. Use v1 if you only need verb forms.
- About one root in five is still missed. Defective roots (final و/ي) are the hardest class at 48%. Errors also come from clitic ambiguity out of context.
- Single words only. There is no sentence context and no disambiguation.
- Not chat-tuned. Free-form questions get base-model behaviour.
- Quranic spelling. Quranic words are tested in modern spelling, converted from Uthmani script.
Update 2026-10-16: v3 champion (run8b_soup) — superseded by v4 on 2026-10-17
Scores come from verdict_run8b.json (Q5_K_M, greedy, llama.cpp, same Packet B).
| Run | Packet B root, bare | Root, few-shot | Verb forms | Gate v3 |
|---|---|---|---|---|
| run8b_soup (v3) | 0.7989 | 0.8055 | 0.9533 | 0.9529 |
| run8_weakroots | 0.7934 | 0.8033 | 0.9556 | 0.9412 |
| soup_g2f_run6 | 0.7814 | 0.7880 | 0.9276 | 0.9529 |
| run6 (v2) | 0.7803 | 0.7858 | 0.8879 | 0.9529 |
v3 root accuracy by root class (bare question):
| Class | v3 | v2 (run6) |
|---|---|---|
| sound | 91.46% | 90.7% |
| defective | 53.25% | 48.1% |
| doubled | 71.43% | 68.8% |
| hamzated | 60.81% | 63.5% |
| hollow | 74.19% | 68.6% |
| assimilated | 64.79% | 64.8% |
Recipe. run8: GRPO on the champion's weak buckets (1,728 sometimes-right items weighted to defective/hamzated/assimilated roots, 300 steps, rank 32). run8b_soup: linear weight soup, 0.65 × run8 + 0.35 × soup_g2f_run6. Lineage: soup_g2f_run6 → run8_weakroots (GRPO) → run8b_soup (soup). Which to pick: soup_90_10 (v4) for roots and verb forms; run12_math for Arabic math (GSM8K 78.9%, roots below the promotion gate); run6 remains the balanced v2 reference (GSM8K 63.6%).
Full run log, Oct 15–16 (good and ugly)
Weights are posted for promoted runs only. Every run — kept or killed — posts its verdict JSON. Scores: Packet B bare / few-shot / morph / gate v3.
| Run | Bare | Few | Morph | Gate | Weights | Verdict |
|---|---|---|---|---|---|---|
| soup_90_10 (v4) | 0.8000 | 0.8131 | 0.9486 | 0.9529 | superbrain1-soup_90_10-q5_k_m.gguf | verdict_soup_90_10.json |
| run12_math | 0.7956 | 0.8055 | 0.9463 | 0.9647 | math specialist, superbrain1-run12_math-q5_k_m.gguf | FAILED roots GATE (doubled −3.9); math 78.91% best ever |
| soup_m80_20 | 0.7978 | 0.8109 | 0.9533 | 0.9529 | — | FAILED GATE (hamzated −2.7); math 76.97% (blending loses math) |
| soup_math_90_10 | 0.8044 | 0.8055 | 0.9486 | 0.9529 | — | near-miss (fewshot −0.76); math 77.98%; bare probe fixed |
| weakroots2 dataset | — | — | — | — | — | THIN (1164 < 1500 gate, no train) — champion's weak buckets hardened |
| soup_80_20 | 0.7967 | 0.8077 | 0.9486 | 0.9647 | — | FAILED GATE (doubled −2.6, hamzated −2.7) |
| run8_weakroots | 0.7934 | 0.8033 | 0.9556 | 0.9412 | — | verdict_run8.json |
| run8b_soup (v3) | 0.7989 | 0.8055 | 0.9533 | 0.9529 | superbrain1-run8b-q5_k_m.gguf | verdict_run8b.json |
| run9_tristage | 0.8055 | 0.8186 | 0.9533 | 0.9529 | — | verdict_run9.json |
| soup_70_30 | 0.8066 | 0.8164 | 0.9463 | 0.9529 | — | FAILED GATE (hamzated −2.7) |
| run10b_sft_think | 0.7082 | 0.7137 | 0.9019 | 0.8118 | — | format 100%, quality regressed |
| run10c_sft | ~0 | ~0 | 0.068 | 0.3529 | — | greedy delimiter loops |
| run11_tristage | 0 | 0.001 | 0.054 | 0.3529 | — | reward-hacked empty thinks |
| soup_8b_10b_a50 | — | — | — | — | — | FAILED GATE entry (emission 3/50) |
Lesson log: GRPO cannot discover a 25-token format by chance (run9); narrow SFT saturates format and burns quality (run10b); light SFT loops under greedy (run10c); gated rewards get hacked by degenerate actors (run11). Interpolation works but the ratio is unforgiving (soup_70_30).
Update 2026-10-17: v4 champion (soup_90_10)
0.9 × run8b_soup + 0.1 × run9_tristage. Bare 0.8000 and few-shot 0.8131
both beat v3; no family drops more than 0.5 pts (doubled and hamzated
unchanged-or-better, the failure point of every earlier blend). Scores in
verdict_soup_90_10.json. Flag: the bare مستخدمين probe answers
استخدام on v4 (few-shot still خدم) — watched, not gated.
Lineage: run8b_soup → soup_90_10. Sibling soup_80_20 set a gate record
(0.9647) but bled doubled/hamzated past the line — verdict posted, weights
local only.
Data and licenses
- Base model: QCRI Fanar-1-9B, Apache-2.0.
- Morphology training data was generated with Arramooz, Qutrub and PyArabic (all GPL). Those tools are not distributed here. Only generated question–answer pairs were used for training.
- Math: Arabic GSM8K v2 (Apache-2.0). Only the train split was used for training; the test split was used only for evaluation.
- Evaluation: Quranic Arabic Corpus (GPL).
Thanks to QCRI for Fanar, Taha Zerrouki for Arramooz, Qutrub and PyArabic, Kais Dukes for the Quranic Arabic Corpus, and Omartificial Intelligence Space for Arabic GSM8K.