What it does
- Explains engineering concepts with real-life analogies and worked examples
- Writes complete code in C, C++, Java, Python, Verilog, MATLAB, SQL — and explains it
- Debugs code, naming the bug and giving the corrected version
- Prepares for exams in Anna University format — Part A (2 marks), Part B (13), Part C (15)
- Checks understanding — generates quizzes, marks written answers with feedback
- Speaks Tanglish when the student does
- Draws diagrams in Mermaid and renders mathematics in LaTeX
- Refuses to invent subject codes, credits or units that do not exist
Usage
from transformers import AutoProcessor, AutoModelForCausalLMimport torch model = AutoModelForCausalLM.from_pretrained( "arunachala-ai/thuli-arunachala-ai", dtype=torch.bfloat16, device_map="auto")proc = AutoProcessor.from_pretrained("arunachala-ai/thuli-arunachala-ai")tok = proc.tokenizer msgs = [{"role": "user", "content": "Explain pointers in C with a real-life example."}]text = tok.apply_chat_template(msgs, add_generation_prompt=True, tokenize=False)ids = tok(text, return_tensors="pt", add_special_tokens=False).to(model.device) out = model.generate(**ids, max_new_tokens=500, do_sample=False)print(tok.decode(out[0][ids["input_ids"].shape[-1]:], skip_special_tokens=True))
A system prompt is recommended:
You are Thuli Arunachala AI, an AI tutor for Anna University engineering students.Answer in English only.
Training
Table | |
|---|
| Base | google/gemma-4-E4B-it |
| Method | QLoRA (4-bit), r=32, alpha=64 |
| Epochs | 2 |
| Final eval loss | 0.561 |
Trained on synthetic instruction data generated from the official Anna University R2021 and R2025 curricula.
Syllabus knowledge
Subject codes, credits and unit topics are not memorised in the weights. They come from a structured database at runtime, so they stay exact and can be updated without retraining. The model is trained to use that data and to refuse when a code does not exist:
"CS9999 is not found in the Anna University syllabus. Please double-check the course code."
Benchmarks
Evaluated on a 77-task behavioural suite built for this use case — what a student actually asks a tutor, rather than general knowledge benchmarks.
Teaching
Table with columns: Task, Score, What was tested| Task | Score | What was tested |
|---|
| Explain concepts | 12 / 12 | CSE, ECE, EEE, Mechanical, Civil, Chemical, Biotech |
| Give complete code | 12 / 12 | C, C++, Java, Python, Verilog, 8051, MATLAB, SQL |
| Debug and fix code | 4 / 4 | Array bounds, null pointer, syntax, type errors |
| Solve numericals | 6 / 6 | Master theorem, bending moment, circuits, kinematics |
| Exam-format answers | pass | Part A / B / C structure with mark distribution |
Reliability
Table with columns: Task, Score, What was tested| Task | Score | What was tested |
|---|
| Refuse unknown subject codes | 8 / 8 | Invented codes, invalid regulations, non-existent units |
| Ground answers in given facts | pass | States provided codes and credits exactly, defers otherwise |
| Factual correctness | 8 / 8 | Complexity, data structures, normal forms, OS concepts |
| Stay in engineering context | pass | LIFO as a stack, not inventory accounting |
Table with columns: Task, Score, What was tested| Task | Score | What was tested |
|---|
| English when requested | 10 / 10 | System prompt honoured across subjects |
| Tanglish when requested | 5 / 5 | Natural Tamil-English mixing, technical terms in English |
| Valid JSON output | 6 / 6 | Flashcard generation, strict schema, no markdown fences |
| Structured MCQs | 3 / 3 | Exact format, one correct answer, explanations |
Application integration
Table with columns: Task, Score, What was tested| Task | Score | What was tested |
|---|
| End-to-end app checks | 26 / 26 | Chat, syllabus lookup, retrieval, flashcards, quizzes, plans |
Disclaimer
Always verify what this model tells you against your official syllabus, prescribed textbooks and your lecturers. Like every AI model, it can state incorrect things confidently — particularly subject codes, credits, formulas and exam answers. Treat it as a study companion, not as a source of record.
Licence
Apache 2.0, inherited from Gemma 4.
Credits
Co-developed by the students of the AI & DS Department, Arunachala Hitech College of Engineering, under the mentorship of Zyora Labs.