Safetensors
Bhojpuri
Hindi
gemma3
bhojpuri
indic
unsloth
lora

Gemwa-4B 🌾

Gemwa is Gemma 3 4B IT fine-tuned to reply in Bhojpuri (भोजपुरी). The base model understands Bhojpuri questions but usually answers in Hindi, and sometimes in Nepali. Gemwa answers in Bhojpuri while keeping most of Gemma's knowledge.

Before vs after

Gemma 3 4B IT Gemwa-4B
Bhojpuri score* 0.14 0.97
Chhath facts (of 12)** 1 (Gemwa v1.0) 8

*Share of Bhojpuri marker words (बा, खातिर, एगो, गइल, जाला …) among Bhojpuri + Hindi marker words in answers to about 30 held-out Bhojpuri questions. It's a rough check of which language the model answers in, not a quality benchmark.

**12 Chhath questions worded differently from the training data, each checked automatically for the key fact and verified by reading the answers (कार्तिक, छव दिन, चार दिन, खरना के खीर, 36 घंटा, ठेकुआ, सूप-दउरा …).

Example. Q: भारत के पहिला प्रधानमंत्री के रहले?

  • Gemma 3 4B IT: भारत के पहले प्रधानमंत्री जवाहरलाल नेहरू थे। …
  • Gemwa-4B: भारत के पहिला प्रधानमंत्री जवाहरलाल नेहरु रहलें। उ 1947 से 1964 ले भारत के पहिला प्रधानमंत्री रहले।

Q: छठ के परब कुल केतना दिन चलेला?

  • Gemwa-4B v1.2: छठ चार दिन के परब ह: पहिला दिन नहाय-खाय, दूसरका दिन खरना, तीसरका दिन संझिया अरघ आ चउथा दिन भोर के अरघ।

Usage

from transformers import AutoProcessor, Gemma3ForConditionalGeneration
import torch

model_id = "l1nk-0/Gemwa-4B"
processor = AutoProcessor.from_pretrained(model_id)
model = Gemma3ForConditionalGeneration.from_pretrained(
    model_id, torch_dtype=torch.bfloat16, device_map="auto")

messages = [{"role": "user", "content": [{"type": "text", "text": "छठ पूजा काहे मनावल जाला?"}]}]
inputs = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=True,
                                       return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=200, do_sample=True, temperature=0.7, top_p=0.9)
print(processor.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Training

  • Method: LoRA (r=16, alpha=16) on the language layers (attention + MLP) with Unsloth, 4-bit base model. Vision layers unchanged.
  • Stage 1 (v1.0, Bhojpuri replies): 3,000 examples from pksx01/alpaca_bhojpuri_instruction, filtered to answers that are mostly Bhojpuri (marker-word ratio ≥ 0.6, little Latin text), max 1,024 tokens.
  • 1 epoch, learning rate 2e-4, effective batch size 16, loss on responses only. Trained on a single Kaggle T4.
  • Stage 2 (v1.2, Chhath): continued training of the stage-1 adapter on l1nk-0/bhojpuri-chhath-qa (91 Chhath Q&A, each seen 8 times) mixed with 300 general Bhojpuri examples, 1 epoch, learning rate 2e-4.

Limitations

  • Facts can be wrong. On 12 Chhath test questions (worded differently from the training data) v1.2 gets 8 right. Known mistakes: it can mix up the third day (संझिया अरघ, setting sun) with the fourth (भोर के अरघ, rising sun), it may say Chaiti Chhath is in Kartik (it's in Chaitra, around March–April), and it may name Arjun instead of Karna as the Mahabharata figure linked to Chhath. It can also add small invented details. Don't rely on it for facts.
  • Outside Chhath, knowledge comes from Gemma 3 4B and can be wrong too.
  • The general training data is machine-translated (Alpaca → Bhojpuri), so some phrasing is unnatural and occasional Hindi words or forms appear.
  • Creative writing can be repetitive and may contain made-up words.
  • Evaluation is limited: an automatic output-language check, a 12-question Chhath fact check, and manual reading by the author. No standard benchmark yet.
  • Only text was trained. Image input was not tested after fine-tuning.

License and terms

You're free to use, share and modify Gemwa, as long as you credit the author. Any use, redistribution, fine-tune or product built on Gemwa must give clear credit to l1nk-0 with a link to https://huggingface.co/l1nk-0/Gemwa-4B (see Citation below).

This attribution requirement is in addition to the terms that come with the base model:

  • Gemwa is a modified version of Gemma 3 (the weights were changed by fine-tuning). Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. Use must also follow the Gemma Prohibited Use Policy, and anyone you share Gemwa with must receive these terms too.
  • Part of the training data is derived from Stanford Alpaca, which was released under CC BY-NC 4.0. If you plan to use Gemwa commercially, check whether that affects you.

This isn't legal advice; if in doubt, read the Gemma Terms of Use.

Feedback from Bhojpuri speakers is very welcome: please open a discussion in the Community tab.

Citation

If you use Gemwa, or anything built from it, please credit l1nk-0 and link to https://huggingface.co/l1nk-0/Gemwa-4B.

@misc{gemwa2026,
  author       = {l1nk-0},
  title        = {Gemwa-4B: a Bhojpuri fine-tune of Gemma 3 4B},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/l1nk-0/Gemwa-4B}}
}
Downloads last month
16
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 l1nk-0/Gemwa-4B

Adapter
(616)
this model
Adapters
1 model
Quantizations
1 model

Datasets used to train l1nk-0/Gemwa-4B

Collection including l1nk-0/Gemwa-4B