<?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: sekumohamed</title>
    <description>The latest articles on DEV Community by sekumohamed (@sekumohamed).</description>
    <link>https://dev.to/sekumohamed</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%2F3888734%2F782ba0e1-5059-4a3c-9c00-a2d365358519.png</url>
      <title>DEV Community: sekumohamed</title>
      <link>https://dev.to/sekumohamed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sekumohamed"/>
    <language>en</language>
    <item>
      <title>I benchmarked 3 local LLMs on 50 factual questions -here's what failed</title>
      <dc:creator>sekumohamed</dc:creator>
      <pubDate>Mon, 20 Apr 2026 10:27:18 +0000</pubDate>
      <link>https://dev.to/sekumohamed/i-benchmarked-3-local-llms-on-50-factual-questions-heres-what-failed-13g6</link>
      <guid>https://dev.to/sekumohamed/i-benchmarked-3-local-llms-on-50-factual-questions-heres-what-failed-13g6</guid>
      <description>&lt;p&gt;I spent the last few days building an open-source hallucination &lt;br&gt;
benchmark for local LLMs. Here's what I found.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;50 factual questions across 5 categories&lt;/li&gt;
&lt;li&gt;3 models: llama3.2, mistral, phi3&lt;/li&gt;
&lt;li&gt;Running 100% locally using Ollama - no API keys needed&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The leaderboard
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Accuracy&lt;/th&gt;
&lt;th&gt;Correct/Total&lt;/th&gt;
&lt;th&gt;Avg Latency&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;llama3.2&lt;/td&gt;
&lt;td&gt;94%&lt;/td&gt;
&lt;td&gt;47/50&lt;/td&gt;
&lt;td&gt;5141ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;phi3&lt;/td&gt;
&lt;td&gt;88%&lt;/td&gt;
&lt;td&gt;44/50&lt;/td&gt;
&lt;td&gt;12780ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mistral&lt;/td&gt;
&lt;td&gt;86%&lt;/td&gt;
&lt;td&gt;43/50&lt;/td&gt;
&lt;td&gt;11218ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The failures
&lt;/h2&gt;

&lt;p&gt;llama3.2 failed on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"What is the speed of light in km/s?" → expected 299792&lt;/li&gt;
&lt;li&gt;"What is the capital of Brazil?" → expected Brasilia
&lt;/li&gt;
&lt;li&gt;"What is the closest star to Earth?" → expected Sun&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I tested next
&lt;/h2&gt;

&lt;p&gt;I ran 4 prompting techniques on all 20 questions to test &lt;br&gt;
whether smarter prompting reduces hallucinations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Baseline (plain question)&lt;/li&gt;
&lt;li&gt;Chain-of-thought (think step by step)&lt;/li&gt;
&lt;li&gt;Self-consistency (ask 5 times, take majority answer)&lt;/li&gt;
&lt;li&gt;RAG grounding (attach Wikipedia context before answering)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Result: all 4 scored 95% - llama3.2 is near-ceiling on &lt;br&gt;
structured factual QA. Prompting strategy doesn't move the needle &lt;br&gt;
when the model already knows the facts.&lt;/p&gt;

&lt;p&gt;Result: all 4 scored 95% - meaning llama3.2 is near-ceiling &lt;br&gt;
on structured factual QA. The bottleneck is question difficulty, &lt;br&gt;
not prompting strategy.&lt;/p&gt;

&lt;h2&gt;
  
  
  The code + dataset
&lt;/h2&gt;

&lt;p&gt;GitHub: github.com/sekumohamed/AI_reliability_lab&lt;br&gt;
Dataset: huggingface.co/datasets/sekumohamed/AI_reliability_benchmark&lt;/p&gt;

&lt;p&gt;The dataset has 50 questions you can use to benchmark any LLM.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Expanding to 200 medical domain questions and testing &lt;br&gt;
reliability on high-stakes use cases.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
