<?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: Sven Welack</title>
    <description>The latest articles on DEV Community by Sven Welack (@sven_welack).</description>
    <link>https://dev.to/sven_welack</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%2F4055825%2Ff8a3d1ae-1f8c-4057-9ec6-71943cac7c40.png</url>
      <title>DEV Community: Sven Welack</title>
      <link>https://dev.to/sven_welack</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sven_welack"/>
    <language>en</language>
    <item>
      <title>Running LLMs Locally on Consumer Hardware — Part 1: The Stack and First Benchmarks</title>
      <dc:creator>Sven Welack</dc:creator>
      <pubDate>Fri, 31 Jul 2026 09:32:51 +0000</pubDate>
      <link>https://dev.to/sven_welack/running-llms-locally-on-consumer-hardware-part-1-the-stack-and-first-benchmarks-5egk</link>
      <guid>https://dev.to/sven_welack/running-llms-locally-on-consumer-hardware-part-1-the-stack-and-first-benchmarks-5egk</guid>
      <description>&lt;p&gt;This is the first in a series of build-log posts documenting a local LLM project, in which models are run on owned consumer hardware rather than through a cloud API. The present entry covers the hardware, the software stack, and the benchmarks by which a primary model was selected.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hardware
&lt;/h2&gt;

&lt;p&gt;Two machines are used, both consumer-grade. All benchmarks reported below were obtained on the primary desktop.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Machine&lt;/th&gt;
&lt;th&gt;CPU&lt;/th&gt;
&lt;th&gt;RAM&lt;/th&gt;
&lt;th&gt;GPU&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Primary desktop&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Ryzen 5950X&lt;/td&gt;
&lt;td&gt;~80 GB DDR4&lt;/td&gt;
&lt;td&gt;AMD RX 6900XT (16 GB)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Secondary box&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Ryzen 5600G&lt;/td&gt;
&lt;td&gt;32 GB&lt;/td&gt;
&lt;td&gt;NVIDIA GTX 1060 (6 GB)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The software stack
&lt;/h2&gt;

&lt;p&gt;Ollama serves as the model runner across two GPU vendors: ROCm 5.7 for the AMD card on the primary desktop, and CUDA for the NVIDIA card on the secondary box.&lt;/p&gt;

&lt;p&gt;The primary model is Gemma 4 26B, a mixture-of-experts model with roughly 3.8B active parameters, quantized to Q4_K_M and occupying approximately 18 GB on disk. On the RX 6900XT it is run with an automatic GPU/CPU layer split, as the Q4 weights together with the KV cache exceed the 16 GB of available VRAM. Several Ollama settings were enabled to recover headroom: flash attention, and an 8-bit (&lt;code&gt;q8_0&lt;/code&gt;) KV cache, the latter approximately halving the cache footprint. A free cloud tier is retained for occasional heavier tasks, though the objective is to run as much as possible locally.&lt;/p&gt;

&lt;h2&gt;
  
  
  Selecting a model: benchmarks
&lt;/h2&gt;

&lt;p&gt;Before a primary model was chosen, the installed models were benchmarked. Two properties were of interest: throughput and output quality.&lt;/p&gt;

&lt;p&gt;Throughput was measured on the primary desktop with a 500-word essay prompt (&lt;code&gt;ollama run &amp;lt;model&amp;gt; --verbose&lt;/code&gt;):&lt;/p&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;Tokens/sec&lt;/th&gt;
&lt;th&gt;Duration&lt;/th&gt;
&lt;th&gt;Tokens out&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;gemma4:26b&lt;/td&gt;
&lt;td&gt;18.86&lt;/td&gt;
&lt;td&gt;50.11s&lt;/td&gt;
&lt;td&gt;945&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;gemma4-26b (64K ctx)&lt;/td&gt;
&lt;td&gt;17.96&lt;/td&gt;
&lt;td&gt;51.99s&lt;/td&gt;
&lt;td&gt;934&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mistral:7b-instruct&lt;/td&gt;
&lt;td&gt;34.81&lt;/td&gt;
&lt;td&gt;10.17s&lt;/td&gt;
&lt;td&gt;354&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;llama3.2&lt;/td&gt;
&lt;td&gt;57.11&lt;/td&gt;
&lt;td&gt;3.99s&lt;/td&gt;
&lt;td&gt;228&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The smaller models are substantially faster; their token counts, however, are lower, and in practice their responses were correspondingly shallower.&lt;/p&gt;

&lt;p&gt;Quality was assessed with a five-task suite spanning logic, coding, summarization, creative writing, and instruction-following:&lt;/p&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;Score&lt;/th&gt;
&lt;th&gt;Note&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;gemma4-26b (64K)&lt;/td&gt;
&lt;td&gt;50/50&lt;/td&gt;
&lt;td&gt;Flawless instruction-following&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;glm-4.7-flash&lt;/td&gt;
&lt;td&gt;42/50&lt;/td&gt;
&lt;td&gt;Missed only a complex string-formatting task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;qwen3-coder:30b&lt;/td&gt;
&lt;td&gt;40/50&lt;/td&gt;
&lt;td&gt;Overthinks logic; hallucinated a fake country&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;llama3.2&lt;/td&gt;
&lt;td&gt;28/50&lt;/td&gt;
&lt;td&gt;Failed logic entirely&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mistral:7b&lt;/td&gt;
&lt;td&gt;26/50&lt;/td&gt;
&lt;td&gt;Failed logic and negative constraints&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A harder ten-task variant — incorporating a lipogram, a theory-of-mind question, and a riddle — was subsequently administered, on which Gemma 4 26B scored 99/100 while sustaining approximately 17 tokens/sec. This represents the local optimum: strong quality at a workable speed.&lt;/p&gt;

&lt;p&gt;The principle that follows is that throughput and quality trade off against one another, and the fastest available model is rarely the appropriate default for substantive work. Gemma 4 26B is slower than the 7B models yet markedly more accurate, and it was therefore adopted as the primary model.&lt;/p&gt;

&lt;h2&gt;
  
  
  What follows
&lt;/h2&gt;

&lt;p&gt;With a runner, a model, and a hardware baseline established, subsequent entries turn to the extraction of useful work from the setup. We intend to address context length and KV-cache trade-offs; the distinction between prefill and generation, and why a machine without a GPU can sustain conversation yet falter on large prompts; and the practice of keeping models resident to avoid cold-start reload penalties.&lt;/p&gt;

&lt;p&gt;The measured figures are reported as-is, dead ends included. Part 2 will follow.&lt;/p&gt;

</description>
      <category>localllama</category>
      <category>ai</category>
      <category>llm</category>
      <category>homelab</category>
    </item>
  </channel>
</rss>
