CoolFace
Modelpublic

mariklolik/AraToken-Qwen3-0.6B-LEP

sourceHugging Faceapache-2.0updated 3d agoView on Hugging Face
0likes294downloads
Model Card

AraToken-Qwen3-0.6B-LEP

Qwen3-0.6B-Base adapted to Arabic with the Language Extension Pipeline (LEP). 130,890 AraToken pieces were added to the vocabulary, with the new embedding rows initialized as the mean of their Qwen3 sub-token embeddings. The model was then trained on 500M tokens of FineWeb2-HQ Arabic (5,086 steps, 4 × H100). The original embedding rows were frozen by gradient masking, and only the new rows and transformer layers 24–27 were trained.

Paper: AraToken: Optimizing Arabic Tokenization with Normalization Pipeline and Language Extension for Qwen3. Code: https://github.com/mariklolik/Aratoken.

ModelArabic BPC ↓English BPC (WikiText-103)OALL v2 native-Arabic macro acc.chars / token
Qwen3-0.6B-Base1.54461.01990.3922.59
CPT with the original tokenizer (mariklolik/AraToken-Qwen3-0.6B-CPT)1.40471.06750.3792.59
this model1.32191.13790.4054.43

BPC is bits per character on the first 1,500 documents of the held-out test split of mariklolik/AraToken-FineWeb2-HQ-ar. It compares models with different vocabularies on the same characters.

python
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "mariklolik/AraToken-Qwen3-0.6B-LEP"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="bfloat16")

The tokenizer carries the AraToken normalizer: NFKC, Tatweel removal, Western digits, Latin punctuation and diacritics removal. Raw Arabic text can therefore be passed to it directly.

Citation

bibtex
@article{kashirskiy2025aratoken,
  title   = {AraToken: Optimizing Arabic Tokenization with Normalization Pipeline and Language Extension for Qwen3},
  author  = {Kashirskiy, Mark and Lipinski, Artiom and Makarov, Ilya},
  journal = {arXiv preprint arXiv:2512.18399},
  year    = {2025}
}