Spaces:
Sleeping
Sleeping
release: multi-model card, fixed links
Browse files
README.md
CHANGED
|
@@ -6,28 +6,56 @@ colorTo: blue
|
|
| 6 |
sdk: docker
|
| 7 |
app_port: 7860
|
| 8 |
pinned: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
short_description: توجيه عربي صفري — نص + أي فئات تكتبها → الفئة المناسبة
|
| 10 |
---
|
| 11 |
|
| 12 |
# Nawah-Router — Arabic zero-shot prompt routing
|
| 13 |
|
| 14 |
Write a text and **any categories in plain Arabic**; the model scores all of them in a single
|
| 15 |
-
forward pass. Categories are free text typed at runtime — the model has no fixed taxonomy
|
| 16 |
-
|
| 17 |
|
| 18 |
Edit any category inline, add or remove lanes, and the routing updates as you type.
|
|
|
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
|---|---:|---:|
|
| 22 |
-
|
|
| 23 |
-
|
|
| 24 |
-
|
|
| 25 |
-
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
Confidence is not calibrated: clear cases saturate near 100%. Use the ranking, not the number.
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
sdk: docker
|
| 7 |
app_port: 7860
|
| 8 |
pinned: false
|
| 9 |
+
models:
|
| 10 |
+
- oddadmix/Nawah-Router-BERT-6M-v2
|
| 11 |
+
- oddadmix/Nawah-Router-v3
|
| 12 |
+
- oddadmix/Nawah-BERT-6M-v2
|
| 13 |
+
datasets:
|
| 14 |
+
- oddadmix/arabic-prompt-routing
|
| 15 |
+
tags:
|
| 16 |
+
- arabic
|
| 17 |
+
- zero-shot-classification
|
| 18 |
+
- prompt-routing
|
| 19 |
short_description: توجيه عربي صفري — نص + أي فئات تكتبها → الفئة المناسبة
|
| 20 |
---
|
| 21 |
|
| 22 |
# Nawah-Router — Arabic zero-shot prompt routing
|
| 23 |
|
| 24 |
Write a text and **any categories in plain Arabic**; the model scores all of them in a single
|
| 25 |
+
forward pass. Categories are free text typed at runtime — the model has no fixed taxonomy, so
|
| 26 |
+
this is zero-shot classification over a label set it has never seen.
|
| 27 |
|
| 28 |
Edit any category inline, add or remove lanes, and the routing updates as you type.
|
| 29 |
+
Arabic counterpart to [LFM2.5-Encoder-350M-Prompt-Router](https://huggingface.co/LiquidAI/LFM2.5-Encoder-350-Prompt-Router).
|
| 30 |
|
| 31 |
+
## Two backbones, one head — switch from the picker
|
| 32 |
+
|
| 33 |
+
| | [`Nawah-Router-BERT-6M-v2`](https://huggingface.co/oddadmix/Nawah-Router-BERT-6M-v2) | [`Nawah-Router-v3`](https://huggingface.co/oddadmix/Nawah-Router-v3) |
|
| 34 |
|---|---:|---:|
|
| 35 |
+
| parameters | **5,977,985** | 52,049,409 |
|
| 36 |
+
| backbone | BERT encoder | Llama decoder |
|
| 37 |
+
| base model | [`Nawah-BERT-6M-v2`](https://huggingface.co/oddadmix/Nawah-BERT-6M-v2) | `50M-2048-Emhotob` |
|
| 38 |
+
|
| 39 |
+
Both scored in one session by the same `eval_router_only.py`; Router-v3 reproduced its published
|
| 40 |
+
card exactly.
|
| 41 |
|
| 42 |
+
| eval set | **6M encoder** | 52M decoder | random |
|
| 43 |
+
|---|---:|---:|---:|
|
| 44 |
+
| unseen category sets | **0.9327** | 0.9308 | 0.2137 |
|
| 45 |
+
| unseen domains | **0.7009** | 0.6975 | 0.2521 |
|
| 46 |
+
| deliberately adjacent categories | **0.9101** | 0.9017 | 0.2109 |
|
| 47 |
+
| unseen axes (dimensions absent from training) | 0.6000 | **0.6127** | 0.2358 |
|
| 48 |
+
|
| 49 |
+
The 6M wins three of four at **1/8.7 the size**. It loses on unseen axes — the column the 52M's
|
| 50 |
+
card calls its strongest claim — and three of the four margins are under one point, which is
|
| 51 |
+
inside what a single run can tell you.
|
| 52 |
|
| 53 |
Confidence is not calibrated: clear cases saturate near 100%. Use the ranking, not the number.
|
| 54 |
|
| 55 |
+
Data: [`oddadmix/arabic-prompt-routing`](https://huggingface.co/datasets/oddadmix/arabic-prompt-routing)
|
| 56 |
+
— 207,097 training rows, 58,008 distinct category sets, 12 routing axes, with the full generation
|
| 57 |
+
and verification pipeline.
|
| 58 |
+
|
| 59 |
+
CPU-only, one forward pass regardless of how many categories you give it.
|
| 60 |
+
|
| 61 |
+
© KAND CA 2026 — PROJECT NAWAH
|