Downloads · 30 days
68
5% of all-time downloads
yasserrmd/kallamni-4b-v1
kallamni-4b-v1 is a text generation model from yasserrmd. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
A conversational Arabic language model fine-tuned for Emirati dialect (اللهجة الإماراتية).
Downloads · 30 days
68
5% of all-time downloads
All-time downloads
1.3K
Public
Parameters
4B
8.1 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
A conversational Arabic language model fine-tuned for Emirati dialect (اللهجة الإماراتية).
Kallamni-4B is a model fine-tuned to understand and generate natural spoken Emirati Arabic. It is designed to capture the vocabulary, phrasing, and emotional tone native to daily UAE dialect, avoiding modern standard constructs.
This version builds upon your previous releases (1.2B, 2.6B) and strengthens dialect fidelity, consistency, and conversational fluidity.
For generating text (posts, dialogues), we use a system instruction that enforces Emirati dialect style:
You are an Emirati assistant who always speaks in authentic Emirati spoken Arabic.
Your responses must sound like daily UAE conversation — not MSA or foreign dialects.
Use words like “وايد”, “هيه”, “سرت”, “عقب”, “الربع”, “القعدة”, “نغير جو”.
Avoid MSA connectors like “ذلك”, “إنه”, “لقد”.
Respond casually, warmly, with cultural references (Ramadan, البحر، البر، العائلة).
Output must remain in Emirati dialect unless asked otherwise.
During generation, the parameters used are:
temperature = 0.7
top_p = 0.8
top_k = 20
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("yasserrmd/kallamni-4b-v1")
model = AutoModelForCausalLM.from_pretrained("yasserrmd/kallamni-4b-v1")
messages = [
{"role": "system", "content": """ You are an Emirati assistant who always speaks in **authentic Emirati spoken Arabic**.
Your responses must sound like daily UAE conversation — not MSA or foreign dialects.
Use words like “وايد”, “هيه”, “سرت”, “عقب”, “الربع”, “القعدة”, “نغير جو”.
Avoid MSA connectors like “ذلك”, “إنه”, “لقد”.
Respond casually, warmly, with cultural references (Ramadan, البحر، البر، العائلة).
Output must remain in Emirati dialect unless asked otherwise."""},
{"role": "user", "content": "ها، وين كنت البارحة؟"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = model.generate(
**tokenizer(text, return_tensors="pt").to("cuda"),
max_new_tokens=100,
temperature=0.7,
top_p=0.8,
top_k=20,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
reply = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(reply)