<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: verdyshd</title>
    <description>The latest articles on DEV Community by verdyshd (@verdyshd).</description>
    <link>https://dev.to/verdyshd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3983237%2F914125f8-34c9-4d32-b13f-9bf50dfdbc87.jpeg</url>
      <title>DEV Community: verdyshd</title>
      <link>https://dev.to/verdyshd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/verdyshd"/>
    <language>en</language>
    <item>
      <title>Free students, paid teachers: how cheap LLMs learn from expensive ones</title>
      <dc:creator>verdyshd</dc:creator>
      <pubDate>Sat, 13 Jun 2026 22:26:27 +0000</pubDate>
      <link>https://dev.to/verdyshd/free-students-paid-teachers-how-cheap-llms-learn-from-expensive-ones-520m</link>
      <guid>https://dev.to/verdyshd/free-students-paid-teachers-how-cheap-llms-learn-from-expensive-ones-520m</guid>
      <description>&lt;p&gt;Every agent framework I tried assumed one paid frontier model. I wanted the opposite: an orchestrator that treats &lt;strong&gt;free and local&lt;/strong&gt; models as first-class, and gets &lt;em&gt;smarter&lt;/em&gt; over time without me paying per token. That idea turned into &lt;a href="https://github.com/verdyshd/freepalp" rel="noopener noreferrer"&gt;FreePalp&lt;/a&gt;, and the core trick is worth sharing on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with cheap models
&lt;/h2&gt;

&lt;p&gt;A small/free model (Llama-3.1-8B, a local Ollama model) is fast and costs nothing, but it fails the hard tasks: multi-file edits, strict output formats, tool-use discipline. The usual answer is "just use a bigger model." That's expensive and gives up on the free tier entirely.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trick: corrections accumulate
&lt;/h2&gt;

&lt;p&gt;FreePalp runs a &lt;strong&gt;two-tier critic&lt;/strong&gt;. Cheap deterministic checks first (did the promised file actually get written? did the model leak a tool call as text? did it slip identity?), and only then an LLM critic. When a cheap model fails and a &lt;strong&gt;stronger model succeeds on retry&lt;/strong&gt;, FreePalp doesn't throw that success away. It &lt;strong&gt;distills the working procedure into a reusable &lt;code&gt;SKILL.md&lt;/code&gt;&lt;/strong&gt; — the same format Claude Code uses — capturing the steps, the tools involved, and the one lesson that fixed it.&lt;/p&gt;

&lt;p&gt;Next time a &lt;em&gt;similar&lt;/em&gt; task shows up, that skill is injected into the prompt &lt;strong&gt;before&lt;/strong&gt; the cheap model even tries. So the cheap model gets it right on the first attempt — because it's standing on a procedure a stronger model already worked out. Free students, paid teachers, a skill set that grows.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why deterministic checks matter
&lt;/h2&gt;

&lt;p&gt;LLM critics are themselves LLMs — they hallucinate too. So the first tier is plain code: regexes and file-system checks that catch the specific failure modes weak models have (fake "I created the file" claims, stub content, leaked &lt;code&gt;&amp;lt;tool_call&amp;gt;&lt;/code&gt; text). Cheap, fast, and they never lie. The LLM critic only spends tokens on the genuinely ambiguous cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rest of the system
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Routing across 10+ free providers (Groq, Cerebras, Gemini, OpenRouter…) with live quota/cooldown awareness, and &lt;strong&gt;local Ollama as the always-available fallback&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;DAG decomposition + parallel subagents for multi-file work.&lt;/li&gt;
&lt;li&gt;MCP client (any Model Context Protocol server's tools appear to the agent).&lt;/li&gt;
&lt;li&gt;Token streaming, OpenAI-compatible &lt;code&gt;/v1&lt;/code&gt; (point any IDE plugin at it).&lt;/li&gt;
&lt;li&gt;A real vector-memory graph you can explore, FTS5 search over your history.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's MIT, Python, and a solo project — I keep an honest benchmark of where free models still hit a ceiling. If the teacher→student idea resonates, the code is here: &lt;a href="https://github.com/verdyshd/freepalp" rel="noopener noreferrer"&gt;https://github.com/verdyshd/freepalp&lt;/a&gt; — feedback on the critic/routing design very welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>opensource</category>
      <category>python</category>
    </item>
  </channel>
</rss>
