alexmt-qwen3-1.7b-s1-ck075
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.75, scored in the direction each pair is trained in. Result: 24,531,271 pairs (28,482 of them dialect-labelled by their source), each used once, in one direction (50/50 English->Arabic / Arabic->English); about 0.58B 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); training stopped at step 18,000 of 33,821 (53 % of one epoch, so not every pair was seen; the learning rate had not yet decayed: 5.3e-6 at the stop). The full training state at the stop is on branch checkpoint-18000 (see RESUME.md there), so the run can be resumed to the 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 | 18.66 / 36.31 | 30.29 / 55.27 | 32.46 / 55.01 |
| Egyptian | 11.82 / 28.53 | 13.60 / 30.13 | 21.29 / 47.25 | 22.27 / 46.92 |
| Moroccan | 9.09 / 26.03 | 10.45 / 27.00 | 15.77 / 41.37 | 14.27 / 39.24 |
| Tunisian | 11.63 / 28.46 | 13.38 / 30.02 | 19.77 / 45.57 | 20.13 / 44.91 |
| N. Levantine | 11.91 / 30.09 | 14.61 / 32.12 | 25.51 / 50.17 | 26.42 / 50.04 |
| S. Levantine | 12.48 / 31.33 | 15.97 / 33.83 | 27.75 / 52.22 | 29.22 / 51.96 |
| Iraqi | 12.73 / 30.41 | 14.86 / 32.12 | 24.85 / 50.77 | 26.45 / 50.60 |
| dialect macro | 11.61 / 29.14 | 13.81 / 30.87 | 22.49 / 47.89 | 23.13 / 47.28 |
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.