๐Ÿ‡ฉ๐Ÿ‡ฟ๐Ÿ‡ฒ๐Ÿ‡ฆ๐Ÿ‡น๐Ÿ‡ณ Maghrebi Darija to English Translator (V3 Ultimate)

This model is a state-of-the-art fine-tuned version of facebook/nllb-200-1.3B, specifically designed to translate Maghrebi Arabic Dialects (Algerian, Moroccan, and Tunisian Darija) into English.

๐Ÿš€ Model Details

  • Base Model: NLLB-200-1.3B (Meta)
  • Training Data: Over 120,000 highly curated parallel sentences, including daily conversations, social media slang, and deep cultural proverbs.
  • Hardware Used: Dual T4 GPUs (Kaggle)
  • Developer: Zakaria CH

๐Ÿง  Why this model?

Standard translation models often fail at Maghrebi dialects, usually defaulting to Modern Standard Arabic (MSA) literal translations. This model was explicitly trained to understand the context and slang of the Maghreb region (e.g., translating "ู‚ุชู„ูˆ" contextually as "I told him" instead of the literal "I killed him").

๐Ÿ’ป How to use in Python

`python from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

model_name = "zakaCH/Algerian-Darija-Translator" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForSeq2SeqLM.from_pretrained(model_name)

text = "ูˆุงุด ูŠุง ุฎูˆูŠุง ูƒุงุด ุฌุฏูŠุฏ ููŠ ุงู„ุญูˆู…ุฉุŸ" tokenizer.src_lang = "arb_Arab" inputs = tokenizer(text, return_tensors="pt")

outputs = model.generate(**inputs, forced_bos_token_id=tokenizer.convert_tokens_to_ids("eng_Latn"), max_length=128) print(tokenizer.batch_decode(outputs, skip_special_tokens=True)[0])

Output: "What's up bro, any news in the neighborhood?"

Downloads last month
27
Safetensors
Model size
2B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for zakaCH/Algerian-Darija-Translator

Finetuned
(33)
this model