Downloads · 30 days
10
15% of all-time downloads
AbdulrahmanFA/saudi-dialect-qwen2.5-3b-lora-v1
saudi-dialect-qwen2.5-3b-lora-v1 is a machine learning model from AbdulrahmanFA. 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.
A LoRA adapter for Qwen/Qwen2.5-3B-Instruct, fine-tuned to nudge generation toward Saudi (Najdi-leaning) colloquial register.
Downloads · 30 days
10
15% of all-time downloads
All-time downloads
65
Public
Repo size
41.4 MB
Likes
0
Public
Click a slice to open those files.
.safetensors30 MB · 72%
From the Hugging Face model README
A LoRA adapter for Qwen/Qwen2.5-3B-Instruct, fine-tuned to nudge generation
toward Saudi (Najdi-leaning) colloquial register.
This is a v1 trained on a single-domain corpus. Dialect transfer is partial: it shifts most on finance/market topics and still tends to fall back to MSA on general prompts. Not production-ready. Shared for experimentation and as a training-pipeline reference.
~19k short text segments scraped from a Saudi stock-market forum (hawamer.com), cleaned and filtered for dialect density (dedup, boilerplate removal, dialect-marker scoring, thread/author capping). Register skews adult, male, finance-oriented, Najdi-leaning.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct", dtype=torch.bfloat16, device_map="cuda")
model = PeftModel.from_pretrained(base, "AbdulrahmanFA/saudi-dialect-qwen2.5-3b-lora-v1")
tok = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-3B-Instruct")