<?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: Overnight Desk</title>
    <description>The latest articles on DEV Community by Overnight Desk (@overnightdeskops).</description>
    <link>https://dev.to/overnightdeskops</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%2F4137428%2F844a82d4-67c2-4068-bab1-9b2802bd6be8.png</url>
      <title>DEV Community: Overnight Desk</title>
      <link>https://dev.to/overnightdeskops</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/overnightdeskops"/>
    <language>en</language>
    <item>
      <title>What It Really Costs to Run a Local LLM 24/7 (Power, Amortization, Cost per Query)</title>
      <dc:creator>Overnight Desk</dc:creator>
      <pubDate>Tue, 22 Sep 2026 10:45:16 +0000</pubDate>
      <link>https://dev.to/overnightdeskops/what-it-really-costs-to-run-a-local-llm-247-power-amortization-cost-per-query-2p00</link>
      <guid>https://dev.to/overnightdeskops/what-it-really-costs-to-run-a-local-llm-247-power-amortization-cost-per-query-2p00</guid>
      <description>&lt;p&gt;Everyone asks what hardware a local LLM needs. Almost nobody asks what it costs to leave one running. I did the math for a Raspberry Pi 5 serving a small model around the clock.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the board actually draws
&lt;/h2&gt;

&lt;p&gt;A Pi 5 idles around 2.7-3.5 W with a minimal OS. Sustained LLM inference on all four cores pushes it to roughly 7-9 W, more with an NVMe hat or USB SSD. Add an active cooler (0.5-1 W) and any accelerator HAT, and budget headroom on top.&lt;/p&gt;

&lt;p&gt;The official 27 W (5V/5A) USB-C PSU exists for a reason: undervoltage during a long generation run shows up as silent errors and throttled clocks before it ever shows up as a reboot.&lt;/p&gt;

&lt;h2&gt;
  
  
  The monthly cost reality
&lt;/h2&gt;

&lt;p&gt;At a sustained 8 W average, 24/7 operation is about 5.8 kWh per month. At typical residential rates that's roughly $1-2/month - cheap, but not zero, and it triples with a second board or an accelerator.&lt;/p&gt;

&lt;h2&gt;
  
  
  The number that actually matters: cost per query
&lt;/h2&gt;

&lt;p&gt;Take monthly power + hardware amortization (a complete Pi 5 build over 3 years is ~$4-5/month) and divide by your monthly queries.&lt;/p&gt;

&lt;p&gt;Below a few thousand queries a month, a cloud API at fractions of a cent per call usually wins. Above it, local wins and keeps winning forever. Your crossover point depends on your rates and query sizes - which is why this needs a calculator, not a blog table.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do your own math
&lt;/h2&gt;

&lt;p&gt;I packaged both sides of this: a &lt;a href="https://overnightdesk.myshoppex.io/product/local-ai-power-budget-planner" rel="noopener noreferrer"&gt;Power Budget Planner&lt;/a&gt; that specs PSU, cooling draw and runtime budgets in one sheet, and a &lt;a href="https://overnightdesk.myshoppex.io/product/local-ai-total-cost-calculator" rel="noopener noreferrer"&gt;Total Cost Calculator&lt;/a&gt; that runs hardware + power + time against cloud API prices and gives you cost per month and per query.&lt;/p&gt;

&lt;p&gt;More guides: &lt;a href="https://overnightdesk-ops.github.io/" rel="noopener noreferrer"&gt;Local AI on Raspberry Pi - hub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What's your setup costing you? Curious whether people actually meter their boards.&lt;/p&gt;

</description>
      <category>ai</category>
    </item>
    <item>
      <title>How to Benchmark LLMs on a Raspberry Pi 5 (llama.cpp, Step by Step)</title>
      <dc:creator>Overnight Desk</dc:creator>
      <pubDate>Tue, 22 Sep 2026 10:43:52 +0000</pubDate>
      <link>https://dev.to/overnightdeskops/how-to-benchmark-llms-on-a-raspberry-pi-5-llamacpp-step-by-step-3abd</link>
      <guid>https://dev.to/overnightdeskops/how-to-benchmark-llms-on-a-raspberry-pi-5-llamacpp-step-by-step-3abd</guid>
      <description>&lt;p&gt;Most "Raspberry Pi AI benchmark" numbers on the internet are one-off runs with unknown settings. If you want numbers you can trust - and compare - you need a method. This is the one I use.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Install llama.cpp
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt update &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;build-essential cmake git &lt;span class="nt"&gt;-y&lt;/span&gt;
git clone https://github.com/ggml-org/llama.cpp
&lt;span class="nb"&gt;cd &lt;/span&gt;llama.cpp &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; cmake &lt;span class="nt"&gt;-B&lt;/span&gt; build &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; cmake &lt;span class="nt"&gt;--build&lt;/span&gt; build &lt;span class="nt"&gt;--config&lt;/span&gt; Release &lt;span class="nt"&gt;-j4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Build from source. Prebuilt binaries rarely match your kernel and flags, and a mismatched build can cost you 20% throughput.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Pick models that actually fit
&lt;/h2&gt;

&lt;p&gt;A Pi 5 has 8 GB of RAM shared with the OS. Stay under ~5 GB for model + context or you'll swap and your numbers are garbage. Reliable picks in Q4: TinyLlama 1.1B, Qwen 1.5B/3B, Phi-3-mini (tight but works), Gemma 2B. Skip 7B+ unless you enjoy watching swap thrash.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Measure honestly
&lt;/h2&gt;

&lt;p&gt;Use &lt;code&gt;llama-bench&lt;/code&gt; with a fixed prompt and generation length. Log three numbers per run: prompt processing tok/s, generation tok/s, and SoC temperature at start and end. A run without a temperature is not a benchmark - thermal throttling on an uncooled Pi 5 shows up around 85°C and can cut throughput by a third mid-run.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./build/bin/llama-bench &lt;span class="nt"&gt;-m&lt;/span&gt; models/qwen-3b-q4.gguf &lt;span class="nt"&gt;-p&lt;/span&gt; 128 &lt;span class="nt"&gt;-n&lt;/span&gt; 256 &lt;span class="nt"&gt;-r&lt;/span&gt; 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Keep runs repeatable
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Fix the CPU governor (&lt;code&gt;performance&lt;/code&gt;) for the run and note it down.&lt;/li&gt;
&lt;li&gt;Same prompt set every time. Different prompts = different numbers.&lt;/li&gt;
&lt;li&gt;Cool the board between runs, or say so in the log.&lt;/li&gt;
&lt;li&gt;Record ambient temperature when comparing across days.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Going further
&lt;/h2&gt;

&lt;p&gt;I run this protocol often enough that I packaged it: a &lt;a href="https://overnightdesk.myshoppex.io/product/raspberry-pi-local-ai-benchmark-workbook" rel="noopener noreferrer"&gt;Benchmark Workbook with the log sheets and test matrix pre-built&lt;/a&gt;, and a &lt;a href="https://overnightdesk.myshoppex.io/product/local-ai-benchmark-report-generator" rel="noopener noreferrer"&gt;Report Generator&lt;/a&gt; that turns raw logs into a shareable report.&lt;/p&gt;

&lt;p&gt;Full guide with more detail: &lt;a href="https://overnightdesk-ops.github.io/" rel="noopener noreferrer"&gt;Local AI on Raspberry Pi - guides hub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What are you running on your Pi? Curious what tok/s people are seeing on 3B-class models.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>raspberrypi</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
