DEV Community

Prashant Maurya
Prashant Maurya

Posted on

SparshAI: I Built an Offline AI Tutor for Students Using Gemma 4 — Here's What Happened

Gemma 4 Challenge: Write about Gemma 4 Submission

This is a submission for the Gemma 4 Challenge: Write About Gemma 4


There is a district in Uttar Pradesh called Sonbhadra.

It sits in the southernmost corner of the state, surrounded by forests and hills.
It is one of India's most tribal, most remote, and most underserved districts.
Mobile signals disappear between villages. Internet is not something you plan
around — it is something you hope for.

I am a student at IIT Jodhpur. Sonbhadra is where I come from.

Every time I go back home, I carry two things with me — the education I am
getting at one of India's top institutions, and the quiet guilt of knowing
that most kids from my area will never have access to what I have.

This time, I decided to try and do something about it.


The Problem Nobody Talks About

People talk about the digital divide all the time. But the conversation usually
focuses on devices — "give students smartphones" or "build more computer labs."

That misses the deeper problem.

In Sonbhadra, even when a student has a device, consistent internet is not
available. 4G signal is weak and patchy. Broadband does not exist in most
villages. Mobile data runs out. And even when the internet works, it works
in bursts — five minutes here, ten minutes there.

Cloud-based AI tools like ChatGPT are simply not an option in this reality.
You cannot have a tutoring session that depends on a connection that might
disappear mid-sentence.

The other problem is language. Most educational AI tools respond only in
English. The students I grew up with are smart and curious, but they think
in Hindi. An AI that cannot meet them in their own language is an AI that
cannot help them.

These two problems — internet dependency and language barrier — are what
SparshAI was built to solve.


What Is SparshAI?

SparshAI is a local AI tutoring system that runs entirely on a single laptop,
with no internet connection required after the initial setup.

The name comes from the Hindi word "Sparsh" — which means touch, or connection.
That is exactly what this project is about: creating a connection between
students who have been left behind and the knowledge they deserve access to.

The idea is simple. One laptop sits in a school or community center. Students
gather around it, or connect to it over a basic local WiFi network. They type
their questions — in Hindi, in English, or in a mix of both. SparshAI answers
them, patiently, clearly, in whatever language they used.

No internet. No monthly fees. No cloud. No data leaving the room.


Why Gemma 4 Made This Possible

I had thought about building something like this before. The problem was always
the model. Local AI models that were capable enough for real tutoring were too
large to run on affordable hardware. Models small enough to run locally were
too weak to give useful explanations.

Gemma 4 changed that equation completely.

Google's Gemma 4 is an open model family — meaning anyone can download and run
it locally, for free. But what makes it genuinely special is the range of sizes
it comes in, and how capable even the smaller models are.

The Gemma 4 family has three main variants:

The E2B and E4B models are built for edge devices — phones, low-RAM laptops,
even a Raspberry Pi. They are small, efficient, and designed to run without a GPU.

The 31B Dense model is a full-power model for high-end machines — great
quality, but needs serious hardware.

The 27B MoE model is built for speed and reasoning, best suited for GPU setups.

For SparshAI, I chose the E4B model — the 4 billion parameter variant.
This was not a default choice. It was a deliberate one.

Here is my reasoning: the schools and community centers in Sonbhadra that
could realistically host a setup like this would have access to a basic
second-hand laptop — something with 8GB of RAM and no dedicated graphics card.
That is the hardware reality on the ground.

The E2B model, while even smaller, does not give deep enough explanations for
real academic concepts. I tested both. E2B answers are often too surface-level
for a student genuinely trying to understand something.

The 31B model gives richer answers, but it needs hardware that costs three to
four times more. That puts it out of reach for the use case I was designing for.

E4B sits exactly in the middle. Capable enough to explain photosynthesis,
Newton's laws, fractions, grammar concepts, and historical events in meaningful
depth. Small enough to run smoothly on an ₹18,000 second-hand laptop with no GPU.

That is intentional model selection. Not picking what sounds most impressive —
picking what actually works for the people you are building for.


The LENTERA Inspiration

While researching how others had approached this problem, I came across a project
called LENTERA, which was built during the Gemma 3n Impact Challenge for remote
schools in Indonesia.

Their core insight stopped me in my tracks.

LENTERA found that in educational settings, students tend to ask the same
questions repeatedly. "What is photosynthesis?" gets asked by a new student
every single day. If you make the AI regenerate that answer from scratch every
time, you waste time and processing power unnecessarily.

Their solution was intelligent caching — storing answers to common questions
locally so that repeat queries get instant responses, and the model only works
hard on genuinely new questions. This reduced their response time from 90
seconds down to under 1 second for common queries.

I built this same principle into SparshAI. The result is that the most
frequently asked questions — basic science concepts, grammar rules, math
fundamentals — are answered almost instantly. The system gets faster and
smarter the more it is used, because it builds up a local library of answers
that are relevant to that specific school's students.

This felt right for Sonbhadra specifically. The NCERT curriculum is standardized
across India. Class 8 students in Sonbhadra ask the same questions as Class 8
students anywhere else. A cached answer to "What is the water cycle?" is just
as useful the hundredth time as the first.


