<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ashish Bodla on Medium]]></title>
        <description><![CDATA[Stories by Ashish Bodla on Medium]]></description>
        <link>https://medium.com/@ashishbodla?source=rss-6ee8643e0103------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gTVJmPWLnpc6TspF271rvg.png</url>
            <title>Stories by Ashish Bodla on Medium</title>
            <link>https://medium.com/@ashishbodla?source=rss-6ee8643e0103------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:02:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashishbodla/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Big Three Are Boring: Your Guide to the Frontier Models You’ve Never Heard Of]]></title>
            <link>https://medium.com/@ashishbodla/the-big-three-are-boring-your-guide-to-the-frontier-models-youve-never-heard-of-b1a4ce218ca1?source=rss-6ee8643e0103------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1a4ce218ca1</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[frontier-models]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Ashish Bodla]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 09:18:36 GMT</pubDate>
            <atom:updated>2026-11-10T09:18:36.504Z</atom:updated>
            <content:encoded><![CDATA[<h3>We all know GPT, Gemini, and Claude. It’s time to meet the brilliant, agile, and open-source challengers redefine what’s possible in AI.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AN58e7o2RtB_tOjK__NRhA.png" /></figure><p>We are living through the “Big Brand” era of Artificial Intelligence.</p><p>If you ask a person on the street to name an AI, they will say ChatGPT. If they are slightly more technical, they might add Gemini or Claude to the list. This makes sense. OpenAI, Google, and Anthropic have billions of dollars in marketing, huge existing user bases, and monolithic structures dedicated to making their models household names.</p><p>They are the Coke, Pepsi, and Dr. Pepper of the AI world.</p><p>But if you are only drinking what the big companies are pouring, <strong>you are missing the vintage wines.</strong></p><p>While the giants focus on mass-market generalists and corporate safety, a thriving ecosystem of “boutique” AI companies, research labs, and open-source communities is building extraordinary frontier models that are faster, smarter in specialized tasks, and often completely free to use.</p><p>Common people only know the common models. It’s time to change that. Welcome to the other frontier.</p><blockquote>“If you are only drinking what the big companies are pouring, you are missing the vintage wines.”</blockquote><h3>Why Look Beyond the Giants?</h3><p>You might wonder: “If GPT-4o works, why should I care about some model made by a startup in Paris or Beijing?”</p><p>You should care because innovation doesn’t love monopolies. The smaller, “challenger” models offer unique advantages that the monoliths cannot match:</p><ol><li><strong>Specialization:</strong> Small labs build models designed to be world-class at one thing (like coding, math, or low-latency chat), whereas big models are forced to be “good enough” at everything.</li><li><strong>Agility:</strong> A startup can drop a state-of-the-art model on a random Tuesday based on a new research paper. Giants have three-month bureaucratic safety review pipelines.</li><li><strong>Cost &amp; Performance:</strong> Challenger models are often significantly cheaper (or free) and can run on much weaker hardware, making AI accessible to everyone.</li></ol><h3>The Frontier Challengers You Need to Know</h3><p>Let’s meet the labs that are keeping the giants awake at night.</p><h3>1. Mistral AI (The Efficient Mavericks)</h3><p><strong>Who they are:</strong> A French lab founded by alumni from Meta and DeepMind. They have legendary status in the AI community for punching far above their weight.</p><p><strong>Why they matter:</strong> Mistral specializes in <strong>efficiency</strong>. They proved that you don’t need a trillion parameters to have a smart AI. They released models like <strong>Mistral 7B</strong> and <strong>Mixtral 8x7B</strong> which outperformed much larger competitors.</p><p>Their latest flagship, <strong>Mistral Large</strong>, is a direct competitor to GPT-4 in reasoning and multilingual tasks, but it retains their signature agility and cost-effectiveness. Mistral is the go-to for developers who need high power with low overhead.</p><h3>2. Alibaba (The Specialized Powerhouse)</h3><p><strong>Who they are:</strong> The research arm of the Chinese e-commerce giant. They have been quietly releasing some of the strongest open-source models in the world.</p><p><strong>Why they matter:</strong> Alibaba’s <strong>Qwen</strong> model series is a beast, particularly in <strong>coding and mathematics</strong>. If you need an AI to debug a complex script or solve a specialized engineering problem, Qwen often outperforms the brand names.</p><p>Qwen models consistently top the open-source benchmarks (like the Hugging Face Leaderboard). They offer a range of sizes, from on-device models to massive frontier-class systems, ensuring they have a specialized tool for every niche.</p><h3><strong>3. DeepSeek (The Reasoning Revolutionaries)</strong></h3><p><strong>Who they are:</strong> A strong research-driven AI startup that came out of nowhere to disrupt the reasoning benchmark scene.</p><p><strong>Why they matter:</strong> DeepSeek focuses heavily on <strong>chain-of-thought</strong> and <strong>complex logical reasoning</strong>. They gained massive traction with models designed explicitly to “think through” problems before answering, mimicking human deliberation.</p><p>If you are working on philosophical, scientific, or highly complex strategic problems where a simple “next-token” prediction doesn’t work, DeepSeek is a contender you cannot ignore.</p><h3>How to Try Them Without Being a Coder</h3><p>The biggest barrier to entry for these models is that they don’t always have a shiny website. They are often dropped as &quot;weights&quot; on a site called <strong>Hugging Face</strong>.</p><p>Hugging Face is the “GitHub of AI,” where everyone shares their models. You don’t need to be a developer to explore it.</p><h4>The Easiest Way to Try Them: Hugging Face Chat</h4><p>Hugging Face hosts a free chat interface where you can immediately use almost all the models mentioned above. You just select the model from a dropdown menu.</p><ol><li>Go to <strong>huggingface.co/chat</strong>.</li><li>Look for the model selection menu (often labeled “Models”).</li><li>Choose Mistral Large, Qwen 72B, or DeepSeek.</li></ol><h3>The Final Thought: Diversity is Strength</h3><p>The most popular models are not always the best models for your specific need.</p><p>We are watching the AI landscape split into two worlds. In one world, you have the managed, sanitized, walled-garden models of the big corps. They are safe, general, and predictable.</p><p>In the other world, you have the wild, blooming jungle of open frontier models. They are niche, brilliant, aggressive, and efficient.</p><p>If you only live in the walled garden, your capabilities are limited by what that company decides to allow. If you want to maximize your potential, you need to learn to navigate the jungle.</p><p>The next great AI breakthrough will likely not come from a billion-dollar marketing budget. It will come from a specialized lab you have never heard of. It’s time to start paying attention.</p><p>Final list of other models too</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VKXKJDGEn0eBhCYLRX6frg.png" /></figure><p>Thanks to Gemini for curating the content required for thia article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1a4ce218ca1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transformers & LLMs — Part 11: The Reasoning Revolution — Moving from “Vibes” to Logic]]></title>
            <link>https://medium.com/@ashishbodla/transformers-llms-part-11-the-reasoning-revolution-moving-from-vibes-to-logic-3ccbc859ebe9?source=rss-6ee8643e0103------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ccbc859ebe9</guid>
            <category><![CDATA[metrics]]></category>
            <category><![CDATA[reasoning-model]]></category>
            <category><![CDATA[chain-of-thought]]></category>
            <category><![CDATA[llm-benchmarks]]></category>
            <dc:creator><![CDATA[Ashish Bodla]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 10:45:20 GMT</pubDate>
            <atom:updated>2026-04-16T10:45:20.362Z</atom:updated>
            <content:encoded><![CDATA[<p>Until now, we have been discussing what we call <strong>“Vanilla” LLMs</strong>. These models are incredible at structure, coding, and poetry, but they are essentially world-class “next-token predictors.” They excel at sounding plausible, but they often struggle when a problem requires deep, multi-step logic.</p><p>In this deep dive, we explore the transition from <strong>System 1</strong> thinking (fast, intuitive, reactive) to <strong>System 2</strong> thinking (slow, deliberate, logical) in AI.</p><h3>1. Why Vanilla LLMs Hit the Wall</h3><p>Even a perfectly aligned Llama 3 or GPT-4o has inherent weaknesses:</p><ul><li><strong>Limited Reasoning:</strong> They can get “lost” in complex math problems because they are trained to predict the very next word, not to plan ten steps ahead.</li><li><strong>Static Knowledge:</strong> Their world ends at their “cutoff date.” If an election happened yesterday, a vanilla LLM is blissfully unaware.</li><li><strong>“All Talk, No Action”:</strong> They can describe how to buy a stock, but they can’t actually execute the trade.</li><li><strong>Evaluation Difficulty:</strong> Traditional metrics like <strong>BLEU</strong> (for translation) or <strong>ROUGE</strong> (for summarization) are too rigid for the free-form, creative intelligence of modern models.</li></ul><h3>2. Defining “Reasoning” in AI</h3><p>There is no single textbook definition of AI reasoning, but we can define it functionally as <strong>the ability to solve a problem through a multi-step process.</strong></p><p>Think of it like taking a difficult exam. You don’t just look at the question and blurt out “42.” You break the problem down:</p><ol><li>Identify the variables.</li><li>Recall the relevant formula.</li><li>Perform the calculation.</li><li>Double-check for errors.</li></ol><p>Reasoning models do exactly this. Instead of a “blanket answer,” they generate a <strong>Reasoning Chain</strong>.</p><h3>3. The Foundational Idea: Chain of Thought (CoT)</h3><p>The breakthrough wasn’t a new architecture, but a new way of using the existing one. By encouraging a model to “Think Step by Step,” we effectively increase its <strong>Compute Budget</strong>.</p><p>Each token the model generates requires a full “forward pass” of the network. When a model output is 10 tokens long, it has used a certain amount of “brain power.” If we force it to generate 500 tokens of “thinking” before giving the answer, we have effectively given it <strong>50x more compute</strong> to arrive at the solution.</p><h3>4. The 2024–2025 Timeline: The Race for “o1”</h3><p>While reasoning has been a research topic for years, “Reasoning Models” as a product category only exploded recently:</p><ul><li><strong>September 2024:</strong> OpenAI releases <strong>o1-preview</strong>, the first mainstream model that “thinks” before it speaks.</li><li><strong>December 2024:</strong> Google releases <strong>Gemini 2.0 Flash Thinking</strong>.</li><li><strong>January 2025:</strong> <strong>DeepSeek R1</strong> is released, matching o1’s performance with an open-source (and radically cheaper) method, sending shockwaves through the industry.</li></ul><h3>5. The User Experience: “Thinking” Tokens</h3><p>When you use ChatGPT or Gemini today, you often see a UI element that says <strong>“Thinking…”</strong> This isn’t just a loading screen; the model is actually generating a “Hidden Chain of Thought.”</p><p><strong>Why hide the reasoning?</strong></p><ol><li><strong>Readability:</strong> Users don’t always want to read five pages of “internal monologue.”</li><li><strong>Proprietary Edge:</strong> Labs don’t want competitors training their own models on these high-quality reasoning chains (Distillation).</li><li><strong>Cost:</strong> You are often charged for these “invisible” tokens because they still consume GPU power.</li></ol><h3>6. Evaluating Reasoning: The $pass@k$ Metric</h3><p>In vanilla LLMs, we care about “Exact Match.” In reasoning, we care about <strong>capability</strong>. The gold standard metric is <strong>pass@k</strong>.</p><h3>The Problem</h3><p>If you only ask a model a question once, it might get it wrong by pure fluke. To get a stable estimate of its intelligence, we ask it n times and see how many it gets right (c). But we want to know: <em>“If I gave this model k attempts, what is the probability it would get at least one right?”</em></p><h3>The Derivation</h3><p>To avoid noisy estimates, we use sampling without replacement. If we have n total samples and c correct ones, the probability of <em>all</em> k selected samples being <strong>incorrect</strong> is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*Dtamh0NHwYECCErpp0hscA.png" /></figure><p>Therefore, the probability of at least <strong>one</strong> being correct is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*34U4C2QPUF6xWHCjlwM2dg.png" /></figure><h3>7. The Temperature Trade-off</h3><p>To calculate pass@k, you need diversity in your answers. This is controlled by <strong>Temperature (T)</strong>.</p><ul><li><strong>T = 0 (Deterministic):</strong> The model always says the same thing. pass@k will never increase, no matter how many samples you take.</li><li><strong>Low T (e.g., 0.4):</strong> Accurate but boring. Good for standard math.</li><li><strong>High T (e.g., 0.8+):</strong> Wildly diverse. This is where $pass@k$ shines — the model might fail 9 times but find a brilliant, “outside-the-box” solution on the 10th try.</li></ul><p><strong>Summary:</strong> We have moved past the era of LLMs that just “know” things. We are entering the era of LLMs that “work” through things.</p><p>Thanks to Gemini for organising and cleaning my drafts!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ccbc859ebe9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analyzed Every #1 Song Since 1995 and Found a Pattern That Will Make You Question Your Childhood]]></title>
            <link>https://medium.com/@ashishbodla/analyzed-every-1-song-since-1995-and-found-a-pattern-that-will-make-you-question-your-childhood-5af85131f86a?source=rss-6ee8643e0103------2</link>
            <guid isPermaLink="false">https://medium.com/p/5af85131f86a</guid>
            <category><![CDATA[best-song]]></category>
            <category><![CDATA[pop-culture]]></category>
            <category><![CDATA[nostalgia]]></category>
            <category><![CDATA[history]]></category>
            <dc:creator><![CDATA[Ashish Bodla]]></dc:creator>
            <pubDate>Mon, 13 Apr 2026 13:36:14 GMT</pubDate>
            <atom:updated>2026-04-13T13:36:14.688Z</atom:updated>
            <content:encoded><![CDATA[<p>Stop what you’re doing and go check what the #1 song was the year you graduated high school. Does it feel like a core memory, or does it feel like a warning?</p><p>I’ve collated the definitive anthems for every year from 1995 to today, pairing them with the breaking news stories that defined those years. From the “Cher Effect” of 1999 to the “Digital Detox” movement of 2026, the correlation between what we hear and how we live is closer than you think.</p><p>Fair warning: this list contains extreme levels of nostalgia, some truly “cringe” 2000s trivia, and a terrifying reminder of how fast 31 years actually goes. Let’s dive into the soundtrack of our lives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gpfd6jIi60grOvgLaSVxOQ.png" /></figure><h3>Part 1: The Analog Sunset (1995–1999)</h3><p><strong>1995: “Gangsta’s Paradise” — Coolio ft. L.V.</strong></p><ul><li><strong>The News:</strong> <strong>Windows 95</strong> launches, changing computing forever.</li><li><strong>The Vibe:</strong> As we began booting up the digital world, the gritty, orchestral realism of this track provided a grounded contrast to the shiny tech promises of the 90s.</li><li><strong>💡 Trivia:</strong> Stevie Wonder only allowed the sample if Coolio removed all profanity from the track. It became a rare “clean” rap masterpiece.</li></ul><p><strong>1996: “Macarena” — Los Del Rio</strong></p><ul><li><strong>The News:</strong> <strong>Dolly the Sheep</strong> is the first mammal cloned from an adult cell.</li><li><strong>The Vibe:</strong> A year of scientific “magic.” We needed a universal language, and we found it in a synchronized dance that conquered every wedding and school gym on the planet.</li><li><strong>💡 Trivia:</strong> The song is actually about a girl cheating on her boyfriend with two friends while he’s being drafted. We were all happily dancing to a heartbreak scandal.</li></ul><p><strong>1997: “Candle in the Wind 1997” — Elton John</strong></p><ul><li><strong>The News:</strong> The tragic death of <strong>Princess Diana</strong>.</li><li><strong>The Vibe:</strong> A moment of total global vulnerability. The song <em>was</em> the news, capturing a rare period where the entire world mourned as one.</li><li><strong>💡 Trivia:</strong> It remains the best-selling single in the history of the UK and US charts (post-1950s).</li></ul><p><strong>1998: “Too Close” — Next</strong></p><ul><li><strong>The News:</strong> <strong>Google</strong> is officially incorporated in a California garage.</li><li><strong>The Vibe:</strong> While Larry and Sergey were indexing the world’s information, the world was leaning into smooth, provocative R&amp;B.</li><li><strong>💡 Trivia:</strong> The “physical reaction” described in the lyrics is exactly what you think it is. Listening to this as an adult hits differently than it did on the radio at age three.</li></ul><p><strong>1999: “Believe” — Cher</strong></p><ul><li><strong>The News:</strong> <strong>Y2K hysteria</strong> peaks as we fear every computer will crash at midnight.</li><li><strong>The Vibe:</strong> We were nervous about machines. Cher leaned into it, using Auto-Tune to make the human voice sound robotic, essentially “sonically prepping” us for the new millennium.</li><li><strong>💡 Trivia:</strong> The producers originally lied and said they used a “vocoder” to keep the Auto-Tune secret a mystery from rival studios.</li></ul><h3>Part 2: The Ringtone &amp; Reality TV Era (2000–2009)</h3><p><strong>2001: “Hanging by a Moment” — Lifehouse</strong></p><ul><li><strong>The News:</strong> <strong>9/11</strong> changes the world; <strong>Wikipedia</strong> is launched.</li><li><strong>The Vibe:</strong> In a post-9/11 world, the mood shifted from pop-gloss to earnest, yearning rock. We were all looking for something to hold onto.</li><li><strong>💡 Trivia:</strong> This was the most-played song on the radio in 2001, despite never actually hitting #1 on the weekly Billboard Hot 100.</li></ul><p><strong>2004: “Yeah!” — Usher ft. Lil Jon &amp; Ludacris</strong></p><ul><li><strong>The News:</strong> <strong>Facebook</strong> is founded in a Harvard dorm.</li><li><strong>The Vibe:</strong> High-energy and socially explosive. Just as we were beginning to “connect” online, “Crunk” music gave us the ultimate communal club anthem.</li><li><strong>💡 Trivia:</strong> The song was a last-minute addition to the album because the label felt it was missing a “club banger.” It stayed at #1 for 12 weeks.</li></ul><p><strong>2007: “Irreplaceable” — Beyoncé</strong></p><ul><li><strong>The News:</strong> Steve Jobs unveils the first <strong>iPhone</strong>.</li><li><strong>The Vibe:</strong> “To the left, to the left.” Just as the iPhone was about to make everyone else “replaceable” with an app, Beyoncé gave us the ultimate anthem of self-worth.</li><li><strong>💡 Trivia:</strong> The song was originally written as a country track before it was reworked into the R&amp;B mid-tempo smash we know.</li></ul><p><strong>2008: “Low” — Flo Rida ft. T-Pain</strong></p><ul><li><strong>The News:</strong> The <strong>Global Financial Crisis</strong> hits; the housing bubble bursts.</li><li><strong>The Vibe:</strong> Pure survivalist escapism. As the markets hit record “lows,” we were all screaming about “apple bottom jeans.” We danced while the economy burned.</li><li><strong>💡 Trivia:</strong> This was the first song to ever sell over 4 million digital copies in the US.</li></ul><h3>Part 3: The Era of Viral Phenomena (2010–2019)</h3><p><strong>2012: “Somebody That I Used to Know” — Gotye ft. Kimbra</strong></p><ul><li><strong>The News:</strong> The <strong>Curiosity Rover</strong> lands on Mars.</li><li><strong>The Vibe:</strong> We were exploring the Red Planet, but we were still obsessed with the raw, “low-fi” intimacy of a breakup. It was a reminder that tech scales, but human pain stays the same size.</li><li><strong>💡 Trivia:</strong> Gotye recorded the vocals in a barn on his parents’ farm in Australia. The “xylophone” sound is actually a sample from a 1967 Brazilian track.</li></ul><p><strong>2015: “Uptown Funk” — Mark Ronson ft. Bruno Mars</strong></p><ul><li><strong>The News:</strong> <strong>Same-sex marriage</strong> is legalized in the US.</li><li><strong>The Vibe:</strong> Pure, unadulterated celebration. This song felt like the global victory lap for a world that was (briefly) feeling much more inclusive.</li><li><strong>💡 Trivia:</strong> It took 11 months and over 100 versions to get the “funk” exactly right. They almost gave up on the song multiple times.</li></ul><p><strong>2019: “Old Town Road” — Lil Nas X</strong></p><ul><li><strong>The News:</strong> Scientists capture the first-ever image of a <strong>Black Hole</strong>.</li><li><strong>The Vibe:</strong> Boundaries were disappearing. A “country-trap” song created by a kid on the internet using a $30 beat became the longest-running #1 in history.</li><li><strong>💡 Trivia:</strong> The song samples “34 Ghosts IV” by Nine Inch Nails, making Trent Reznor an unlikely Grammy winner in the country/rap category.</li></ul><h3>Part 4: The Great Disruption &amp; The Return (2020–2026)</h3><p><strong>2020: “Blinding Lights” — The Weeknd</strong></p><ul><li><strong>The News:</strong> The <strong>COVID-19 Pandemic</strong> and global lockdowns.</li><li><strong>The Vibe:</strong> Locked in our houses, we craved the 80s-neon glow of the “outside.” The song’s lyrics about being “blinded” felt like a metaphor for our digital isolation.</li><li><strong>💡 Trivia:</strong> It is now the most-streamed song in Spotify history, surpassing 4 billion streams.</li></ul><p><strong>2024: “Cruel Summer” — Taylor Swift</strong></p><ul><li><strong>The News:</strong> The explosion of <strong>Generative AI</strong> and a massive global election year.</li><li><strong>The Vibe:</strong> Even though the song was five years old, its resurgence mirrored a world looking for “human” eras in an increasingly AI-driven landscape.</li><li><strong>💡 Trivia:</strong> This is the first time in history a non-holiday “catalogue” track from years prior became the #1 song of a current year due to a live tour.</li></ul><p><strong>2026 (Current): “Opalite” — Taylor Swift</strong></p><ul><li><strong>The News:</strong> The <strong>“Digital Detox”</strong> movement gains steam as people ditch smartphones for “dumb” phones.</li><li><strong>The Vibe:</strong> We’ve reached peak tech saturation. “Opalite” is a shimmering, acoustic-leaning track that has become the anthem for the “Analog Revival” movement.</li><li><strong>💡 Trivia:</strong> The music video was shot entirely on 35mm film with no CGI, a direct nod to the current world-wide rejection of AI-generated aesthetics.</li></ul><h3>The Pattern</h3><p>When you look at this list, you see the cycle: we move from <strong>Innovation</strong> (1995) to <strong>Hysteria</strong> (1999), from <strong>Escapism</strong> (2008) to <strong>Isolation</strong> (2020), and finally to <strong>Simplification</strong> (2026).</p><p>We don’t just listen to music to hear a beat; we listen to find a soundtrack that makes the news cycle bearable. If 1995 was the sound of a dial-up modem, 2026 is the sound of us finally unplugging the router.</p><p>Let me know if you found any pattern.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5af85131f86a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Guessing Which LLM Model Will Run on Your Machine — I Built a Tool That Tells You]]></title>
            <link>https://medium.com/@ashishbodla/stop-guessing-which-ai-model-will-run-on-your-machine-i-built-a-tool-that-tells-you-4e2161455e9a?source=rss-6ee8643e0103------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e2161455e9a</guid>
            <category><![CDATA[computer-hardware]]></category>
            <category><![CDATA[outofmemoryerror]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[hugging-face]]></category>
            <dc:creator><![CDATA[Ashish Bodla]]></dc:creator>
            <pubDate>Tue, 24 Mar 2026 10:01:51 GMT</pubDate>
            <atom:updated>2026-04-01T06:20:02.304Z</atom:updated>
            <content:encoded><![CDATA[<h3>I was tired of downloading 8GB model files only to get an “Out of Memory” error. So I built a recommender that scores 500+ HuggingFace models against your actual hardware.</h3><p>If you’ve ever tried running a Large Language Model (LLM) locally, you know the cycle of pain:</p><ol><li>You find a promising model on HuggingFace.</li><li>You download it (20 minutes later…).</li><li>You try to load it.</li><li>torch.cuda.OutOfMemoryError — or worse, your laptop freezes.</li><li><strong>Repeat.</strong></li></ol><p>After the third time this happened to me, I decided to solve it properly. What if a tool could <strong>automatically detect my hardware</strong> and tell me — <em>before</em> downloading anything — exactly which models would run smoothly, which would barely fit, and which were a total waste of time?</p><p>That’s what I built. And today, I’m open-sourcing it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GQO3EwSI4GBfP7I8KahWKA.png" /></figure><h3>What the Tool Does</h3><p>The <strong>HuggingFace Model Recommender</strong> is a Python tool (available as both a Jupyter notebook and a standalone CLI) designed to take the guesswork out of local AI.</p><p>It performs a four-step diagnostic:</p><ul><li><strong>Hardware Detection:</strong> It scans your CPU, RAM, and GPU (NVIDIA CUDA, Apple Silicon MPS, or CPU-only).</li><li><strong>Memory Audit:</strong> It identifies the “RAM hogs” on your system, listing the top 10 processes so you know what to close.</li><li><strong>Model Scanning:</strong> It parses 500+ text-generation models from a bundled database or live from HuggingFace.</li><li><strong>Multi-Dimensional Scoring:</strong> Every model is ranked across four dimensions: <strong>Fit, Quality, Speed, and Context.</strong></li></ul><p>The result is a clear hardware profile and a verdict:</p><p>=======================================================<br> SYSTEM HARDWARE PROFILE<br>=======================================================<br> CPU : arm<br> RAM : 32.0 GB total / 13.7 GB available<br> Device : MPS (Apple Silicon)<br> Model VRAM : 22.4 GB budget / 9.6 GB free<br>=======================================================</p><p>RAM in use: 18.3 GB (57.2% of total)<br> — — — — — — — — — — — — — — — — — — — — — — — — — — — -<br> TOP 10 RAM-CONSUMING PROCESSES<br> — — — — — — — — — — — — — — — — — — — — — — — — — — — -<br> Process PID RAM (GB)<br> Code Helper (Plugin) 87705 2.70<br> fileproviderd 1624 1.01<br> Microsoft Teams 15921 0.86</p><p>💡 Tip: Close heavy processes above to fit larger models.</p><p>The tool then gives you concrete recommendations based on your real-time “VRAM budget”:</p><blockquote><strong><em>Best Overall:</em></strong><em> Qwen/Qwen3–4B-Instruct</em></blockquote><blockquote>GGUF Q4_K_M | 4.02B params | VRAM: 2.1GB | Score: 96.7/100</blockquote><h3>The Problem: Model Selection is Broken</h3><p>HuggingFace hosts over 800,000 models. Even if you filter for text generation, you’re left with thousands of options. Each model comes in different formats (full precision, GGUF, GPTQ, AWQ) and quantization levels (Q8, Q4, Q2…).</p><p><strong>The metadata is a mess.</strong> Some models list parameter counts; some don’t. Some have VRAM estimates; most don’t. The key question — <em>“Will this actually run on my machine?”</em> — is left entirely to the user.</p><p>I’ve seen colleagues download 70B parameter models on a 16GB MacBook. I’ve seen people spend hours setting up llama.cpp only to realize their choice was mathematically impossible. The information exists to predict this; it just isn&#39;t being surfaced.</p><h3>The Solution: A Scoring Engine</h3><p>To solve this, I built a scoring engine that ranks models from 0 to 100 based on a weighted formula:</p><p>Score = (Fit * 0.40) + (Quality * 0.25) + (Speed * 0.25) + (Context *0.10)</p><h3>1. Fit Score (40%) — The Gatekeeper</h3><p>This is the most critical metric. It compares the model’s estimated VRAM requirement against your available memory. If the ratio is &gt;100%, the score drops to zero. A model with 100/100 Quality is worthless if it won’t load.</p><h3>2. Quality Score (25%) — Community Signal</h3><p>Since I can’t run a benchmark on every model, I use community validation as a proxy:</p><ul><li><strong>Downloads (60%)</strong></li><li><strong>Likes (30%)</strong></li><li><strong>Trending Status (10%)</strong></li></ul><h3>3. Speed Score (25%) — Inference Latency</h3><p>This estimates how fast the model will “talk” back. Smaller models and quantized formats (GGUF/GPTQ) get significant bonuses here, as they process tokens much faster on consumer hardware.</p><h3>How VRAM Estimation Works</h3><p>The magic is in the math. For every model, we calculate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBKTZcf6c5T1mpbQfwPIug.png" /></figure><p>The <strong>1.15</strong> is a crucial overhead factor for the KV cache and runtime activations. The bytes_per_parameter varies wildly based on quantization:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cs5QV618wRa3yioRItJbnA.png" /></figure><p><strong>Quantization is a superpower.</strong> Switching from FP16 to Q4_K_M allows you to run a model <strong>3.5x larger</strong> on the same hardware with almost zero noticeable loss in logic.</p><h3>Two Ways to Use It</h3><h3>Option 1: The Visual Notebook</h3><p>The Jupyter version provides a color-coded interactive table. 🟢 <strong>Dark Green</strong> models are “Excellent” (Score 80+), while 🔴 <strong>Red</strong> models are “Won’t Run.” It’s perfect for exploring the landscape of what your machine can handle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JMcW2vwucm3A4vYmxclvoA.png" /><figcaption>Sample Jupyter Notebook output</figcaption></figure><h3>Option 2: The Scriptable CLI</h3><p>For the power users, the CLI version works on macOS, Linux, and Windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xjf2vqwubLiRJDI1U2qLw.png" /></figure><h3>What I Learned Building This</h3><ol><li><strong>Available RAM &gt; Total RAM:</strong> A 32GB MacBook with Chrome and Slack open only has ~14GB free. Many users see “32GB” in their settings and assume they can load a huge model. They can’t.</li><li><strong>Corporate Networks are Obstacles:</strong> Many corporate firewalls block HuggingFace. I included a bundled JSON database of 593 pre-analyzed models so the tool works 100% offline.</li><li><strong>Metadata Inconsistency:</strong> Some models report parameters in their metadata; others hide them in the filename. Building a robust parsing layer was the hardest part of this project.</li></ol><h3>Final Thoughts</h3><p>Local AI is becoming mainstream. Apple Silicon, gaming GPUs, and even modern CPUs are now capable of running powerful assistants. But the “which model?” question remains frustratingly manual.</p><p>If this tool saves even one person from a 20-minute download followed by an OOM crash, it was worth the 600 lines of Python.</p><h3>Try it yourself</h3><p>The tool is open-source and ready for you to poke at:</p><p><a href="https://github.com/Ashishbodla/huggingface-model-recommender.git">https://github.com/Ashishbodla/huggingface-model-recommender.git</a></p><p><em>If you found this useful, feel free to give the repo a ⭐. Have ideas for the scoring algorithm? Drop a comment below!</em></p><p>This was possible with the help of Github Copilot and Google Gemini inputs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e2161455e9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From GPU-Crushing to Consumer-Friendly: A Guide to PEFT, LoRA, and QLoRA]]></title>
            <link>https://medium.com/@ashishbodla/from-gpu-crushing-to-consumer-friendly-a-guide-to-peft-lora-and-qlora-43e471b1504e?source=rss-6ee8643e0103------2</link>
            <guid isPermaLink="false">https://medium.com/p/43e471b1504e</guid>
            <category><![CDATA[lora]]></category>
            <category><![CDATA[gpu-computing]]></category>
            <category><![CDATA[qlora]]></category>
            <category><![CDATA[peft]]></category>
            <dc:creator><![CDATA[Ashish Bodla]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 11:31:21 GMT</pubDate>
            <atom:updated>2026-03-23T11:31:21.783Z</atom:updated>
            <content:encoded><![CDATA[<p>I always confuse between these fine tuning techniques. So, I decided write a blog which helps and other who are in same boat as me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*PHxwD1Jl9qAASVnOLMbMFg.png" /></figure><p>Fine-tuning a Large Language Model (LLM) used to be a luxury reserved for tech giants with “Infinite GPU” budgets. If you tried to fine-tune a 70B parameter model on your local machine, your GPU wouldn’t just crash — it might actually try to file for divorce.</p><p>But things have changed. Enter the world of <strong>Parameter-Efficient Fine-Tuning (PEFT)</strong>.</p><p>If you’ve been confused about how these techniques differ, you’re in the right place. Let’s demystify the tech that’s making AI democratization possible.</p><h3>1. The Big Picture: What is PEFT?</h3><p><strong>PEFT (Parameter-Efficient Fine-Tuning)</strong> is not a specific algorithm; it is an <strong>umbrella term</strong>.</p><p>In “Full Fine-Tuning,” you update every single parameter in a model. If the model has 7 billion parameters, you’re calculating gradients for all 7 billion. It’s slow, expensive, and requires massive VRAM.</p><p><strong>PEFT</strong> techniques say: <em>“What if we only touched 1% of the parameters?”</em> By freezing the majority of the pre-trained model and only training a tiny “add-on” layer, we get 99% of the performance for a fraction of the cost.</p><h3>2. LoRA: The “Smart Matrix” Hack</h3><p><strong>LoRA (Low-Rank Adaptation)</strong> is the most popular technique under the PEFT umbrella.</p><h3>How it works:</h3><p>Instead of changing the massive weight matrices (W) of the original model, LoRA assumes that the changes needed for a new task have a “low intrinsic rank.”</p><p>Mathematically, it represents the update Delta W as the product of two much smaller matrices, A and B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*PUuz_78w_sxe06IqA1nIAA.png" /></figure><h3>The Analogy:</h3><p>Imagine you have a 1,000-page encyclopedia (the base model). Instead of rewriting every page to update it, you just attach a small <strong>sticky note</strong> (the LoRA adapter) to the margin of the relevant pages. When you read the book, you read the original text plus the note.</p><ul><li><strong>Pro:</strong> The “sticky note” is tiny. You only save the notes, not the whole book.</li><li><strong>Pro:</strong> You can swap notes instantly to turn your “Legal Assistant AI” into a “Creative Writing AI.”</li></ul><h3>3. QLoRA: LoRA on a Diet</h3><p>If LoRA made fine-tuning accessible, <strong>QLoRA (Quantized LoRA)</strong> made it universal.</p><h3>How it works:</h3><p>QLoRA takes LoRA and adds <strong>Quantization</strong>. Normally, model weights are stored in 16-bit or 32-bit floats. QLoRA squashes the base model down to <strong>4-bit</strong> precision.</p><p>It uses three clever tricks:</p><ol><li><strong>4-bit NormalFloat (NF4):</strong> A data type optimized for normally distributed weights.</li><li><strong>Double Quantization:</strong> Quantizing the quantization constants (yes, meta-compression).</li><li><strong>Paged Optimizers:</strong> Using CPU RAM as a “spillover” buffer to prevent out-of-memory errors.</li></ol><h3>The Result:</h3><p>You can now fine-tune a massive model (like Llama 3) on a single consumer-grade GPU (like an RTX 3090 or 4090). It’s the ultimate “do more with less” strategy.</p><h3>4. Other PEFT Techniques You Should Know</h3><p>While LoRA is the star, it has some cousins:</p><ul><li><strong>Prompt Tuning:</strong> You keep the model frozen and only train a “soft prompt” — a sequence of continuous vectors added to the input. It’s like finding the perfect “magic words” to trigger the model’s knowledge.</li><li><strong>Prefix Tuning:</strong> Similar to prompt tuning, but you add trainable parameters to every layer of the model’s hidden states, not just the input.</li><li><strong>Adapters:</strong> You insert small new layers (bottleneck layers) between existing layers of the Transformer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*esbQhZiNEW8nOs7qIhucBg.png" /></figure><h3>Which one should you use?</h3><ol><li><strong>Use LoRA</strong> if you have decent hardware (e.g., an A100 or several 3090s) and want the best balance of speed and performance.</li><li><strong>Use QLoRA</strong> if you are working on a budget or a single GPU and want to fit a large model into limited VRAM.</li><li><strong>Use Full Fine-Tuning</strong> only if you are a research lab or a billion-dollar company trying to build a fundamental base model.</li></ol><h3>Conclusion</h3><p>The “confusion” usually stems from the fact that these terms overlap. Just remember: <strong>PEFT</strong> is the goal (efficiency), <strong>LoRA</strong> is the method (math trick), and <strong>QLoRA</strong> is the optimization (compression).</p><p>Now go forth and fine-tune! Your GPU will thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43e471b1504e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transformers & LLMs — Part 10: The RLHF Deep Dive — PPO, Reward Hacking, and the DPO Revolution]]></title>
            <link>https://medium.com/@ashishbodla/transformers-llms-part-10-the-rlhf-deep-dive-ppo-reward-hacking-and-the-dpo-revolution-297716da4690?source=rss-6ee8643e0103------2</link>
            <guid isPermaLink="false">https://medium.com/p/297716da4690</guid>
            <category><![CDATA[proximal-policy]]></category>
            <category><![CDATA[reward-modeling]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <dc:creator><![CDATA[Ashish Bodla]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 07:51:51 GMT</pubDate>
            <atom:updated>2026-03-07T07:51:51.954Z</atom:updated>
            <content:encoded><![CDATA[<p>In the previous stages of the LLM lifecycle, we took a raw model and taught it the “facts” (Pre-training) and the “format” (Supervised Fine-Tuning). But even the most obedient SFT model can be a bit… robotic. It might be technically correct but overly verbose, slightly rude, or prone to hallucinating just to please you.</p><p>To cross the finish line, we need <strong>Preference Tuning.</strong> This is the art of teaching a model not just to speak, but to speak <em>well</em> — aligning its internal logic with the messy, subjective, and often contradictory preferences of human beings.</p><h3>1. The Human Feedback Loop: Why SFT Fails the “Vibe Check”</h3><p>Supervised Fine-Tuning (SFT) is essentially “learning by mimicry.” We give the model a gold-standard response and say, “Say exactly this.” The problem? Writing gold-standard responses is <strong>hard</strong>. It takes a human expert a long time to write a perfect 500-word essay for a prompt.</p><p>However, humans are incredibly good at <strong>ranking</strong>. If you show a human two different essays, they can tell you which one they prefer in seconds.</p><blockquote><strong><em>The Core Insight:</em></strong><em> It is much cheaper and faster to collect “Response A &gt; Response B” data than it is to write “Perfect Response C.” Preference tuning leverages this human instinct to provide a “negative signal” — telling the model what </em>not<em> to do, something SFT simply cannot do.</em></blockquote><h3>2. Building the Judge: The Reward Model (RM)</h3><p>Before we can train the model using Reinforcement Learning, we need a way to automate the “Human Vibe Check.” We do this by training a <strong>Reward Model</strong>.</p><h3>The Bradley-Terry Formulation</h3><p>How do you turn a “thumbs up” or “thumbs down” into a mathematical score? We use the <strong>Bradley-Terry</strong> model. It assumes that the probability of choosing response y_i over y_j is a function of the difference between their scores:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*uG3S2GBx2jqLThIzoTY7eA.png" /></figure><p>Where:</p><ul><li>r(x, y) is the score the Reward Model assigns to a completion.</li><li>sigma is the <strong>sigmoid function</strong>, mapping the score difference to a 0–1 probability.</li></ul><p>By training on thousands of these pairs, the Reward Model becomes a digital “judge” that can look at any new prompt/response pair and assign it a “quality score.”</p><h3>3. The PPO Engine: Proximal Policy Optimization</h3><p>Once the judge is ready, we start the actual <strong>Reinforcement Learning</strong> process. The most famous algorithm for this is <strong>PPO</strong>. In this setup, the LLM is an <strong>Agent</strong> in an <strong>Environment</strong> (the vocabulary).</p><ul><li><strong>State:</strong> The current prompt and generated tokens.</li><li><strong>Action:</strong> Choosing the next token.</li><li><strong>Reward:</strong> The score given by our Reward Model once the sentence is finished.</li></ul><h3>The Complexity of PPO</h3><p>PPO is an “on-policy” algorithm, meaning it learns from its own mistakes in real-time. This makes it incredibly powerful but a massive engineering headache. To run a standard PPO loop, you typically need to manage <strong>four separate models</strong> in your GPU memory:</p><ol><li><strong>The Policy:</strong> The LLM we are actively updating.</li><li><strong>The Reference Model:</strong> A frozen version of the SFT model (to ensure we don’t drift too far).</li><li><strong>The Reward Model:</strong> Our frozen “judge.”</li><li><strong>The Value Function:</strong> A separate head that predicts how much reward the model will get for the <em>rest</em> of its sentence.</li></ol><h3>4. The Danger of Optimization: Reward Hacking</h3><p>If you tell a model to “maximize the score” without any constraints, it will find “hacks.” This is known as <strong>Reward Hacking</strong>.</p><p>Think of a professor who wants to be “informative.” If they realize the students clap louder (the reward) when they tell jokes, they might stop teaching math entirely and just do stand-up comedy. They’ve maximized the reward, but they’ve failed the actual objective.</p><p>In LLMs, this looks like:</p><ul><li>Adding excessive “I’m sorry” apologies to get a high safety score.</li><li>Formatting every answer as a list because the reward model was biased toward bullet points.</li><li>Outputting repetitive gibberish that happens to trigger a high-score “sweet spot” in the reward model’s neurons.</li></ul><h3>The KL-Divergence Guardrail</h3><p>To prevent this, we add a <strong>KL-Divergence penalty</strong> to the loss function. This acts as a mathematical leash, “taxing” the model every time its output distribution deviates too far from the original SFT model. It ensures the model stays a “language model” while it tries to be a “helpful model.”</p><h3>5. Best-of-N: The Inference-Time Alternative</h3><p>If the complexity of PPO sounds like too much, many practitioners use <strong>Best-of-N (BoN)</strong>. Instead of training the model, you simply:</p><ol><li>Ask the SFT model to generate N different responses (using a high temperature).</li><li>Use the Reward Model to score all N responses.</li><li>Show the user the one with the highest score.</li></ol><p><strong>The Trade-off:</strong> BoN is simple to set up, but it is <strong>brutally expensive</strong> at inference. Generating 10 responses for every 1 user question increases your compute costs by 10x. It’s a great “vibe check” for researchers, but a nightmare for budget-conscious production teams.</p><h3>6. The DPO Revolution: Simplicity over Reinforcement</h3><p>In 2023, researchers introduced <strong>Direct Preference Optimization (DPO)</strong>. They discovered that you don’t actually need a Reward Model or an RL loop. You can mathematically derive the “Optimal Policy” directly from the preference data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RCSuM9PfWf0IqQQPFV9caQ.png" /></figure><p>DPO has quickly become the new favorite for open-source models (like Llama and DeepSeek) because it delivers PPO-level results with 1/10th of the engineering complexity.</p><h3>7. Challenges and the Path Forward</h3><p>Preference tuning is far from perfect. It faces several hurdles:</p><ul><li><strong>Subjectivity:</strong> Human annotators often disagree. What one person finds “helpful,” another finds “patronizing.”</li><li><strong>Safety vs. Helpfulness:</strong> If you train a model too hard to be safe, it becomes “lobotomized” — refusing to answer even harmless questions.</li><li><strong>Exploration:</strong> The model needs to generate diverse answers to learn, but it often collapses into a narrow “safe” style of speaking.</li></ul><p><strong>Next Step:</strong> Now that we’ve finished the tuning lifecycle, we move into the most exciting new frontier in AI. Would you like me to dive into <strong>Part 11</strong>, where we discuss <strong>Reasoning Models</strong>? We’ll explore how models like <strong>DeepSeek-R1</strong> use <strong>GRPO (Group Relative Policy Optimization)</strong> to “think” in a hidden chain-of-thought before they answer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=297716da4690" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install OpenClaw(Formerly Clawdbot/Moltbot) on Your Mac and Control Your Computer]]></title>
            <link>https://medium.com/@ashishbodla/how-to-install-moltbot-formerly-clawdbot-on-your-mac-and-control-your-computer-from-your-couch-744860716f9b?source=rss-6ee8643e0103------2</link>
            <guid isPermaLink="false">https://medium.com/p/744860716f9b</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[moltbot]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[installation]]></category>
            <dc:creator><![CDATA[Ashish Bodla]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 05:57:45 GMT</pubDate>
            <atom:updated>2026-03-09T04:57:33.116Z</atom:updated>
            <content:encoded><![CDATA[<p>Picture this: You’re at a coffee shop, vibing with your oat milk latte, when your boss Slack-messages you asking for “that Q4 report PDF.” You know exactly where it is — buried in your Downloads folder on your Mac at home, probably named something helpful like “Screenshot_2026_01_23_final_FINAL_v2.pdf.”</p><p>In the old world, you’d panic, run home, or awkwardly explain you’ll send it later. In the Moltbot world? You WhatsApp your computer: “Find the Q4 report in Downloads and send it here.” Thirty seconds later, boom. File delivered. Boss impressed. You: still sipping your latte like the tech wizard you’ve become.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WblOZp_6uEkLZ0pfuBsXYA.png" /></figure><p><strong>Welcome to OpenClaw </strong>(formerly known as <strong>Clawdbot</strong>/<strong>Moltbot</strong>, until Anthropic’s lawyers got involved because apparently “Clawd” sounds too much like “Claude”). It’s a self-hosted AI agent that turns your Mac into your personal digital butler, controllable via WhatsApp, Telegram, or pretty much any messaging app you already waste too much time on.</p><p>Let’s dive in.</p><h3>What the Hell is Moltbot Anyway?</h3><p>Before we get to the fun stuff (installation, showing off to your friends), let’s answer the question your non-technical roommate would ask: <em>“So it’s like Siri but… not useless?”</em></p><p>Sort of, yeah.</p><p><strong>OpenClaw/Moltbot is a self-hosted AI agent</strong> that connects your messaging apps (WhatsApp, Telegram, Discord, iMessage) to an AI coding assistant running on your Mac. You send it messages like you would text a friend, and it executes commands on your computer.</p><p>Think of it as having an insanely capable intern who:</p><ul><li>Never sleeps</li><li>Never complains</li><li>Lives inside your computer</li><li>Responds to WhatsApp messages</li><li>Can search your files, run scripts, control your smart home, check your calendar, and basically do anything you could do at your desk</li></ul><p>The brainchild of Peter Steinberger (a macOS developer who clearly got tired of running back to his desk every five minutes), Moltbot went from 5,000 to over 60,000 GitHub stars in about 72 hours. It’s the viral sensation of early 2026, complete with crypto scammers trying to cash in and security researchers finding exposed instances all over the internet.</p><p><strong>The pitch?</strong> Complete privacy. Your data never leaves your hardware except when talking to your chosen AI model (Claude, GPT-4, etc.). No cloud middleman. No sus third-party servers. Just you, your Mac, and an AI that knows where you keep your files.</p><h3>The Moltbot Architecture (Don’t Worry, This Won’t Hurt)</h3><p>Here’s how it works without making your brain hurt:</p><p><strong>The Gateway</strong> (the main daemon/service):</p><ul><li>Runs on your Mac in the background</li><li>Connects to messaging apps</li><li>Stays alive 24/7, survives reboots</li><li>Has a slick web dashboard for configuration</li></ul><p><strong>The Agent (Pi)</strong>:</p><ul><li>The actual AI brain</li><li>Executes shell commands on your behalf</li><li>Talks to Claude/GPT-4/whatever model you configure</li><li>Can read files, write code, generate reports, basically anything</li></ul><p><strong>The Flow</strong>:</p><ol><li>You message <strong>OpenClaw/</strong>Moltbot via WhatsApp (or Telegram, Discord, etc.)</li><li>Message hits the Gateway</li><li>Gateway passes it to Pi (the agent)</li><li>Pi sends your request to the AI model</li><li>Model responds with instructions</li><li>Pi executes those instructions on your Mac</li><li>Results flow back to your chat</li></ol><p>It’s like having a really smart friend who lives in your computer and responds to texts. Except this friend actually follows through on tasks.</p><h3>Before We Begin: The “Can Your Mac Even Handle This?” Checklist</h3><p>Let’s make sure your setup isn’t from the Paleolithic era:</p><p>✅ <strong>macOS or Linux</strong> (Windows users need WSL2, which… good luck with that)</p><p>✅ <strong>Node.js 22 or higher</strong> (If you don’t know what Node.js is, we’ll install it. Chill.)</p><p>✅ <strong>An Anthropic API key OR Claude Pro/Max subscription</strong> ($20–100/month for Claude, or pay-per-token via API)</p><p>✅ <strong>WhatsApp on your phone</strong> (or Telegram, Discord, etc. — whatever you already use)</p><p>✅ <strong>Basic comfort with Terminal</strong> (You’ll survive, I promise)</p><p>✅ <strong>A sense of adventure</strong> (or desperation, that works too)</p><p><strong>Cost Reality Check</strong>:</p><ul><li>Moltbot itself: <strong>FREE</strong> (open source, MIT license)</li><li>AI API costs: <strong>$10–150/month</strong> depending on usage</li><li>Light usage (few commands/day): $10–30/month</li><li>Moderate usage: $30–70/month</li><li>Heavy usage (constant automation): $70–150/month</li></ul><p>If you have Claude Pro ($20/month) or Max ($100/month), you can use your subscription instead of paying per API call. More on that later.</p><h3>Installation: The “One Command to Rule Them All” Method</h3><p>Alright, brave soul. Let’s install this thing.</p><h3>Step 1: Install Node.js (If You Don’t Have It)</h3><p>First, check if you have Node.js:</p><pre>node --version</pre><p>If you see something like v22.x.x or higher, you&#39;re golden. Skip to Step 2.</p><p>If you get command not found, visit <a href="https://nodejs.org/">nodejs.org</a>, download the <strong>LTS version</strong>, install it, then close and reopen Terminal.</p><h3>Step 2: Run the Magic Install Script</h3><p>Open Terminal (⌘ + Space, type “Terminal”, hit Enter) and paste this:</p><pre>curl -fsSL https://molt.bot/install.sh | bash</pre><p>Press <strong>Enter</strong> and watch the magic happen.</p><p>The installer will:</p><ul><li>Download Moltbot</li><li>Set up the Gateway service</li><li>Launch the onboarding wizard</li><li>Make you feel like a hacker</li></ul><p>This takes about 60 seconds. Perfect time to question all your life choices that led to this moment.</p><h3>The Onboarding Wizard: Making Friends with Your New AI Overlord</h3><p>Once installation finishes, the <strong>onboarding wizard</strong> launches automatically. This is where the fun begins.</p><h3>Security Warning (Don’t Skip This, Seriously)</h3><p>First thing you’ll see is a big scary warning:</p><blockquote><strong><em>⚠️ Moltbot has unrestricted shell access to your computer</em></strong></blockquote><p>Translation: This AI can do <em>anything</em> you could do in Terminal. Delete files? Yep. Expose your API keys? If you’re not careful. Launch nuclear missiles? Only if you have that installed.</p><p><strong>Don’t panic.</strong> We’ll cover sandboxing later (basically putting the AI in a protective bubble). For now, just know that giving an AI terminal access requires… <em>trust issues</em>.</p><p>The wizard offers two modes:</p><p><strong>QuickStart</strong>: Sensible defaults, gets you running fast<br> <strong>Advanced</strong>: Full control over everything</p><p>Unless you’re a masochist or a DevOps engineer (same thing?), pick <strong>QuickStart</strong>.</p><h3>Choose Your AI Model Provider</h3><p>Next up: Pick your brain. Moltbot needs an AI model to power its responses.</p><p>![Screenshot placeholder: Model provider selection screen]</p><p><strong>Option 1: Claude Pro/Max Subscription</strong> (Recommended)</p><p>If you already have Claude Pro ($20/month) or Max ($100/month), you can use a setup token:</p><ol><li>Open a <strong>separate Terminal window</strong></li><li>Run: claude setup-token</li><li>Copy the generated token (it lasts one year)</li><li>Paste it into the wizard</li></ol><p>![Screenshot placeholder: Claude Code CLI generating a setup token]</p><p><strong>Option 2: Anthropic API Key</strong></p><p>Don’t have a subscription? Get an API key from <a href="https://console.anthropic.com/">console.anthropic.com</a>. You’ll pay per token used (roughly $3 per million input tokens, $15 per million output tokens with Claude Sonnet).</p><p><strong>Option 3: Other Providers</strong></p><p>Moltbot also supports OpenAI (GPT-4), Google (Gemini), and local models via Ollama. Pick your poison.</p><h3>Connect Your Messaging App</h3><p>Time to link WhatsApp (or whatever app you want to use).</p><p>![Screenshot placeholder: Channel setup with WhatsApp QR code]</p><p>For <strong>WhatsApp</strong>:</p><ol><li>Wizard shows a QR code</li><li>Open WhatsApp on your phone</li><li>Go to <strong>Settings → Linked Devices → Link a Device</strong></li><li>Scan the QR code</li><li>Boom. Connected.</li></ol><p>For <strong>Telegram</strong>: You’ll create a bot via @BotFather and paste the token.</p><p>For <strong>Discord</strong>: Create a Discord app and configure OAuth.</p><p>For <strong>iMessage</strong>: macOS only, requires some additional setup.</p><p>Pick whatever you already use. I’m going with WhatsApp because I already spend too much time on it anyway.</p><h3>Skills Configuration (Skip for Now)</h3><p>The wizard asks about “skills” — these are like plugins that extend what Moltbot can do.</p><p>Examples:</p><ul><li>Apple Notes integration</li><li>Google Calendar sync</li><li>GitHub CLI</li><li>Smart home controls (Hue lights, Sonos, etc.)</li></ul><p><strong>My advice</strong>: Skip this for now (just hit Enter to skip). You can add skills later once you know what you actually need. No point installing 50 plugins you’ll never use.</p><h3>Hatch Your Bot</h3><p>Final step: How do you want to run Moltbot?</p><p><strong>TUI (Terminal User Interface)</strong>: Opens both a terminal chat and web dashboard<br> <strong>Web Only</strong>: Just the browser dashboard<br> <strong>Headless</strong>: Background service only</p><p>Pick <strong>TUI</strong> for maximum nerd cred.</p><h3>First Contact: “Hi Moltbot, Prove You’re Real”</h3><p>The wizard is done. The Gateway is running. You’re officially in business.</p><p><strong>Test it in three places</strong>:</p><ol><li><strong>Terminal</strong>: Type a message in the terminal chat interface</li><li><strong>Web Dashboard</strong>: Open http://localhost:3000 in your browser</li><li><strong>WhatsApp</strong>: Text yourself</li></ol><p>Try this: Send a WhatsApp message to yourself with:</p><pre>What&#39;s the current directory?</pre><p>If you see a response in WhatsApp, Terminal, AND the web dashboard, congratulations. You’ve successfully installed an AI that controls your computer via text message.</p><p>Your productivity is about to skyrocket. Or you’ll spend the next three hours just chatting with it. Both are valid outcomes.</p><h3>Real-World Use Cases (AKA “Holy Sh*t I Can Do That?”)</h3><p>Okay, enough theory. Let’s see what this thing can actually <em>do</em>.</p><h3>Use Case 1: The “Where’s That File?” Finder</h3><p><strong>The Scenario</strong>: You’re away from your desk. Someone needs a file. You have no idea what you named it or where it is.</p><p><strong>The Old Way</strong>: Panic. Promise to send it later. Hope they forget.</p><p><strong>The Moltbot Way</strong>:</p><p>WhatsApp message: Find the screenshot of the WhatsApp conversation in my Downloads folder</p><p>![Screenshot placeholder: Moltbot searching through Downloads folder]</p><p><strong>What happens</strong>: Moltbot scans your Downloads folder, checks file metadata, looks for images, identifies the one matching your description, and sends it back to you in the chat.</p><p><strong>Time saved</strong>: 10 minutes of frantic searching<br> <strong>Coolness factor</strong>: 11/10</p><h3>Use Case 2: Disk Space Reporter (With Charts, Because Data)</h3><p><strong>The Scenario</strong>: Your colleague wants to send you a massive file via Dropbox. You’re on your phone. You need to know if you have disk space.</p><p><strong>The Message</strong>: Check my disk space and generate a PDF report with charts showing usage by folder</p><p>![Screenshot placeholder: Moltbot generating disk space analysis with Python charts]</p><p><strong>What happens</strong>:</p><ol><li>Moltbot scans your filesystem</li><li>Aggregates sizes by directory</li><li>Writes Python code to generate pie and bar charts</li><li>Exports everything to a PDF</li><li>Sends it to your chat</li></ol><p><strong>Sample Output</strong>:</p><pre>You have 94 GB free.</pre><pre>Largest folders:<br>- Library: 300 GB<br>- Applications: 45 GB  <br>- Documents: 28 GB<br>- Downloads: 15 GB (chaos incarnate)</pre><pre>PDF report attached.</pre><p><strong>Bonus</strong>: You now have proof that your Downloads folder is a digital junk drawer.</p><h3>Use Case 3: Calendar Checker</h3><p><strong>The Message</strong>: What&#39;s on my calendar tomorrow?</p><p><strong>What happens</strong>: If you’ve enabled the Google Calendar skill, Moltbot connects to your calendar and lists tomorrow’s meetings.</p><p><strong>Sample Response</strong>:</p><pre>Tomorrow (Jan 31):<br>- 9:00 AM: Team standup<br>- 11:30 AM: Design review  <br>- 2:00 PM: Coffee with Sarah<br>- 4:00 PM: Sprint planning</pre><pre>You have 3 hours of free time. Use it wisely.</pre><h3>Use Case 4: Smart Home Control</h3><p><strong>The Message</strong>: Turn off the living room lights</p><p><strong>What happens</strong>: If you’ve set up the Philips Hue skill, Moltbot sends the command to your smart lights.</p><p>You’re now controlling your house from WhatsApp like some kind of tech-savvy wizard.</p><h3>Use Case 5: Code Execution</h3><p><strong>The Message</strong>: Write a Python script that calculates the first 100 Fibonacci numbers and saves them to a file</p><p><strong>What happens</strong>:</p><ol><li>Moltbot writes the script</li><li>Executes it</li><li>Saves output to ~/fibonacci.txt</li><li>Confirms completion</li></ol><p><strong>Response</strong>:</p><pre>✓ Created fibonacci_calculator.py<br>✓ Executed script<br>✓ Saved results to ~/fibonacci.txt</pre><pre>First 10 numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34...</pre><p>![Screenshot placeholder: Moltbot executing Python script and showing results]</p><p>You just automated a task from your phone while eating lunch. The future is weird.</p><h3>Advanced Features: When Basic Just Isn’t Enough</h3><h3>Persistent Memory: Teaching Moltbot About You</h3><p>Moltbot remembers things across sessions using markdown files in ~/clawd/.</p><p><strong>Key files</strong>:</p><p><strong>SOUL.md</strong> — Personality and communication style<br> <strong>USER.md</strong> — Facts about you<br> <strong>AGENTS.md</strong> — Behavioral rules and workflows<br> <strong>MEMORY.md</strong> — Long-term memories<br> <strong>memory/YYYY-MM-DD.md</strong> — Daily logs</p><p>To add something to memory, just tell Moltbot:</p><pre>Remember that I like Breaking Bad</pre><p>Moltbot updates USER.md:</p><p>markdown</p><pre># USER.md - About Your Human</pre><pre>## Entertainment Preferences<br>- **TV Shows:** Loves Breaking Bad</pre><p>Later, if you ask for TV recommendations, Moltbot considers your preferences. It’s like having a personal assistant who actually <em>listens</em>.</p><h3>Proactive Monitoring: The AI That Texts You First</h3><p>Most AI waits for you to ask something. Moltbot can <em>initiate contact</em>.</p><p><strong>Heartbeats</strong>: Periodic check-ins</p><p>Edit ~/clawd/HEARTBEAT.md:</p><pre># Heartbeat checklist<br>- Check email for urgent messages<br>- Review calendar for events in next 2 hours<br>- If disk space &lt; 10GB, alert me</pre><p>Configure interval in ~/.clawdbot/clawdbot.json:</p><pre>{<br>  &quot;agents&quot;: {<br>    &quot;defaults&quot;: {<br>      &quot;heartbeat&quot;: {<br>        &quot;every&quot;: &quot;30m&quot;,<br>        &quot;activeHours&quot;: { &quot;start&quot;: &quot;08:00&quot;, &quot;end&quot;: &quot;22:00&quot; }<br>      }<br>    }<br>  }<br>}</pre><p>Every 30 minutes during active hours, Moltbot runs the checklist. If nothing’s urgent, it stays quiet. If your disk is full or you have a meeting in 30 minutes, it texts you.</p><p><strong>Cron Jobs</strong>: Scheduled tasks</p><pre># Daily morning briefing at 7am<br>moltbot cron add --name &quot;Morning brief&quot; --cron &quot;0 7 * * *&quot; --message &quot;Weather, calendar, top emails&quot;</pre><pre># One-time reminder in 2 hours<br>moltbot cron add --name &quot;Call client&quot; --at &quot;2h&quot; --message &quot;Call the client back&quot;</pre><pre># List active jobs<br>moltbot cron list</pre><p>Now your AI texts you before <em>you</em> remember to check things. It’s helpful and slightly creepy. Perfect.</p><h3>Skills: Extending Moltbot’s Brain</h3><p>Moltbot ships with <strong>49 built-in skills</strong> for common workflows. Think of skills as plugins that teach Moltbot how to interact with specific apps and services.</p><h3>Built-In Skills (The Greatest Hits)</h3><p><strong>Apple Ecosystem</strong>:</p><ul><li>Notes, Reminders, Bear Notes, Things 3</li><li>Ask Moltbot to “Add a reminder to buy milk” or “Search my notes for the password”</li></ul><p><strong>Google Workspace</strong>:</p><ul><li>Gmail, Calendar, Drive, Docs, Sheets</li><li>Requires OAuth but then: “What’s on my calendar tomorrow?” or “Draft a reply to Sarah’s email”</li></ul><p><strong>Communication</strong>:</p><ul><li>Slack, iMessage, Twitter/X</li><li>“Post this tweet” or “React to that Slack message with 🔥”</li></ul><p><strong>Smart Home</strong>:</p><ul><li>Philips Hue, Sonos, Eight Sleep</li><li>“Dim the bedroom lights” or “Play jazz on Sonos”</li></ul><p><strong>Dev Tools</strong>:</p><ul><li>GitHub CLI for issues/PRs</li><li>Whisper for audio transcription</li><li>A coding-agent skill that spawns Claude Code as a subprocess</li></ul><p>Most skills wrap existing CLI tools. If a skill requires a tool you don’t have installed (like the GitHub CLI), it shows as unavailable until you install it.</p><h3>Creating Custom Skills</h3><p>Built-in skills are great, but the <em>real</em> power is building your own.</p><p>Let me show you an example: <strong>Image watermarking</strong>.</p><p>I take photos on my phone but need to resize them and add my logo before posting to LinkedIn. Doing this manually is annoying.</p><p><strong>The Message</strong>: Create a skill that resizes images to any resolution and adds the logo from ~/Documents/logo.png as a watermark</p><p>![Screenshot placeholder: Moltbot creating custom skill with Python code]</p><p><strong>What happens</strong>:</p><ol><li>Moltbot uses its built-in skill-creator to scaffold the skill</li><li>Writes a Python script using PIL</li><li>Generates SKILL.md with instructions</li><li>Saves everything to ~/clawd/skills/image-watermark/</li></ol><p><strong>Testing it</strong>:</p><p>I send Moltbot a screenshot and say:</p><pre>Resize this for LinkedIn (1200x627) and add the watermark</pre><p>Thirty seconds later: watermarked image, ready to post.</p><p>That skill now lives on my machine permanently, callable from WhatsApp whenever I need it.</p><p><strong>Want more?</strong> Check out <a href="https://github.com/VoltAgent/awesome-moltbot-skills">awesome-moltbot-skills</a> — a community repo with 565+ skills including:</p><ul><li><strong>Tesla</strong>: Lock car, start climate control, check charge</li><li><strong>Home Assistant</strong>: Full smart home control</li><li><strong>Picnic</strong>: Grocery ordering via chat</li><li><strong>GitHub</strong>: Manage repos, create issues, review PRs</li></ul><h3>Security: The “Please Don’t Let This Go Horribly Wrong” Section</h3><p>Here’s the uncomfortable truth: <strong>Moltbot has unrestricted shell access to your computer.</strong></p><p>That means it can:</p><ul><li>Delete files</li><li>Expose credentials</li><li>Execute malicious commands if prompt-injected</li><li>Basically anything you could do in Terminal</li></ul><p>Security researchers have already found real vulnerabilities:</p><ul><li>Exposed web dashboards leaking API keys</li><li>Authentication bypass issues</li><li>Hundreds of misconfigured instances on the public internet</li></ul><p><strong>The Recommendations</strong>:</p><h3>1. Run Moltbot on Dedicated Hardware</h3><p>Peter Steinberger (the creator) recommends running Moltbot on:</p><ul><li>A Mac Mini</li><li>A VPS (Virtual Private Server)</li><li>Any machine that’s <em>not</em> your primary computer</li></ul><p>Most people won’t do this. So…</p><h3>2. Use Sandboxing</h3><p>Sandboxing runs Moltbot in a Docker container with limited access to your system.</p><p><strong>Setup</strong>:</p><ol><li>Install Docker if you haven’t already</li><li>Build the sandbox image:</li></ol><pre>./scripts/sandbox-setup.sh</pre><ol><li>Configure sandboxing in ~/.clawdbot/clawdbot.json:</li></ol><pre>{<br>  &quot;agents&quot;: {<br>    &quot;defaults&quot;: {<br>      &quot;sandbox&quot;: {<br>        &quot;mode&quot;: &quot;non-main&quot;,<br>        &quot;scope&quot;: &quot;session&quot;,<br>        &quot;workspaceAccess&quot;: &quot;ro&quot;<br>      }<br>    }<br>  }<br>}</pre><ol><li>Restart Gateway:</li></ol><pre>moltbot gateway restart</pre><p><strong>What the settings mean</strong>:</p><p><strong>mode</strong>:</p><ul><li>&quot;off&quot;: No sandboxing (default, risky)</li><li>&quot;non-main&quot;: Sandboxes group chats, runs main session on host (recommended)</li><li>&quot;all&quot;: Everything runs in containers (safest, adds latency)</li></ul><p><strong>workspaceAccess</strong>:</p><ul><li>&quot;none&quot;: No file access</li><li>&quot;ro&quot;: Read-only access to ~/clawd/</li><li>&quot;rw&quot;: Full read-write access</li></ul><p><strong>Tradeoffs</strong>:</p><ul><li>Sandboxing adds latency from container startup</li><li>Skills needing network access won’t work by default</li><li>Some platform limits exist (only one Gateway per WhatsApp session, iMessage only on macOS)</li></ul><h3>3. Grant Full Disk Access (macOS)</h3><p>If you plan to use Moltbot remotely, grant <strong>Full Disk Access</strong> to Terminal:</p><p><strong>System Settings → Privacy &amp; Security → Full Disk Access → Add Terminal</strong></p><p>Without this, macOS will show permission prompts when you’re not there, and Moltbot’s file operations will silently fail.</p><p>4. Don’t Share Your Tokens</p><p>This should be obvious, but:</p><ul><li>Don’t share your setup token</li><li>Don’t commit API keys to GitHub</li><li>Don’t post screenshots with visible tokens</li></ul><p>Common sense, people.</p><h3>Troubleshooting: When Things Go South</h3><h3>“command not found: moltbot”</h3><p><strong>Translation</strong>: Terminal doesn’t see Moltbot.</p><p><strong>Fix</strong>: Close Terminal <em>completely</em> (⌘ + Q) and reopen. If that doesn’t work, run the installer again.</p><h3>“Node.js version too old”</h3><p><strong>Translation</strong>: You need Node.js 22 or higher.</p><p><strong>Fix</strong>: Visit <a href="https://nodejs.org/">nodejs.org</a>, download LTS version, install, close Terminal, reopen.</p><h3>“WhatsApp QR code won’t scan”</h3><p><strong>Translation</strong>: QR expired or WhatsApp is being temperamental.</p><p><strong>Fix</strong>:</p><ol><li>Run moltbot gateway restart</li><li>Relaunch the wizard</li><li>Try scanning again</li><li>Make sure you’re using the right WhatsApp account</li></ol><h3>“Authentication failed”</h3><p><strong>Translation</strong>: Your API key or setup token isn’t working.</p><p><strong>Fix</strong>:</p><pre>moltbot logout<br>moltbot<br># Re-enter credentials</pre><h3>“Permission denied” errors</h3><p><strong>Translation</strong>: macOS is blocking file access.</p><p><strong>Fix</strong>: Grant Full Disk Access to Terminal (see Security section above).</p><h3>The Uncomfortable Truths Nobody Tells You</h3><p>Let’s be real for a second.</p><h3>1. This Costs Real Money</h3><p>Unless you’re running local models (which are… not great yet), you’re paying for API calls. Heavy usage can easily hit $100+/month. Budget accordingly.</p><h3>2. It’s Not Perfect</h3><p>Moltbot will occasionally:</p><ul><li>Misunderstand your request</li><li>Suggest something weird</li><li>Fail to find a file</li><li>Execute the wrong command</li></ul><p>It’s AI. It’s impressive, not infallible.</p><h3>3. You Need to Trust It</h3><p>Giving an AI terminal access requires… faith. If that makes you uncomfortable, either use heavy sandboxing or don’t install this.</p><h3>4. The Hype Will Die Down</h3><p>Right now, Moltbot is the shiny new thing. In six months, there will be 10 competitors, half of them better. Enjoy the ride while it lasts.</p><h3>5. You’ll Become Dependent On It</h3><p>Two weeks from now, you’ll text your computer from the grocery store asking if you’re out of milk. You’ll forget how to check your calendar manually. You’ll wonder how you ever lived without this.</p><p>And that’s both beautiful and terrifying.</p><h3>Quick Reference: Commands You’ll Actually Use</h3><pre># Install Moltbot<br>curl -fsSL https://molt.bot/install.sh | bash</pre><pre># Start/stop/restart Gateway<br>moltbot gateway start<br>moltbot gateway stop<br>moltbot gateway restart</pre><pre># Check Gateway status<br>moltbot gateway status</pre><pre># Open web dashboard<br>open <a href="http://localhost:3000/">http://localhost:3000</a></pre><pre># List available skills<br>moltbot skills list</pre><pre># Enable a skill<br>moltbot skills enable github</pre><pre># Add a cron job<br>moltbot cron add --name &quot;Morning brief&quot; --cron &quot;0 7 * * *&quot; --message &quot;Weather, calendar, emails&quot;</pre><pre># List cron jobs<br>moltbot cron list</pre><pre># Remove a cron job<br>moltbot cron rm &lt;job-id&gt;</pre><pre># Logout and re-authenticate<br>moltbot logout<br>moltbot</pre><pre># View logs<br>moltbot logs</pre><pre># Update Moltbot<br>curl -fsSL <a href="https://molt.bot/install.sh">https://molt.bot/install.sh</a> | bash</pre><h3>Screenshots You Should Take for Your Blog</h3><ol><li><strong>Installation success screen</strong> — Moltbot installed with system requirements confirmed</li><li><strong>Security warning</strong> — The big scary “unrestricted access” warning</li><li><strong>Model provider setup</strong> — Choosing Claude/GPT-4/etc.</li><li><strong>WhatsApp QR code</strong> — Channel connection screen</li><li><strong>Terminal chat interface</strong> — Moltbot responding in terminal</li><li><strong>Web dashboard</strong> — The slick browser interface</li><li><strong>WhatsApp conversation</strong> — Real chat exchange with Moltbot</li><li><strong>File search in action</strong> — Moltbot finding a buried file</li><li><strong>Disk space report</strong> — Generated PDF with charts</li><li><strong>Custom skill creation</strong> — Moltbot generating a new skill</li><li><strong>Watermarked image</strong> — Before/after of image processing</li><li><strong>Proactive alert</strong> — Moltbot sending a morning briefing</li><li><strong>Sandbox configuration</strong> — Docker sandbox settings</li><li><strong>Skills list</strong> — Available skills in terminal</li><li><strong>Cron jobs</strong> — Scheduled tasks list</li></ol><h3>Final Thoughts: Is This the Future or Just Hype?</h3><p>Look, I won’t sugarcoat it: Moltbot is both <em>genuinely impressive</em> and <em>overhyped</em>.</p><p><strong>The Good</strong>:</p><ul><li>Self-hosted (your data stays local)</li><li>Incredibly flexible (if you can do it in Terminal, Moltbot can automate it)</li><li>Actually useful (not just a demo)</li><li>Growing fast (community is building skills like crazy)</li></ul><p><strong>The Bad</strong>:</p><ul><li>Security risks (unrestricted shell access is… spicy)</li><li>Costs money (API fees add up)</li><li>Requires technical knowledge (despite being “easy,” you still need Terminal comfort)</li><li>Overhyped (60k GitHub stars in 72 hours? Come on.)</li></ul><p><strong>The Verdict</strong>:</p><p>If you’re a developer, power user, or automation nerd, <strong>install this immediately</strong>. The ability to control your computer from WhatsApp is legitimately game-changing.</p><p>If you’re a casual user who just wants “Siri but better,” <strong>maybe wait</strong>. The setup, costs, and security considerations might outweigh the benefits.</p><h4>Either way, projects like Moltbot represent a shift: AI assistants moving from cloud services to self-hosted infrastructure you control. And that’s worth paying attention to.</h4><h4><strong><em>P.S. — Yes, I used Claude to help edit parts of this article.</em></strong></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=744860716f9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transformers and LLMs — Part 9: Preference Tuning & RLHF — Making LLMs “Human-Centric”]]></title>
            <link>https://medium.com/@ashishbodla/transformers-and-llms-part-9-preference-tuning-rlhf-making-llms-human-centric-87f951205f87?source=rss-6ee8643e0103------2</link>
            <guid isPermaLink="false">https://medium.com/p/87f951205f87</guid>
            <category><![CDATA[pretrained-language-model]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[fine-tuning]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[transformers]]></category>
            <dc:creator><![CDATA[Ashish Bodla]]></dc:creator>
            <pubDate>Thu, 29 Jan 2026 09:47:23 GMT</pubDate>
            <atom:updated>2026-01-29T09:48:51.002Z</atom:updated>
            <content:encoded><![CDATA[<h3>Transformers and LLMs — Part 9: Preference Tuning &amp; RLHF — Making LLMs “Human-Centric”</h3><p>Even after Supervised Fine-Tuning (SFT), an LLM can be technically proficient but still “vibeless” or even unsafe. Part 9 explores the final, sophisticated stage of alignment: <strong>Preference Tuning</strong>, primarily through <strong>Reinforcement Learning from Human Feedback (RLHF)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jyc3-Bnnv7vvmYFE_o7_zg.png" /><figcaption>LLM Training process</figcaption></figure><h3>1. Why a Third Step? (The Limits of SFT)</h3><p>You might wonder: if we already have SFT, why do we need more tuning?</p><ul><li><strong>Generation is Hard, Ranking is Easy:</strong> It is difficult for a human to write a perfect 500-word essay for a prompt (SFT data), but it is very easy for a human to look at two essays and say, “I like Model A better than Model B.”</li><li><strong>Negative Signals:</strong> SFT only teaches a model what <em>to</em> do. It doesn’t explicitly teach the model what <em>not</em> to do. Preference tuning allows us to inject a “negative signal” to down-weight undesirable behaviors.</li><li><strong>Distributional Stability:</strong> Adding new data to SFT can easily bias the model if the prompt distribution isn’t perfectly balanced. Preference tuning provides a more stable way to nudge the model’s tone.</li></ul><h3>2. Data Collection: Pairwise Preferences</h3><p>To align a model, we first need to know what humans actually like.</p><ul><li><strong>The Setup:</strong> A prompt (x) is fed into the model twice with a positive <strong>temperature</strong> to generate two distinct responses (y_w for winning, y_l for losing).</li><li><strong>Pairwise Ranking:</strong> Instead of giving an absolute score (e.g., “This is a 7/10”), humans perform a pairwise comparison. This is much more objective and less noisy than pointwise scoring.</li></ul><h3>3. Stage 1: The Reward Model (RM)</h3><p>Before we can use Reinforcement Learning, we need a “judge” — a mathematical model that can predict how much a human would like a response.</p><h3>The Bradley-Terry Formulation</h3><p>We train the Reward Model using the <strong>Bradley-Terry</strong> model, which assumes that the probability of a human preferring response y_i over y_j is determined by the difference in their scores:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*Hra4rspaCd7LCG5EvUo5cQ.png" /></figure><p>Where:</p><ul><li>r(x, y) is the scalar reward score predicted by the model.</li><li>sigma is the <strong>sigmoid function</strong>, which maps the difference to a probability between 0 and 1.</li></ul><h3>Loss Function</h3><p>We train the Reward Model by minimizing the negative log-likelihood of the human’s actual choice:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*_dPTS9L5eszxWr9FQZquqQ.png" /></figure><p>The model learns to push the “winning” score (y_w) up and the “losing” score (y_l) down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w5--P2-QAZWrqmIarlE29g.png" /><figcaption>Mapping RL to LLMs</figcaption></figure><h3>4. Stage 2: The Reinforcement Learning (RL) Step</h3><p>Now that we have a frozen Reward Model, we use it to tune the actual LLM (the “Policy”).</p><h3>The RL Loop</h3><ol><li><strong>Rollout:</strong> The LLM generates a full response (a “completion”) for a prompt.</li><li><strong>Scoring:</strong> The <strong>frozen Reward Model</strong> looks at the prompt and the completion and gives it a scalar score (e.g., +2.5 or -1.2).</li><li><strong>Update:</strong> An RL algorithm (typically <strong>PPO — Proximal Policy Optimization</strong>) updates the LLM weights to maximize the expected reward.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3QGwH85t9FgOMyd1He0Fdg.png" /><figcaption>Preference Tuning</figcaption></figure><h3>5. The “Golden Rule” of Alignment</h3><p>The lecture concludes with a critical warning: <strong>Don’t deviate too far from the base model.</strong> If you optimize <em>only</em> for reward, the model might find “hacks” (e.g., outputting gibberish that the reward model happens to like). To prevent this, researchers use a <strong>KL-Divergence penalty</strong>, which ensures the new model stays close to the original SFT model while still improving its helpfulness.</p><p><strong>Next Step:</strong> We’ve discussed the “How” of RLHF. Would you like me to explain the <strong>PPO algorithm</strong> in detail, or should we look at the modern alternative, <strong>DPO (Direct Preference Optimization)</strong>, which removes the need for a separate Reward Model entirely?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87f951205f87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond CNNs: Why Swin Transformers are the New Kings of Computer Vision]]></title>
            <link>https://medium.com/@ashishbodla/beyond-cnns-why-swin-transformers-are-the-new-kings-of-computer-vision-c8dbda7bac5e?source=rss-6ee8643e0103------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8dbda7bac5e</guid>
            <category><![CDATA[swin-transformer]]></category>
            <category><![CDATA[vision-transformer]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[image-segmentation]]></category>
            <dc:creator><![CDATA[Ashish Bodla]]></dc:creator>
            <pubDate>Wed, 28 Jan 2026 06:42:29 GMT</pubDate>
            <atom:updated>2026-01-28T06:42:29.489Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBPc6NNGHVONXdfL9M_ldg.png" /></figure><p>For years, Convolutional Neural Networks (CNNs) like ResNet were the undisputed backbone of computer vision. But then came the “Transformer revolution.” While models like BERT and GPT were conquering language, the vision world was left wondering: <em>Can we use this same self-attention magic for images?</em></p><p>Early attempts were… complicated. Standard Transformers struggled with high-resolution images and objects of varying sizes. Enter the <strong>Swin Transformer</strong> (Shifted Window Transformer) — the hierarchical game-changer designed to replace CNNs once and for all.</p><h3>The Problem: Why “Vanilla” Transformers Failed at Vision</h3><p>Before we look at the solution, we have to understand the two massive “it’s not working” moments researchers faced when applying standard Transformers to images:</p><ol><li><strong>The Quadratic Nightmare:</strong> In a standard Transformer, every pixel “attends” to every other pixel. This creates a computational complexity of O(n²). If you double the image resolution, the compute requirement quadruples. For high-res photos, the math becomes “intractable” (a polite researcher word for “impossible”).</li><li><strong>Scale Sensitivity:</strong> In object detection, size matters. A car can be 500 pixels wide or 50 pixels wide. Standard Transformers output a single-resolution tensor, making it incredibly hard to catch both the “big picture” and the tiny details.</li></ol><h3>The Solution: What Makes a Transformer “Swin”?</h3><p>The Swin Transformer solves these issues by being <strong>Hierarchical</strong> and <strong>Efficient</strong>. Instead of looking at every pixel at once, it breaks the image down and processes it in stages, much like the human eye or a traditional CNN.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rs0X2_VVwKZKF4_dnjH8Cw.png" /><figcaption>Swin Transformers</figcaption></figure><h3>1. Windowed Multi-Head Self-Attention (W-MSA)</h3><p>To beat the O(n²) complexity, Swin doesn’t calculate attention for the whole image. Instead, it partitions the image into M * M windows. It only calculates attention <strong>within</strong> those windows. This brings the complexity down to O(n) — linear time! Now, we can process high-res images without our GPUs catching fire.</p><h3>2. The Secret Sauce: Shifted Windows (SW-MSA)</h3><p>If you only look inside small windows, how do the pixels on the edges talk to each other? Swin uses a <strong>Shifted Window</strong> approach. Between layers, the window partitions are shifted, forcing the network to learn connections between neighboring windows.</p><blockquote><strong><em>Pro Tip:</em></strong><em> To keep this efficient, the model uses a “Cyclic Shift” and a special “Mask” to ensure that pixels that were wrapped around the image don’t accidentally “attend” to each other when they aren’t actually neighbors.</em></blockquote><h3>The “How”: A Deep Dive into the Pipeline</h3><p>The architecture works through a series of stages, creating a <strong>Hierarchy of Tensors</strong>:</p><ul><li><strong>Patch Partitioning:</strong> The image is broken into small patches (e.g., 4 * 4 pixels).</li><li><strong>Linear Embedding:</strong> These patches are turned into mathematical vectors (tokens).</li><li><strong>Swin Transformer Blocks:</strong> This is where the W-MSA and SW-MSA happen, capturing local and cross-window context.</li><li><strong>Patch Merging:</strong> Between stages, the model merges neighboring patches. This reduces the resolution (height and width) but increases the “depth” (features).</li></ul><p>This creates a “Feature Pyramid.” By the end, the model has multiple tensors of different sizes. This is perfect for tools like <strong>Feature Pyramid Networks (FPN)</strong>, allowing the model to detect a massive building and a tiny pedestrian simultaneously.</p><h3>Performance: Does it actually work?</h3><p>The results are in, and they’re impressive. When tested on the COCO dataset for object detection:</p><ul><li><strong>Accuracy:</strong> Swin consistently outperforms ResNet backbones.</li><li><strong>Versatility:</strong> It excels in both object detection and semantic segmentation.</li><li><strong>The Trade-off:</strong> While it is more accurate, the transcript notes that Swin can be slightly slower during inference compared to some highly optimized CNNs.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8dbda7bac5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nightmares of AI Engineers: Waking Up from the CUDA Fever Dream]]></title>
            <link>https://medium.com/@ashishbodla/nightmares-of-ai-engineers-waking-up-from-the-cuda-fever-dream-7b4f6071f238?source=rss-6ee8643e0103------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b4f6071f238</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[oom]]></category>
            <category><![CDATA[cuda-programming]]></category>
            <category><![CDATA[ai-engineer]]></category>
            <dc:creator><![CDATA[Ashish Bodla]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 05:27:03 GMT</pubDate>
            <atom:updated>2026-01-20T05:27:03.027Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been there. It’s 2:45 AM and have a deadline tomorrow. The model architecture is perfect, the data is preprocessed, and the coffee is fresh. You hit python train.py and...</p><p><strong>crash</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*2Fe40LE4XiINtmVFgTzlZw.jpeg" /></figure><p>The image above isn’t just a meme; it is a documentary of the AI engineering experience. It captures the specific, recurring traumas that haunt us — not the theoretical math of backpropagation, but the brutal reality of hardware interaction.</p><p>If you are staring at your ceiling wondering why nvidia-smi is lying to you, this guide is your melatonin. Let’s tackle these nightmares one by one with actual solutions.</p><h3>Nightmare 1: “How to install NVIDIA drivers on Ubuntu?”</h3><p>This is the gateway nightmare. You just bought a shiny new GPU, or spun up a cloud instance, and you need to get the OS to talk to the silicon. Do you download the .run file from NVIDIA’s site? (Spoilers: <strong>No</strong>, unless you enjoy breaking your GUI).</p><h3>The Solution</h3><p>Stop manually downloading drivers. On Ubuntu, use the graphics-drivers PPA or the built-in ubuntu-drivers tool. It is safer and handles dependencies for you.</p><p><strong>The Golden Command:</strong></p><pre># Update your repos<br>sudo apt update<br># Install the auto-detection tool<br>sudo apt install ubuntu-drivers-common<br># Let Ubuntu recommend the best driver for you<br>sudo ubuntu-drivers autoinstall<br># Reboot (The step everyone forgets)<br>sudo reboot</pre><p>If you need a <em>specific</em> version (e.g., to match a CUDA requirement), list them first:</p><pre>ubuntu-drivers devices<br>sudo apt install nvidia-driver-535</pre><h3>Nightmare 2: “How to check CUDA version?”</h3><p>The meme asks this because it is genuinely confusing. You run one command and get “12.2”. You run another and get “11.8”. Which one is real? Are you gaslighting yourself?</p><h3>The Solution</h3><p>Both are real, but they measure different things.</p><ul><li><strong>nvidia-smi</strong> shows the <strong>Driver API</strong> version. This is the <em>maximum</em> CUDA version your GPU driver <em>can</em> support.</li><li><strong>nvcc --version</strong> shows the <strong>Runtime API</strong> version. This is the actual CUDA Toolkit version installed in your environment (the one PyTorch/TensorFlow uses).</li></ul><p>Rule of Thumb:</p><p>As long as nvidia-smi shows a version higher or equal to nvcc — version, you are safe.</p><ul><li><strong>Driver:</strong> 12.2 | <strong>Toolkit:</strong> 11.8 -&gt; <strong>Safe</strong> ✅</li><li><strong>Driver:</strong> 11.7 | <strong>Toolkit:</strong> 11.8 -&gt; <strong>Crash</strong> ❌</li></ul><h3>Nightmare 3: “Why is CUDA out of memory (OOM) error occurring?”</h3><p>This is the “Boss Fight” of AI Engineering. You have 24GB of VRAM, your batch size is 8, and PyTorch still screams at you.</p><h3>The Solution</h3><p>Don’t just buy a bigger GPU. Optimize your code.</p><ul><li>The “Quick Fix”: If you are just over the edge, clear the cache (though this is often a placebo, it helps fragmentation):</li></ul><pre>import torch<br>torch.cuda.empty_cache()</pre><ul><li>Gradient Accumulation (The Real Fix): If you can’t fit a Batch Size of 64, run a Batch Size of 16 four times before updating weights. Mathematically, it’s almost identical.</li></ul><pre># instead of updating every step... <br>loss = criterion(outputs, labels) <br>loss = loss / 4 # Normalize <br>loss.backward()  <br>if (step + 1) % 4 == 0:     <br>  optimizer.step()     <br>  optimizer.zero_grad()</pre><ul><li>Mixed Precision (FP16): Use torch.amp (Automatic Mixed Precision). It halves your memory usage by using 16-bit floats where possible, without losing accuracy.</li></ul><h3>Nightmare 4: “Why is GPU utilization low during training?”</h3><p>You spent a lot on a GPU cluster, but nvidia-smi says utilization is fluctuating between 10% and 0%. Your GPU is bored because it&#39;s waiting on your CPU.</p><h3>The Solution</h3><p>This is almost always a <strong>Data Loading Bottleneck</strong>. Your GPU processes data faster than your CPU can read it from the disk and augment it.</p><ul><li><strong>Increase Workers:</strong> In PyTorch, set num_workers &gt; 0 in your DataLoader. A good starting point is num_workers=4 or num_workers=8.</li><li><strong>Pin Memory:</strong> Set pin_memory=True. This allocates the data in page-locked memory, speeding up the transfer from RAM to VRAM.</li></ul><pre>dataloader = DataLoader(dataset, batch_size=32, num_workers=4, pin_memory=True)</pre><ul><li><strong>Check IO:</strong> If your dataset is huge (terabytes) and many small files (images), your HDD/SSD might be too slow. Move to NVMe or use a binary format like TFRecords or LMDB to reduce file system overhead.</li></ul><h3>Nightmare 5: “What are the differences between CUDA 11 and 12?”</h3><p>The upgrade anxiety. Should you update? Will it break your legacy code?</p><h3>The Solution</h3><p><strong>CUDA 12</strong> is a major architectural shift.</p><ul><li><strong>The Good:</strong> It introduces native support for the <strong>Hopper architecture (H100 GPUs)</strong> and provides massive speedups for Transformer engines (FP8 precision).</li><li><strong>The Bad:</strong> It dropped support for older architectures (Kepler, compute capability 3.5/3.7).</li><li><strong>The Verdict:</strong> If you are on an H100 or A100, use CUDA 12. If you are on an old GTX 1080 or working with a legacy codebase that relies on specific older libraries, stay on CUDA 11.8. It is the “Windows 7” of CUDA versions — stable and supported by everything.</li></ul><h3>The Ultimate Solution: Stop Installing Things Locally</h3><p>If you take one thing away from this post, let it be this: <strong>Stop installing CUDA, cuDNN, and drivers directly on your host machine for every new project.</strong></p><p>The ultimate cure for these nightmares is <strong>Docker</strong>.</p><p>Instead of fighting with /usr/local/cuda-12.1, simply pull a container that already works:</p><pre>docker run --gpus all -it pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime</pre><p>In this container, the drivers are passed through from the host, but the CUDA toolkit, cuDNN, and Python environment are isolated and guaranteed to work together.</p><p>Sleep tight, engineers. May your gradients converge and your VRAM be plentiful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b4f6071f238" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>