Gemma-3-4B Urdu Education & Reasoning (full fine-tune)

A full fine-tune of google/gemma-3-4b-it for Urdu education, reasoning, and culture, trained on the UrduMMLU-aligned abdullah693/adaption-urdu-edu-cultural-reasoning dataset. The goal is a strong sub-5B Urdu model: math/science reasoning, social-science and Islamic knowledge, Pakistan studies, and native Urdu literature/grammar.

⚠️ Research / educational use. Not an authoritative source for exam preparation, religious rulings, or legal/medical advice.

At a glance

Base google/gemma-3-4b-it (Gemma3ForCausalLM, text)
Method Full fine-tune (SFT) — all weights updated, not LoRA
Training data adaption-urdu-edu-cultural-reasoning (~39.9K Urdu/English QA, UrduMMLU-aligned)
Epochs 3 (75 steps)
Loss 2.71 → 0.96 train; eval loss ~1.13
Reported win rate 62% vs. base (pairwise preference)
Languages Urdu (primary) + English
Trained via Adaption AutoScientist (Together.AI backend)

Intended use

Urdu question answering, explanation, and reasoning across STEM, humanities/social science, Islamic studies, Pakistan studies, and Urdu language/literature. Prompt it in Urdu; it can produce concise answers or worked explanations, and can be steered into MCQ-style answers.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

mid = "abdullah693/gemma-3-4b-it-urdu-edu-reasoning"
tok = AutoTokenizer.from_pretrained(mid)
model = AutoModelForCausalLM.from_pretrained(mid, torch_dtype=torch.bfloat16, device_map="auto")

msgs = [{"role": "user", "content": "سورج اور زمین کے درمیان فاصلے کو کیا کہتے ہیں؟ مختصر وضاحت کریں۔"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=256, do_sample=False)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))

Evaluation

Designed to be evaluated on UrduMMLU (26,431 Urdu MCQs, 5 domains) using the paper's protocol — generation + parse the option letter, Urdu prompt, 0-/5-shot. Reference baselines (Urdu, 0-shot) for the sub-5B tier:

Model UrduMMLU (Urdu, 0-shot)
google/gemma-3-4b-it (this model's base) 44.88%
Qwen3-4B 51.70%
LLaMA-3.1-8B 43.84%

Goal: beat the base (~45%) and approach the sub-5B leader. UrduMMLU scores for this fine-tune will be added once evaluated; the training set was deduplicated against UrduMMLU.

Training data composition

The dataset is composed to mirror UrduMMLU's domain mix (rather than over-weighting math): Urdu language/literature/grammar, MMLU humanities & social science (adapted to Urdu), STEM reasoning (GSM8K/MATH/ARC/AQuA), Islamic studies, Pakistan studies, and general knowledge. See the dataset card for full provenance and licenses.

Limitations

  • 4B scale — limited factual depth; can hallucinate, especially on long-tail Pakistan-specific facts.
  • Urdu grammar and Pakistan geography/current-affairs coverage in training was thin (no permissive native datasets), so these remain weaker areas.
  • Inherits the biases and knowledge cutoff of the Gemma-3 base.

License

Governed by the Gemma Terms of Use. Fine-tuned by abdullah693; Urdu data adaptation via Adaption AutoScientist.

Citation

@misc{gemma3_4b_urdu_edu_2026,
  title  = {Gemma-3-4B Urdu Education & Reasoning},
  author = {abdullah693},
  year   = {2026},
  url    = {https://huggingface.co/abdullah693/gemma-3-4b-it-urdu-edu-reasoning}
}
Downloads last month
11
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for abdullah693/gemma-3-4b-it-urdu-edu-reasoning

Finetuned
(706)
this model

Dataset used to train abdullah693/gemma-3-4b-it-urdu-edu-reasoning