<?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: Sasiru Virajith</title>
    <description>The latest articles on DEV Community by Sasiru Virajith (@sasiru_virajith).</description>
    <link>https://dev.to/sasiru_virajith</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%2F3949980%2Fba499fcf-7877-4ffb-aba6-d6ddbe43b43d.png</url>
      <title>DEV Community: Sasiru Virajith</title>
      <link>https://dev.to/sasiru_virajith</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sasiru_virajith"/>
    <language>en</language>
    <item>
      <title>OptiLearn - Powered by Google Gemma 4</title>
      <dc:creator>Sasiru Virajith</dc:creator>
      <pubDate>Mon, 25 May 2026 06:58:37 +0000</pubDate>
      <link>https://dev.to/sasiru_virajith/optilearn-powered-by-google-gemma-4-2c7m</link>
      <guid>https://dev.to/sasiru_virajith/optilearn-powered-by-google-gemma-4-2c7m</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: Build with Gemma 4&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The Spark Behind OptiLearn&lt;/strong&gt;&lt;br&gt;
Education in crisis-affected areas faces massive, systemic hurdles. Refugee camps often suffer from a severe lack of internet connectivity, scarce educational materials, and overwhelmed teachers managing large classrooms with vastly different student backgrounds. Modern, cloud-based AI tools are virtually useless in these environments because they require stable internet connections and ongoing infrastructure costs that these schools simply cannot afford.&lt;/p&gt;

&lt;p&gt;We realised that to truly democratise AI in education, we couldn't rely on the cloud. We needed to bring the AI directly to the edge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What It Actually Does&lt;/strong&gt;&lt;br&gt;
OptiLearn solves the connectivity barrier by running Gemma 4 entirely locally. It acts as a highly capable, always-available teaching assistant that empowers educators to optimise their teaching without ever needing to go online.&lt;/p&gt;

&lt;p&gt;Through OptiLearn, teachers in resource-constrained environments can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Personalised Multilingual Tutors: An Arabic-speaking student gets an Arabic tutor at a Grade 3 level; a Somali student gets a Somali tutor at a Grade 5 level—all happening simultaneously from the same local server.&lt;/li&gt;
&lt;li&gt;Live Class Translator: The teacher speaks, local Whisper transcribes it, and Gemma 4 translates it to every student's native language in real-time.&lt;/li&gt;
&lt;li&gt;Adaptive Quizzes: Questions automatically adjust to the student's level, tracking their mastery using Exponential Moving Average (EMA).&lt;/li&gt;
&lt;li&gt;Teacher Heatmaps: A colour-coded grid lets teachers instantly see every student's mastery across all topics, generating automatic alerts before a student falls behind.&lt;/li&gt;
&lt;li&gt;100% Local: Zero data leaves the classroom. It's completely private and offline.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ultimately, OptiLearn proves that cutting-edge AI can be leveraged for good, delivering better, more personalised learning experiences in the most disconnected parts of the world.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Architechture Diagrams:&lt;/strong&gt; &lt;a href="https://miro.com/app/board/uXjVHSbGyBQ=/?focusWidget=3458764672167765361&amp;amp;embedMode=view_only_without_ui&amp;amp;embedId=351779570391" rel="noopener noreferrer"&gt;https://miro.com/app/board/uXjVHSbGyBQ=/?focusWidget=3458764672167765361&amp;amp;embedMode=view_only_without_ui&amp;amp;embedId=351779570391&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Demo Video:&lt;/strong&gt; &lt;a href="https://drive.google.com/file/d/18AanaC6ifMvufp9F7wn-UT2ZXZwbMg94/view?usp=sharing" rel="noopener noreferrer"&gt;https://drive.google.com/file/d/18AanaC6ifMvufp9F7wn-UT2ZXZwbMg94/view?usp=sharing&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://opti-learn.com/" rel="noopener noreferrer"&gt;https://opti-learn.com/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/Ilakiancs/OptiLearn" rel="noopener noreferrer"&gt;https://github.com/Ilakiancs/OptiLearn&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Used Gemma 4
&lt;/h2&gt;

&lt;p&gt;We built OptiLearn around Gemma 4 E2B, running locally via Ollama.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Constraint: 2015 Hardware &amp;amp; Zero Internet&lt;/strong&gt;&lt;br&gt;
If we wanted this to work in a refugee camp, the AI couldn't rely on cloud API calls, nor could it require a massive GPU rig. We needed a model that could run efficiently on a donated 2015-era laptop with just 8GB of RAM, while still being smart enough to act as a pedagogical tutor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Gemma 4 E2B Specifically?&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Unmatched Efficiency:&lt;/strong&gt; E2B was the exact right fit. It allows us to process multiple student requests locally, loading in about 15 seconds on older hardware without a dedicated GPU.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Native Multilingual Support:&lt;/strong&gt; Refugee classrooms are incredibly diverse. Gemma 4 natively supports over 100 languages. Out of the box, we could deploy tutors in Arabic, Somali, Amharic, Tamil, and Tigrinya without relying on external translation APIs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Trauma-Aware Fine-Tuning:&lt;/strong&gt; Because the model runs locally, we also built a QLoRA fine-tuning pipeline (via Unsloth) in our repository. This allows the model to be explicitly trained on trauma-aware pedagogy using over 11,500 training examples, ensuring the AI never says "wrong" or "failed" to vulnerable students.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;(&lt;strong&gt;Note:&lt;/strong&gt; We also built a "Circuit Breaker" architecture. If the camp does get reliable internet, the system seamlessly falls back to the Google Gemini API to use the massive Gemma 4 26B model for richer translations, before silently failing back to the local E2B model when the connection drops).&lt;/p&gt;

&lt;p&gt;OptiLearn proves that cutting-edge AI doesn't just belong in data centers—it belongs at the edge, where it can actually change lives.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Team Name:&lt;/strong&gt; Opti5 Labs&lt;br&gt;
&lt;strong&gt;Team Members:&lt;/strong&gt; &lt;a class="mentioned-user" href="https://dev.to/ilakian"&gt;@ilakian&lt;/a&gt; (Ilakian Puvanendra), myself (Sasiru Virajith)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7fnzurmzk4bbwmepebqt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7fnzurmzk4bbwmepebqt.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

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