<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Prashant Maurya </title>
    <description>The latest articles on DEV Community by Prashant Maurya  (@_prshant01).</description>
    <link>https://dev.to/_prshant01</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3293209%2Fc1657e23-17b2-4467-9e61-6c78c34f5de4.png</url>
      <title>DEV Community: Prashant Maurya </title>
      <link>https://dev.to/_prshant01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_prshant01"/>
    <language>en</language>
    <item>
      <title>SparshAI: I Built an Offline AI Tutor for Students Using Gemma 4 — Here's What Happened</title>
      <dc:creator>Prashant Maurya </dc:creator>
      <pubDate>Sun, 24 May 2026 18:28:40 +0000</pubDate>
      <link>https://dev.to/_prshant01/sparshai-i-built-an-offline-ai-tutor-for-students-using-gemma-4-heres-what-happened-glk</link>
      <guid>https://dev.to/_prshant01/sparshai-i-built-an-offline-ai-tutor-for-students-using-gemma-4-heres-what-happened-glk</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/google-gemma-2026-05-06"&gt;Gemma 4 Challenge: Write About Gemma 4&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;There is a district in Uttar Pradesh called Sonbhadra.&lt;/p&gt;

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

&lt;p&gt;I am a student at IIT Jodhpur. Sonbhadra is where I come from.&lt;/p&gt;

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

&lt;p&gt;This time, I decided to try and do something about it.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem Nobody Talks About
&lt;/h2&gt;

&lt;p&gt;People talk about the digital divide all the time. But the conversation usually &lt;br&gt;
focuses on devices — "give students smartphones" or "build more computer labs."&lt;/p&gt;

&lt;p&gt;That misses the deeper problem.&lt;/p&gt;

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

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

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

&lt;p&gt;These two problems — internet dependency and language barrier — are what &lt;br&gt;
SparshAI was built to solve.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is SparshAI?
&lt;/h2&gt;

&lt;p&gt;SparshAI is a local AI tutoring system that runs entirely on a single laptop, &lt;br&gt;
with no internet connection required after the initial setup.&lt;/p&gt;

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

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

&lt;p&gt;No internet. No monthly fees. No cloud. No data leaving the room.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Gemma 4 Made This Possible
&lt;/h2&gt;

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

&lt;p&gt;Gemma 4 changed that equation completely.&lt;/p&gt;

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

&lt;p&gt;The Gemma 4 family has three main variants:&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;E2B and E4B&lt;/strong&gt; models are built for edge devices — phones, low-RAM laptops, &lt;br&gt;
even a Raspberry Pi. They are small, efficient, and designed to run without a GPU.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;31B Dense&lt;/strong&gt; model is a full-power model for high-end machines — great &lt;br&gt;
quality, but needs serious hardware.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;27B MoE&lt;/strong&gt; model is built for speed and reasoning, best suited for GPU setups.&lt;/p&gt;

&lt;p&gt;For SparshAI, I chose the &lt;strong&gt;E4B model&lt;/strong&gt; — the 4 billion parameter variant. &lt;br&gt;
This was not a default choice. It was a deliberate one.&lt;/p&gt;

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

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

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

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

&lt;p&gt;That is intentional model selection. Not picking what sounds most impressive — &lt;br&gt;
picking what actually works for the people you are building for.&lt;/p&gt;




&lt;h2&gt;
  
  
  The LENTERA Inspiration
&lt;/h2&gt;

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

&lt;p&gt;Their core insight stopped me in my tracks.&lt;/p&gt;

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

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

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

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




&lt;h2&gt;
  
  
  What I Actually Tested
&lt;/h2&gt;

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

&lt;p&gt;I want to be honest about what this was. It was not a formal study. It was not &lt;br&gt;
a controlled experiment. It was five curious kids, a laptop, and an afternoon.&lt;/p&gt;

&lt;p&gt;But what happened in that afternoon told me everything I needed to know.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The language thing worked better than I expected.&lt;/strong&gt;&lt;/p&gt;

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

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

&lt;p&gt;&lt;strong&gt;The patience factor is real.&lt;/strong&gt;&lt;/p&gt;

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

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

&lt;p&gt;&lt;strong&gt;The offline test was the most important one.&lt;/strong&gt;&lt;/p&gt;

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

&lt;p&gt;That is the whole point. A tool that works only when the internet works is not &lt;br&gt;
a tool for Sonbhadra. A tool that keeps working regardless of connectivity — &lt;br&gt;
that is something real.&lt;/p&gt;




&lt;h2&gt;
  
  
  What SparshAI Is Not
&lt;/h2&gt;

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

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

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

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




&lt;h2&gt;
  
  
  What Gemma 4 Unlocked That Nothing Else Could
&lt;/h2&gt;

&lt;p&gt;I want to step back and say this directly, because I think it gets lost in &lt;br&gt;
technical discussions.&lt;/p&gt;

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

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

&lt;p&gt;For a student from Sonbhadra trying to build something for Sonbhadra, that &lt;br&gt;
intersection is everything.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where SparshAI Goes Next
&lt;/h2&gt;

&lt;p&gt;This is still early. What I have right now is a working proof of concept that &lt;br&gt;
I have tested with five students on one afternoon.&lt;/p&gt;

&lt;p&gt;But I know what the next steps look like.&lt;/p&gt;

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

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

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




&lt;h2&gt;
  
  
  A Final Thought
&lt;/h2&gt;

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

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

&lt;p&gt;SparshAI has not changed my mind about the scale of that gap. It is still &lt;br&gt;
enormous. But it has changed my mind about whether technology can be part &lt;br&gt;
of bridging it.&lt;/p&gt;

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

&lt;p&gt;That is a door opening.&lt;/p&gt;

&lt;p&gt;And sometimes, a door is enough to start with.&lt;/p&gt;




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

</description>
      <category>devchallenge</category>
      <category>gemmachallenge</category>
      <category>gemma</category>
    </item>
  </channel>
</rss>
