EduHinglish — Gemma-3-4B-it LoRA adapter
Answers NCERT Class 9–10 questions (Biology, Chemistry, Physics, Mathematics, Social Science) in Roman-script Hinglish, grounded in a retrieved textbook passage. Part of the EduHinglish project (K.J. Somaiya College of Engineering).
Adapter: LoRA r=16, alpha=32, targets down_proj, gate_proj, k_proj, o_proj, q_proj, up_proj, v_proj.
Prompt format (single user turn, Gemma chat template)
Context:
<NCERT passage>
Question:
<student question>
Intent Type: <intent> # optional line
Answer the question in Hinglish using only the given context.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
tok = AutoTokenizer.from_pretrained("google/gemma-3-4b-it")
base = AutoModelForCausalLM.from_pretrained("google/gemma-3-4b-it", device_map="auto")
model = PeftModel.from_pretrained(base, "persuasivepost/eduhinglish-gemma-3-4b-it-lora")
Use of this adapter is subject to the Gemma Terms of Use.