What I Actually Tested

I brought a working version of SparshAI back to Sonbhadra during my last visit.
I set it up in a room with five students between the ages of 12 and 16.

I want to be honest about what this was. It was not a formal study. It was not
a controlled experiment. It was five curious kids, a laptop, and an afternoon.

But what happened in that afternoon told me everything I needed to know.

The language thing worked better than I expected.

The first student typed her question entirely in Hindi. SparshAI responded in
Hindi. Her face when she saw that — the small surprise of being answered in her
own language by a machine — is something I will not forget quickly.

She asked a follow-up question. Then another. Within twenty minutes she had
gone deeper into the topic of plant biology than her textbook had taken her
in an entire chapter.

The patience factor is real.

One of the boys asked the same question three different ways because he did not
understand the first two answers. A tired teacher with 50 students would not
have the bandwidth for that. SparshAI answered each time without any indication
of frustration. On the third explanation, something clicked for him. He nodded
and moved on.

That patience is not a small thing. For students who feel embarrassed asking
their teacher to repeat something, having a system that will explain the same
concept ten different ways without judgment is genuinely significant.

The offline test was the most important one.

Midway through the session, I turned off the WiFi router deliberately — without
telling the students. Nothing changed. SparshAI kept working exactly as before
because everything was running locally on the laptop. No internet. No
interruption. No awareness on their part that anything had changed.

That is the whole point. A tool that works only when the internet works is not
a tool for Sonbhadra. A tool that keeps working regardless of connectivity —
that is something real.


What SparshAI Is Not

I want to be clear about the limitations because honesty matters more than
hype, especially when you are talking about something that affects students
who already have limited options.

SparshAI is not a replacement for a good teacher. A good teacher brings
energy, relationship, observation, and human judgment that no AI can replicate.
What SparshAI can do is fill the hours when no teacher is available — evenings,
weekends, exam seasons, the long gaps between school hours and the next day.

The Hindi support is good, but not perfect. Complex questions with regional
dialect mixing sometimes produce answers that are technically correct but
slightly awkward in phrasing. This is an area that needs improvement.

Response speed on very old hardware can be slow for complex questions —
sometimes 15 to 20 seconds. For a student used to waiting, this is acceptable.
For someone expecting ChatGPT speed, it would feel frustrating. Setting the
right expectations matters.


What Gemma 4 Unlocked That Nothing Else Could

I want to step back and say this directly, because I think it gets lost in
technical discussions.

Before Gemma 4, building something like SparshAI was not practically possible
for the specific constraints of rural India. The models capable of real
educational dialogue required cloud infrastructure. The models small enough
to run locally were not capable enough to be genuinely useful.

Gemma 4 E4B sits at an intersection that did not exist before — capable enough
to teach, small enough to run on affordable hardware, open enough to deploy
without ongoing costs.

For a student from Sonbhadra trying to build something for Sonbhadra, that
intersection is everything.


Where SparshAI Goes Next

This is still early. What I have right now is a working proof of concept that
I have tested with five students on one afternoon.

But I know what the next steps look like.

The most important one is fine-tuning on NCERT content. The entire Class 6
through Class 10 NCERT curriculum is publicly available. A version of Gemma 4
fine-tuned specifically on this content would be dramatically more useful for
Indian school students than the base model. The answers would be more aligned
with what students are actually studying, the examples would be culturally
relevant, and the Hindi quality would improve.

The second step is voice input. Typing is a barrier for younger students and
for students who are less comfortable with keyboards. Adding offline
speech-to-text — so a student can simply speak their question — would open
SparshAI up to a much wider age range.

The third step is scale. One laptop per school, shared over a basic local
network, can serve an entire student body. The hardware cost is a one-time
investment. After that, the running cost is zero. That economics makes
SparshAI potentially replicable across hundreds of schools in districts
like Sonbhadra without requiring ongoing funding.


A Final Thought

I got into IIT Jodhpur. That happened because I had access to things —
preparation resources, guidance, a support system — that most students from
my district simply do not have.

I have thought about that gap for a long time. It always felt too large,
too structural, too deeply embedded in inequality to be addressed by a
single person building a single thing.

SparshAI has not changed my mind about the scale of that gap. It is still
enormous. But it has changed my mind about whether technology can be part
of bridging it.

Gemma 4 running locally on a ₹18,000 laptop, answering a 13-year-old
girl's question about plant biology in Hindi, with no internet connection,
for free — that is not a small thing.

That is a door opening.

And sometimes, a door is enough to start with.


Student at IIT Jodhpur | From Sonbhadra, Uttar Pradesh
Project: SparshAI — Local offline AI tutor for rural students
Model used: Gemma 4 E4B | Hardware: 8GB RAM laptop, no GPU
Inspired by: LENTERA (Gemma 3n Impact Challenge)
Tags: #devchallenge #gemmachallenge #gemma

Top comments (1)

Collapse
 
prshant01 profile image
Prashant Maurya

Good Job