๐Ÿ‡ฎ๐Ÿ‡ณ Gemma-4-E4B-Hindi-Instruct โ€” LoRA adapter

LoRA adapter (r=16) for Hindi instruction-tuning of Gemma 4 E4B. Apply on top of the base model, or use the ready-made merged / GGUF builds.

Part of my Hindi LLM Series.


Usage (PEFT)

from transformers import AutoModelForCausalLM
from peft import PeftModel

base = AutoModelForCausalLM.from_pretrained("unsloth/gemma-4-E4B-it", device_map="auto")
model = PeftModel.from_pretrained(base, "pankajpandey-dev/gemma-4-e4b-hindi-instruct-lora")

Or with Unsloth:

from unsloth import FastModel
model, tok = FastModel.from_pretrained("pankajpandey-dev/gemma-4-e4b-hindi-instruct-lora")

Training details

Base model unsloth/gemma-4-E4B-it
Method LoRA (r=16, ฮฑ=16), response-only loss
Framework Unsloth
Data ~10k Hindi instruction pairs (AI4Bharat indic-instruct: anudesh + dolly, hi splits)
Epochs 2
LR / schedule 1e-4, cosine
Precision bf16 (4-bit QLoRA base)
Hardware Single NVIDIA L4 (24 GB)
Final train loss ~0.29

Related repos


Provenance & license (please read)

Mixed-license lineage โ€” review all before redistribution or commercial use:

You are responsible for complying with the Gemma, Llama 2, and CC-BY-SA terms.

Acknowledgements

Base model by Google (Gemma 4). Data by AI4Bharat. Fine-tuning with Unsloth. ๐Ÿ™

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for pankajpandey-dev/gemma-4-e4b-hindi-instruct-lora

Adapter
(49)
this model

Dataset used to train pankajpandey-dev/gemma-4-e4b-hindi-instruct-lora