๐Ÿช llama3-arabic-instruct

llama3-arabic-instruct is an instruction-tuned, alignment-optimized Large Language Model tailored for Modern Standard Arabic (MSA) and Egyptian dialect instruction following. Developed by Yousef Khaled Gouda (Senior AI Systems Architect & Principal ML Engineer).

๐Ÿš€ Key Highlights

  • Base Architecture: Meta LLaMA 3 8B / 70B Instruct.
  • Fine-Tuning Paradigm: QLoRA SFT on 80,000 curated high-entropy Arabic instruction samples + DPO alignment on 1,000 pairwise human preference rankings.
  • Human Preference Score: 82.0% blind win rate over GPT-3.5-turbo in Egyptian and Gulf conversational settings.
  • Serving Benchmark: Optimized for vLLM PagedAttention serving with P95 latency under 420ms on GCP A100.

๐Ÿ’ป Usage Example

from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "Yousef1258852/llama3-arabic-instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")

prompt = "ุงุดุฑุญ ู„ูŠ ุจุงุฎุชุตุงุฑ ูƒูŠู ุชุนู…ู„ ุฃู†ุธู…ุฉ ุงุณุชุฑุฌุงุน ุงู„ู…ุนู„ูˆู…ุงุช RAG ููŠ ู…ุนุงู„ุฌุฉ ุงู„ู…ุณุชู†ุฏุงุช ุงู„ู‚ุงู†ูˆู†ูŠุฉ."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

๐Ÿ“œ Citation & Credits

Downloads last month
1
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Evaluation results