Downloads · 30 days
6
13% of all-time downloads
Chaima-KHENAFIF/qwen-darija-domain-adapted
qwen-darija-domain-adapted is a text generation model from Chaima-KHENAFIF. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
A LoRA adapter that domain-adapts Qwen/Qwen2.5-3B-Instruct to Algerian Darija — Latin script, Arabic script, and French/English code-switching — via QLoRA continued pretraining.
Downloads · 30 days
6
13% of all-time downloads
All-time downloads
47
Public
Repo size
131 MB
Likes
1
Public
Click a slice to open those files.
.safetensors120 MB · 91%
From the Hugging Face model README
A LoRA adapter that domain-adapts Qwen/Qwen2.5-3B-Instruct to Algerian Darija — Latin script, Arabic script, and French/English code-switching — via QLoRA continued pretraining.
This is stage 1 of a two-stage pipeline built for automated meeting-minutes generation on code-switched Algerian workplace speech. This end-to-end domain-adaptation approach outperformed a sequential translate-then-generate pipeline across every metric measured (ROUGE-L +29.7 pts, BERTScore F1 +3.0 pts, schema compliance +4.1 pts).
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("Chaima-KHENAFIF/qwen-darija-domain-adapted")
base_model.load_adapter("Chaima-KHENAFIF/qwen-darija-domain-adapted")
inputs = tokenizer("mochkil f la puce djezzy ma", return_tensors="pt").to(base_model.device)
output = base_model.generate(**inputs, max_new_tokens=30, do_sample=True, temperature=0.7)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Best validation perplexity: 25.78