<?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: Sasivarnan R</title>
    <description>The latest articles on DEV Community by Sasivarnan R (@sasivarnan).</description>
    <link>https://dev.to/sasivarnan</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4086313%2F1a220344-9767-42b1-81dd-c8e3afba9428.jpg</url>
      <title>DEV Community: Sasivarnan R</title>
      <link>https://dev.to/sasivarnan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sasivarnan"/>
    <language>en</language>
    <item>
      <title>Practice the Awkward Bit: rehearse conversations with local Gemma</title>
      <dc:creator>Sasivarnan R</dc:creator>
      <pubDate>Sat, 03 Oct 2026 19:27:05 +0000</pubDate>
      <link>https://dev.to/sasivarnan/practice-the-awkward-bit-rehearse-conversations-with-local-gemma-1kl0</link>
      <guid>https://dev.to/sasivarnan/practice-the-awkward-bit-rehearse-conversations-with-local-gemma-1kl0</guid>
      <description>&lt;p&gt;&lt;em&gt;A submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I’m an introvert, and sometimes the hardest part of a conversation is getting the first sentence out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Practice the Awkward Bit&lt;/strong&gt; gives you a quiet place to rehearse: decline an invitation, ask for something back, or join a conversation. Set the scene, choose how cooperative the other person is, and try a few replies.&lt;/p&gt;

&lt;p&gt;Gemma plays the other person. When you finish, it offers one thing you expressed clearly, one suggestion, and another way to say it. &lt;strong&gt;“Try this reply again”&lt;/strong&gt; takes you back to an earlier message so you can experiment.&lt;/p&gt;

&lt;p&gt;I built it with fellow introvert people in mind.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://practice-the-awkward-bit.sasivarnan.chatgpt.site" rel="noopener noreferrer"&gt;Try the app&lt;/a&gt; — currently private, pending access for judges.&lt;/p&gt;

&lt;p&gt;Use a desktop browser with WebGPU. Load the model, choose &lt;strong&gt;Decline an invitation&lt;/strong&gt;, and try:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Thanks for inviting me! I’m going to stay in tonight, but I’d like to join you another time.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Then ask for a reflection or retry your reply. The first model download is large and needs internet.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/sasivarnan/practice-the-awkward-bit" rel="noopener noreferrer"&gt;Source on GitHub&lt;/a&gt; · MIT license for the app.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;React, TypeScript, and Tailwind CSS 4 handle the interface. &lt;strong&gt;Gemma 2 2B&lt;/strong&gt; runs locally through &lt;a href="https://github.com/mlc-ai/web-llm" rel="noopener noreferrer"&gt;WebLLM&lt;/a&gt;, in a dedicated worker.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                  YOUR BROWSER
┌─────────────────────────────────────────────┐
│ React UI · Tailwind CSS 4                    │
│   Scene → conversation → reflection → retry │
│                 ⇅ messages                  │
│ Web Worker                                  │
│   WebLLM → Gemma 2 2B → WebGPU               │
│                 ↑                           │
│ IndexedDB: cached model assets              │
│                                             │
│ Conversation: memory by default             │
│   └─ optional localStorage save / text export│
└─────────────────────────────────────────────┘
          ↑ site and model downloads
     Hosting / model asset servers
     (no conversation inference requests)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Role-play and reflection use separate prompts. Reflection returns structured JSON, and the app checks that its quoted reply actually came from the user.&lt;/p&gt;

&lt;p&gt;Model loading, real replies, reflection, rewind, and save/restore worked in the desktop browser test. Tests, type checks, and the build passed. Feedback still sometimes invents details, so it needs judgment rather than blind acceptance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;These conversations can be personal. Running an open-weight model locally keeps the transcript out of an inference API and avoids a per-conversation API bill.&lt;/p&gt;

&lt;p&gt;I can also inspect the prompts and swap supported models. The tradeoff is a large download and dependence on the user’s hardware. This isn’t a fully offline install, and &lt;a href="https://ai.google.dev/gemma/terms" rel="noopener noreferrer"&gt;Gemma’s terms&lt;/a&gt; still apply.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/rahul_80cfa43302b/a-simple-react-hook-for-running-local-llms-via-webgpu-5234"&gt;Rahul’s post on browser-local LLMs&lt;/a&gt; helped frame the worker and loading experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best Use of Gemma:&lt;/strong&gt; Gemma generates both the conversation partner and the reflection.&lt;/p&gt;

&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;p&gt;Google Gemma, MLC AI/WebLLM, React, Tailwind CSS, lucide-react, and the Sites/Vinext starter.&lt;/p&gt;

&lt;p&gt;Codex helped build, debug, test, and draft this post.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
