alexmt-qwen3-1.7b-s1-ck085
Qwen/Qwen3-1.7B fine-tuned for translation between English and Arabic (Modern Standard Arabic and dialects). This is stage 1 of a two-stage recipe: general sentence-level translation on filtered public parallel data, before a second stage on conversational dialect data (Alexandria).
Data. Arabic-English sentence pairs from OPUS (OpenSubtitles v2024, TED2020, QED, GlobalVoices, TICO-19, Egyptian / Moroccan WikiMatrix and Wikimedia, Tatoeba) and AraBench. Filtering, in order: rule-based cleaning (3-60 Arabic words, junk, length ratio <= 3, deduplication), removal of every pair whose Arabic or English side matches a sentence of Alexandria dev/test, FLORES-200 dev/devtest or MADAR; fastText language identification; LaBSE similarity in [0.75, 0.99) (>= 0.60 for pairs whose source labels them as a dialect); CometKiwi-22 >= 0.85, scored in the direction each pair is trained in. Result: 4,945,548 pairs (3,806 of them dialect-labelled by their source), each used once, in one direction (50/50 English->Arabic / Arabic->English); 0.20B training tokens.
Training. Full fine-tuning, bf16, learning rate 1e-5 (cosine over one epoch, 10 % warmup), about 33k tokens per step (sequences packed to 2,048 tokens without cross-attention between examples); one full epoch.
Results
FLORES-200 dev (997 sentences per variety), greedy decoding with the prompt below; spBLEU (flores200 tokenizer) / chrF++.
| variety | en→ar zero-shot | en→ar this model | ar→en zero-shot | ar→en this model |
|---|---|---|---|---|
| MSA | 16.44 / 34.22 | 19.08 / 36.71 | 30.29 / 55.27 | 31.31 / 54.11 |
| Egyptian | 11.82 / 28.53 | 13.52 / 30.12 | 21.29 / 47.25 | 21.24 / 46.16 |
| Moroccan | 9.09 / 26.03 | 10.38 / 27.06 | 15.77 / 41.37 | 12.65 / 38.27 |
| Tunisian | 11.63 / 28.46 | 13.34 / 29.96 | 19.77 / 45.57 | 18.58 / 43.97 |
| N. Levantine | 11.91 / 30.09 | 14.35 / 31.91 | 25.51 / 50.17 | 25.03 / 48.62 |
| S. Levantine | 12.48 / 31.33 | 15.10 / 33.30 | 27.75 / 52.22 | 27.11 / 50.77 |
| Iraqi | 12.73 / 30.41 | 15.12 / 32.27 | 24.85 / 50.77 | 24.65 / 49.54 |
| dialect macro | 11.61 / 29.14 | 13.63 / 30.77 | 22.49 / 47.89 | 21.54 / 46.22 |
Zero-shot = the base model with the same prompt. Single training seed; overlap metrics only (whether outputs are in the requested dialect is not measured).
Usage
One user turn, with the tokenizer's chat template (add_generation_prompt=True,
enable_thinking=False); the answer is the translation only.
Translate from English to Egyptian Arabic:
Where is the station?
Translate from Moroccan Arabic to English:
<Arabic text>
Variety names used in training: Arabic, Modern Standard Arabic, Egyptian Arabic, Moroccan Arabic, Tunisian Arabic, Algerian Arabic, Gulf Arabic, Gulf Arabic (Qatari), Iraqi Arabic, North Levantine Arabic, South Levantine Arabic ("Arabic" = data without a variety label, mostly Modern Standard Arabic).
Limitations
Most of the data is Modern Standard Arabic from subtitles; dialect-labelled data is a small share. The quality-estimation and similarity models used for filtering score dialectal Arabic lower than MSA on the same content, so the filters remove proportionally more dialect.
Licence
CC BY-NC 4.0 (non-commercial): several training corpora are licensed for non-commercial use only. The base model, Qwen3-1.7B, is Apache-2.0.