<?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: Ritik Patil</title>
    <description>The latest articles on DEV Community by Ritik Patil (@llm_ops).</description>
    <link>https://dev.to/llm_ops</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4062047%2F6900e578-9c22-4e31-bece-2ccf91860907.png</url>
      <title>DEV Community: Ritik Patil</title>
      <link>https://dev.to/llm_ops</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/llm_ops"/>
    <language>en</language>
    <item>
      <title>Your smallest local model might be your best one - I measured 4 of mine</title>
      <dc:creator>Ritik Patil</dc:creator>
      <pubDate>Tue, 04 Aug 2026 08:26:59 +0000</pubDate>
      <link>https://dev.to/llm_ops/your-smallest-local-model-might-be-your-best-one-i-measured-4-of-mine-121c</link>
      <guid>https://dev.to/llm_ops/your-smallest-local-model-might-be-your-best-one-i-measured-4-of-mine-121c</guid>
      <description>&lt;p&gt;I had seven models sitting in Ollama and no idea which one to use for what. So I stopped guessing and measured.&lt;/p&gt;

&lt;p&gt;152 generations on a 16 GB laptop. Greedy decoding, deterministic grading - exact number, exact string, JSON field, regex. No LLM judge, so there is no second model's bias to audit.&lt;/p&gt;

&lt;h2&gt;
  
  
  The result
&lt;/h2&gt;

&lt;p&gt;No model won every category.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;task type&lt;/th&gt;
&lt;th&gt;deepseek-r1:1.5b (1.1 GB)&lt;/th&gt;
&lt;th&gt;llama3.2:3b (2.0 GB)&lt;/th&gt;
&lt;th&gt;gemma:2b&lt;/th&gt;
&lt;th&gt;codellama 7b&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;arithmetic (12)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;10/12&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2/12&lt;/td&gt;
&lt;td&gt;2/12&lt;/td&gt;
&lt;td&gt;3/12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;extraction (9)&lt;/td&gt;
&lt;td&gt;4/9&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;9/9&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;7/9&lt;/td&gt;
&lt;td&gt;8/9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;classification (8)&lt;/td&gt;
&lt;td&gt;6/8&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;7/8&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;7/8&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2/8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;code output (6)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5/6&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;3/6&lt;/td&gt;
&lt;td&gt;1/6&lt;/td&gt;
&lt;td&gt;4/6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;median latency&lt;/td&gt;
&lt;td&gt;14.6 s&lt;/td&gt;
&lt;td&gt;1.6 s&lt;/td&gt;
&lt;td&gt;2.7 s&lt;/td&gt;
&lt;td&gt;6.3 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The 1.1 GB reasoning model is five times better at arithmetic than the 2 GB general model - and less than half as good at structured extraction, at nine times the latency. The smallest model I own scored highest overall. The largest came third.&lt;/p&gt;

&lt;p&gt;Size did not predict accuracy.&lt;/p&gt;

&lt;h2&gt;
  
  
  One thing that nearly broke the measurement
&lt;/h2&gt;

&lt;p&gt;Reasoning models emit a &lt;code&gt;&amp;lt;think&amp;gt;&lt;/code&gt; block before answering. My first grader read the whole response, so it kept scoring the model's intermediate working instead of its final answer - marking correct answers wrong. Stripping reasoning blocks and anchoring on the final answer changed deepseek's score dramatically.&lt;/p&gt;

&lt;p&gt;A second bug: gemma answers "Negative." then explains itself unprompted. I was only checking the last line, so a correct answer scored zero. That would have penalised every chatty small model across the whole benchmark.&lt;/p&gt;

&lt;p&gt;Both are now covered by tests. If you build evals, check this before you trust your numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Caveats, up front
&lt;/h2&gt;

&lt;p&gt;3-12 prompts per category, so a single item moves a percentage a lot. Only auto-gradable short-answer tasks, which excludes the open-ended writing bigger models are usually better at. One machine, Q4 quants, backend-reported timings with an uncontrolled OS cache.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it on your own models
&lt;/h2&gt;

&lt;p&gt;MIT, runs entirely locally, never pulls or deletes models:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/RitikPatill/routefoundry" rel="noopener noreferrer"&gt;https://github.com/RitikPatill/routefoundry&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Raw rows and conditions are committed in the repo, so you can check the grading rather than trust the table.&lt;/p&gt;

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