Downloads · 30 days
46
18% of all-time downloads
Khamad/qwen2.5-1.5b-amiya-palestinian
qwen2.5-1.5b-amiya-palestinian is a machine learning model from Khamad. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
Fine-tuned Qwen2.5-1.5B-Instruct model for Palestinian Arabic Dialect generation and translation, prepared for the AMIYA (Arabic Modeling In Your Accent) Shared Task at VarDial 2026.
Downloads · 30 days
46
18% of all-time downloads
All-time downloads
255
Public
Repo size
64 MB
Likes
0
Public
Click a slice to open those files.
.pt35.1 MB · 34%
From the Hugging Face model README
Fine-tuned Qwen2.5-1.5B-Instruct model for Palestinian Arabic Dialect generation and translation, prepared for the AMIYA (Arabic Modeling In Your Accent) Shared Task at VarDial 2026.
This model was fine-tuned on Palestinian Arabic dialect data prepared from multiple publicly available sources:
AMIYA Training Dataset (amiya_data/train.jsonl)
Additional Data Sources Used for Data Preparation:
Track: Open
This submission uses:
The model was trained on data prepared from publicly available Palestinian dialect corpora, in addition to the AMIYA provided training set.
pip install transformers peft torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-1.5B-Instruct",
torch_dtype="auto",
device_map="auto"
)
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "Khamad/qwen2.5-1.5b-amiya-palestinian")
# Set padding token
if tokenizer.pad_token is None:
tokenizer.pad_token = tokenizer.eos_token
# Format prompt using Qwen2.5 chat template
prompt = """<|im_start|>system
You are a helpful assistant that generates text in Palestinian Arabic dialect. Write naturally in Palestinian dialect.<|im_end|>
<|im_start|>user
Write a greeting in Palestinian dialect.<|im_end|>
<|im_start|>assistant
"""
# Tokenize
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
# Generate
outputs = model.generate(
**inputs,
max_new_tokens=100,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.pad_token_id,
eos_token_id=tokenizer.eos_token_id
)
# Decode
response = tokenizer.decode(outputs[0], skip_special_tokens=False)
print(response)
# MSA to Palestinian translation
prompt = """<|im_start|>system
Translate the following Modern Standard Arabic text to Palestinian Arabic dialect.<|im_end|>
<|im_start|>user
السلام عليكم ورحمة الله وبركاته<|im_end|>
<|im_start|>assistant
"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=50, temperature=0.7)
translation = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translation)
This model is evaluated on the AMIYA Shared Task benchmark (AL-QASIDA) with the following metrics:
If you use this model, please cite:
@misc{qwen2.5-1.5b-amiya-palestinian,
title={Qwen2.5-1.5B-AMIYA-Palestinian: Fine-tuned Model for Palestinian Arabic Dialect},
author={Khamad},
year={2025},
howpublished={\url{https://huggingface.co/Khamad/qwen2.5-1.5b-amiya-palestinian}},
note={Submission to AMIYA Shared Task @ VarDial 2026}
}
This model is released under the Apache 2.0 license, consistent with the base Qwen2.5-1.5B-Instruct model.
For questions about this model or the AMIYA submission:
Note: This model was developed for the AMIYA Shared Task evaluation. Results may vary depending on the specific evaluation setup and prompts used.