<?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: The AI Pal</title>
    <description>The latest articles on DEV Community by The AI Pal (@ai_pal).</description>
    <link>https://dev.to/ai_pal</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%2F4108406%2Fdd7cef58-8bfa-46ef-9327-bc24e173e175.png</url>
      <title>DEV Community: The AI Pal</title>
      <link>https://dev.to/ai_pal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ai_pal"/>
    <language>en</language>
    <item>
      <title>[Boost]</title>
      <dc:creator>The AI Pal</dc:creator>
      <pubDate>Fri, 04 Sep 2026 17:23:22 +0000</pubDate>
      <link>https://dev.to/ai_pal/-3cnb</link>
      <guid>https://dev.to/ai_pal/-3cnb</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/ai_pal/run-qwen3-coder-next-locally-on-a-cost-effective-ai-home-pc-with-llamacpp-16gn" class="crayons-story__hidden-navigation-link"&gt;Run Qwen3-Coder-Next Locally on a Cost-Effective AI Home PC with llama.cpp&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/ai_pal" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4108406%2Fdd7cef58-8bfa-46ef-9327-bc24e173e175.png" alt="ai_pal profile" class="crayons-avatar__image" width="400" height="400"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/ai_pal" class="crayons-story__secondary fw-medium m:hidden"&gt;
              The AI Pal
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                The AI Pal
                
                
              
              &lt;div id="story-author-preview-content-4572445" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/ai_pal" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4108406%2Fdd7cef58-8bfa-46ef-9327-bc24e173e175.png" class="crayons-avatar__image" alt="" width="400" height="400"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;The AI Pal&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/ai_pal/run-qwen3-coder-next-locally-on-a-cost-effective-ai-home-pc-with-llamacpp-16gn" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Sep 4&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/ai_pal/run-qwen3-coder-next-locally-on-a-cost-effective-ai-home-pc-with-llamacpp-16gn" id="article-link-4572445"&gt;
          Run Qwen3-Coder-Next Locally on a Cost-Effective AI Home PC with llama.cpp
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/llm"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;llm&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/local"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;local&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/tutorial"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;tutorial&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/ai_pal/run-qwen3-coder-next-locally-on-a-cost-effective-ai-home-pc-with-llamacpp-16gn" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;5&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/ai_pal/run-qwen3-coder-next-locally-on-a-cost-effective-ai-home-pc-with-llamacpp-16gn#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            8 min read
          &lt;/small&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Run Qwen3-Coder-Next Locally on a Cost-Effective AI Home PC with llama.cpp</title>
      <dc:creator>The AI Pal</dc:creator>
      <pubDate>Fri, 04 Sep 2026 09:03:37 +0000</pubDate>
      <link>https://dev.to/ai_pal/run-qwen3-coder-next-locally-on-a-cost-effective-ai-home-pc-with-llamacpp-16gn</link>
      <guid>https://dev.to/ai_pal/run-qwen3-coder-next-locally-on-a-cost-effective-ai-home-pc-with-llamacpp-16gn</guid>
      <description>&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Why Try an MoE Model?&lt;/li&gt;
&lt;li&gt;What MoE Means in Plain English&lt;/li&gt;
&lt;li&gt;The Cost-Effective AI Home PC I Am Targeting&lt;/li&gt;
&lt;li&gt;Install llama.cpp&lt;/li&gt;
&lt;li&gt;Download a GGUF Model&lt;/li&gt;
&lt;li&gt;Start the Model&lt;/li&gt;
&lt;li&gt;Fit the Model to Your Hardware&lt;/li&gt;
&lt;li&gt;Useful Local GenAI Projects&lt;/li&gt;
&lt;li&gt;What to Expect&lt;/li&gt;
&lt;li&gt;A Few Safety Checks&lt;/li&gt;
&lt;li&gt;Final Thoughts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Running a local language model does not always mean buying a workstation with a huge graphics card.&lt;/p&gt;

&lt;p&gt;Many cost-effective home PCs already have the parts needed for a useful local AI server: a reasonable CPU, plenty of system memory, an SSD, and a graphics card that can do some of the heavy lifting.&lt;/p&gt;

&lt;p&gt;In my previous guide, I used Ollama because it makes the first local model easy to run. This time, I want to look at &lt;code&gt;llama.cpp&lt;/code&gt; and a different kind of model: a Mixture-of-Experts, or MoE, model.&lt;/p&gt;

&lt;p&gt;The goal is not to claim that an 8 GB graphics card can run every large model at full speed. It cannot. The goal is to show how a cost-effective AI home PC can host a surprisingly capable local model when we make sensible choices about model size, quantization, VRAM, and system RAM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Try an MoE Model?
&lt;/h2&gt;

&lt;p&gt;An MoE model can be interesting when you want better answers than a very small model but do not have the budget for a high-end AI GPU.&lt;/p&gt;

&lt;p&gt;MoE models contain several smaller expert networks. For each part of a prompt, the model routes the work to only some of those experts. This means the model may have a large total parameter count while using a smaller number of active parameters for each token.&lt;/p&gt;

&lt;p&gt;That can improve the quality-to-speed balance. It does not make the model free to run, though. The model still needs to store its weights somewhere, so system RAM and disk space remain important.&lt;/p&gt;

&lt;h2&gt;
  
  
  What MoE Means in Plain English
&lt;/h2&gt;

&lt;p&gt;Think of a workshop with several specialists.&lt;/p&gt;

&lt;p&gt;One person is good at code, another is good at writing, and another is good at reasoning. The manager does not ask everyone to work on every small task. It sends each task to the specialists most likely to help.&lt;/p&gt;

&lt;p&gt;That is the basic idea behind a Mixture-of-Experts model.&lt;/p&gt;

&lt;p&gt;There are two numbers worth keeping separate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Total parameters:&lt;/strong&gt; the size of all the experts and shared parts stored in the model&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Active parameters:&lt;/strong&gt; the smaller part used for a particular piece of text&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The active number often helps explain why an MoE model can respond efficiently. The total number still matters when planning memory. A quantized model may fit partly in VRAM and partly in system RAM, but it still has to fit somewhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Cost-Effective AI Home PC I Am Targeting
&lt;/h2&gt;

&lt;p&gt;This guide is aimed at a fairly normal home PC rather than a dedicated server.&lt;/p&gt;

&lt;p&gt;A comfortable starting point would be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An NVIDIA or AMD GPU with 8 to 16 GB of VRAM&lt;/li&gt;
&lt;li&gt;32 GB of system RAM&lt;/li&gt;
&lt;li&gt;A modern six-core or eight-core CPU&lt;/li&gt;
&lt;li&gt;An SSD with at least 50 GB of free space&lt;/li&gt;
&lt;li&gt;Windows or Linux&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can try this with 16 GB of RAM, but 32 GB gives the operating system and the model more breathing room. If the model spills into system RAM, response speed will depend heavily on your CPU, memory bandwidth, and storage.&lt;/p&gt;

&lt;p&gt;For the example in this post, I am using &lt;a href="https://huggingface.co/unsloth/Qwen3-Coder-Next-GGUF" rel="noopener noreferrer"&gt;Qwen3-Coder-Next GGUF&lt;/a&gt;. It is designed for coding agents and has 80 billion total parameters, with about 3 billion active for each token. That is a useful example of why MoE models are interesting for local coding work.&lt;/p&gt;

&lt;p&gt;There is an important catch. The model page lists the &lt;code&gt;UD-Q4_K_M&lt;/code&gt; file at roughly 49 GB. An 8 GB GPU and 32 GB of RAM will not be a comfortable Q4 setup. For that machine, start with a smaller 2-bit quantization, or use a smaller MoE model. Treat Qwen3-Coder-Next Q4 as a stretch target for a PC with more than 45 GB of combined RAM and VRAM, plus extra room for the context window.&lt;/p&gt;

&lt;p&gt;That means an 8 GB GPU will not hold the whole model by itself. That is fine. &lt;code&gt;llama.cpp&lt;/code&gt; can divide the work between the GPU and CPU.&lt;/p&gt;

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

&lt;p&gt;The easiest Windows option is the official package available through WinGet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;winget&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;llama.cpp&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Close and reopen PowerShell, then check that the command is available:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;llama&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--version&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;You can also download a pre-built package from the &lt;a href="https://github.com/ggml-org/llama.cpp/releases" rel="noopener noreferrer"&gt;llama.cpp releases page&lt;/a&gt;, or build it yourself from the &lt;a href="https://github.com/ggml-org/llama.cpp" rel="noopener noreferrer"&gt;llama.cpp repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The project requires models in the &lt;a href="https://github.com/ggml-org/ggml/blob/master/docs/gguf.md" rel="noopener noreferrer"&gt;GGUF format&lt;/a&gt;. GGUF is simply the model file format used by &lt;code&gt;llama.cpp&lt;/code&gt; and several other local AI tools.&lt;/p&gt;
&lt;h2&gt;
  
  
  Download a GGUF Model
&lt;/h2&gt;

&lt;p&gt;The current &lt;code&gt;llama.cpp&lt;/code&gt; command can download a compatible model directly from Hugging Face. This is convenient for a first test:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;llama&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;cli&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-hf&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;unsloth/Qwen3-Coder-Next-GGUF:UD-IQ2_M&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The first run downloads a large file, so do not be surprised if it takes a while. Make sure you have enough free space before starting.&lt;/p&gt;

&lt;p&gt;If you prefer to download the file in a browser, save it somewhere simple, such as:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;D:\models\Qwen3-Coder-Next-UD-IQ2_M.gguf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Use the exact filename you downloaded. Quantization names are part of the model choice. A Q4 file normally uses less memory than an 8-bit or 16-bit file, but it may give up a little quality.&lt;/p&gt;
&lt;h2&gt;
  
  
  Start the Model
&lt;/h2&gt;

&lt;p&gt;For a quick terminal test, use:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;llama&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;cli&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-hf&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;unsloth/Qwen3-Coder-Next-GGUF:UD-IQ2_M&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-c&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;4096&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For a local service that other applications can use, start &lt;code&gt;llama serve&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;llama&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;serve&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-hf&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;unsloth/Qwen3-Coder-Next-GGUF:UD-IQ2_M&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-c&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;4096&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--host&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;127.0.0.1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--port&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;8080&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The server provides a browser interface and an OpenAI-compatible API on your own computer. The &lt;a href="https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md" rel="noopener noreferrer"&gt;llama.cpp server guide&lt;/a&gt; explains the available options.&lt;/p&gt;

&lt;p&gt;Some older Windows packages use the executable name &lt;code&gt;llama-server.exe&lt;/code&gt; instead. The same idea looks like this when using a local file:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;llama-server.exe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;D:\models\Qwen3-Coder-Next-UD-IQ2_M.gguf&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;-c&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;4096&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;--host&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;127.0.0.1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;--port&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;8080&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Keeping the host set to &lt;code&gt;127.0.0.1&lt;/code&gt; means the service is available only on your computer. That is a sensible default for a home lab.&lt;/p&gt;
&lt;h2&gt;
  
  
  Fit the Model to Your Hardware
&lt;/h2&gt;

&lt;p&gt;The most important setting is not always the model name. It is how much of the model you ask the GPU to hold.&lt;/p&gt;

&lt;p&gt;With a recent build of &lt;code&gt;llama.cpp&lt;/code&gt;, the &lt;code&gt;-ngl&lt;/code&gt; option controls GPU layer offloading. More layers on the GPU usually means better speed, but it also uses more VRAM.&lt;/p&gt;

&lt;p&gt;For an 8 GB GPU and 32 GB of RAM, start conservatively:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;llama&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;serve&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;-hf&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;unsloth/Qwen3-Coder-Next-GGUF:UD-IQ2_M&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;-c&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;4096&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;-ngl&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;999&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;--cpu-moe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;--host&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;127.0.0.1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;--port&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;8080&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The &lt;code&gt;--cpu-moe&lt;/code&gt; option keeps the MoE expert weights in system RAM. The rest of the model can still use the GPU when there is room. This may be slower than keeping everything in VRAM, but it is a useful way to make a larger model work on a smaller card.&lt;/p&gt;

&lt;p&gt;For Qwen3-Coder-Next, the model page recommends more than 30 GB of combined RAM and VRAM for its smaller 2-bit XL quantizations. That makes an 8 GB GPU and 32 GB of system RAM a realistic learning setup, although you should expect lower speed than a fully GPU-resident model. If you have 16 GB of VRAM and 32 GB of RAM, the Q4 files become a more realistic experiment, but still leave room for the operating system and context cache.&lt;/p&gt;

&lt;p&gt;If the process runs out of memory, try these changes one at a time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lower the context size from &lt;code&gt;4096&lt;/code&gt; to &lt;code&gt;2048&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Use a smaller quantization or a smaller model&lt;/li&gt;
&lt;li&gt;Keep more expert weights on the CPU&lt;/li&gt;
&lt;li&gt;Close games, browsers, and other GPU-heavy applications&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;-ngl&lt;/code&gt; with a lower number instead of &lt;code&gt;999&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you have 12 or 16 GB of VRAM, try removing &lt;code&gt;--cpu-moe&lt;/code&gt; and compare the speed and memory use. Every graphics card, driver, and model build behaves a little differently, so treat these commands as starting points rather than universal benchmarks.&lt;/p&gt;
&lt;h2&gt;
  
  
  Useful Local GenAI Projects
&lt;/h2&gt;

&lt;p&gt;Once the server is running, it becomes more than a chat window. You can connect local applications to it and build small generative AI projects around your own data.&lt;/p&gt;

&lt;p&gt;Here are a few practical home lab ideas:&lt;/p&gt;
&lt;h3&gt;
  
  
  Home Lab Assistant
&lt;/h3&gt;

&lt;p&gt;Keep your Docker Compose files, network notes, and maintenance documentation in a private folder. Build a simple question-and-answer tool that helps you find commands and explains how your setup works.&lt;/p&gt;
&lt;h3&gt;
  
  
  Private Document Summaries
&lt;/h3&gt;

&lt;p&gt;Use the local model to summarize manuals, project notes, or long text files without uploading them to a cloud service. Always check the summary against the original document.&lt;/p&gt;
&lt;h3&gt;
  
  
  Local Coding Helper
&lt;/h3&gt;

&lt;p&gt;Point an editor or a small script at the OpenAI-compatible endpoint and use the model to explain code, suggest tests, or help understand an error. It may not replace a cloud coding model, but it is useful for private experiments.&lt;/p&gt;
&lt;h3&gt;
  
  
  Log File Companion
&lt;/h3&gt;

&lt;p&gt;Send selected, sanitized log entries to the model and ask it to group repeated errors or explain what to investigate next. Avoid sending passwords, tokens, private keys, or personal information.&lt;/p&gt;
&lt;h3&gt;
  
  
  Personal Knowledge Search
&lt;/h3&gt;

&lt;p&gt;The next step is retrieval-augmented generation, often called RAG. A small local program can search your notes first, then give the relevant passages to the model as context. This is a good project for learning how search, prompts, and local models fit together.&lt;/p&gt;
&lt;h2&gt;
  
  
  What to Expect
&lt;/h2&gt;

&lt;p&gt;An MoE model on a cost-effective AI home PC can be useful, but it will not feel exactly like a hosted model running on professional hardware.&lt;/p&gt;

&lt;p&gt;You may see a delay while the model loads. The first response can be slower than later responses. Long conversations use more memory because the model must keep more context available. If the model uses system RAM for expert weights, generation speed may drop noticeably.&lt;/p&gt;

&lt;p&gt;That is not a failure. A local model is a trade-off between privacy, cost, speed, and quality. For short questions, coding explanations, document summaries, and home lab notes, the trade-off can be very reasonable.&lt;/p&gt;

&lt;p&gt;Do not compare your tokens-per-second number directly with someone else's unless the model file, quantization, context size, prompt, backend, and hardware are also comparable.&lt;/p&gt;
&lt;h2&gt;
  
  
  A Few Safety Checks
&lt;/h2&gt;

&lt;p&gt;Keep the server bound to &lt;code&gt;127.0.0.1&lt;/code&gt; until you understand authentication and network access. Do not expose it directly to the public internet.&lt;/p&gt;

&lt;p&gt;Be careful with tools that let a model run shell commands or change files. Start with read-only access and require confirmation before making changes.&lt;/p&gt;

&lt;p&gt;Also remember that local does not mean automatically correct. A model can invent an answer with great confidence. Verify commands before running them, especially commands involving disks, firewalls, accounts, backups, or deletion.&lt;/p&gt;


&lt;div class="crayons-card c-embed"&gt;

  &lt;br&gt;
&lt;strong&gt;Security note:&lt;/strong&gt; Never send API keys, passwords, private keys, or confidential documents to a model unless you understand exactly where the data is going and how it is stored.&lt;br&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;A cost-effective AI home PC can be a useful local AI machine even when its GPU is not designed for large language models.&lt;/p&gt;

&lt;p&gt;The important part is to plan around the whole computer. VRAM matters, but so do system RAM, CPU speed, storage, cooling, and the model quantization. An MoE model can give you a larger model experience without requiring every parameter to be active for every token, while &lt;code&gt;llama.cpp&lt;/code&gt; gives you control over how the workload is split between the GPU and CPU.&lt;/p&gt;

&lt;p&gt;Start with a smaller context, keep the server private, and change one setting at a time. The best setup is not the one with the biggest model. It is the one that runs reliably and is useful enough that you keep using it.&lt;/p&gt;

&lt;p&gt;In a future post, I will compare a few open MoE models on modest GPUs and look more closely at VRAM usage, CPU offloading, speed, and practical local generative AI workloads.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>local</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Running a Local LLM on an Older Computer: A Simple Home Lab Guide</title>
      <dc:creator>The AI Pal</dc:creator>
      <pubDate>Thu, 03 Sep 2026 18:11:59 +0000</pubDate>
      <link>https://dev.to/ai_pal/running-a-local-llm-on-an-older-computer-a-simple-home-lab-guide-1h4c</link>
      <guid>https://dev.to/ai_pal/running-a-local-llm-on-an-older-computer-a-simple-home-lab-guide-1h4c</guid>
      <description>&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Why Run an AI Model at Home?&lt;/li&gt;
&lt;li&gt;What Is a Local LLM?&lt;/li&gt;
&lt;li&gt;What Kind of Computer Do You Need?&lt;/li&gt;
&lt;li&gt;Installing Ollama&lt;/li&gt;
&lt;li&gt;Downloading Your First Model&lt;/li&gt;
&lt;li&gt;Starting a Conversation&lt;/li&gt;
&lt;li&gt;What If the Model Is Too Slow?&lt;/li&gt;
&lt;li&gt;Creating a Home Lab Assistant&lt;/li&gt;
&lt;li&gt;Using Ollama from Another Program&lt;/li&gt;
&lt;li&gt;Adding a Web Interface&lt;/li&gt;
&lt;li&gt;Common Problems&lt;/li&gt;
&lt;li&gt;Home Lab Project Ideas&lt;/li&gt;
&lt;li&gt;Keep Your Setup Private&lt;/li&gt;
&lt;li&gt;What Is Coming Next?&lt;/li&gt;
&lt;li&gt;Final Thoughts&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Run an AI Model at Home?
&lt;/h2&gt;

&lt;p&gt;When most people hear "AI language model," they imagine expensive servers and powerful computers.&lt;/p&gt;

&lt;p&gt;That is not always necessary.&lt;/p&gt;

&lt;p&gt;You can run a small language model on an older laptop, a regular desktop, a mini PC, or a home lab server. It may not be as fast as the largest online AI tools, but it is still useful for learning and experimenting.&lt;/p&gt;

&lt;p&gt;In this guide, I will show you how to run a local AI model using Ollama.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is a Local LLM?
&lt;/h2&gt;

&lt;p&gt;LLM stands for Large Language Model. It is the technology used by many AI chat tools.&lt;/p&gt;

&lt;p&gt;A local LLM runs directly on your computer instead of on a remote server owned by a company.&lt;/p&gt;

&lt;p&gt;This has several advantages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your questions and files can stay on your computer&lt;/li&gt;
&lt;li&gt;You can use it without paying for every request&lt;/li&gt;
&lt;li&gt;It can work without an internet connection after the model is downloaded&lt;/li&gt;
&lt;li&gt;You can experiment freely&lt;/li&gt;
&lt;li&gt;It is a good way to learn how AI applications work&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are also some limitations. Smaller local models may not be as accurate or detailed as the largest cloud-based models. For a home lab, however, they are often good enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Kind of Computer Do You Need?
&lt;/h2&gt;

&lt;p&gt;You do not need a new gaming computer to get started.&lt;/p&gt;

&lt;p&gt;A practical starting system might have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;8 GB of RAM for very small models&lt;/li&gt;
&lt;li&gt;16 GB of RAM for a more comfortable experience&lt;/li&gt;
&lt;li&gt;Four or more CPU cores&lt;/li&gt;
&lt;li&gt;At least 10 GB of free storage&lt;/li&gt;
&lt;li&gt;A graphics card is helpful, but not required&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you have an older computer, start with that. You can always move the setup to a more powerful machine later.&lt;/p&gt;

&lt;p&gt;The amount of memory is usually more important than having the newest processor. Larger models need more memory, while smaller models can run on ordinary hardware.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Ollama
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://ollama.com" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt; is a tool that makes it easier to download and run local AI models.&lt;/p&gt;

&lt;p&gt;Download and install it for your operating system. Ollama supports Windows, macOS, and Linux.&lt;/p&gt;

&lt;p&gt;After installing it, open PowerShell, Terminal, or Command Prompt and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ollama &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If you see a version number, Ollama is installed correctly.&lt;/p&gt;

&lt;p&gt;You can also explore the Ollama GitHub repository if you want to learn more about how it works.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/ollama" rel="noopener noreferrer"&gt;
        ollama
      &lt;/a&gt; / &lt;a href="https://github.com/ollama/ollama" rel="noopener noreferrer"&gt;
        ollama
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Get up and running with Kimi-K2.6, GLM-5.2, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;
  &lt;a href="https://ollama.com" rel="nofollow noopener noreferrer"&gt;
    &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fprivate-user-images.githubusercontent.com%2F3325447%2F254932576-0d0b44e2-8f4a-4e99-9b52-a5c1c741c8f7.png%3Fjwt%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODg0NTk5MDEsIm5iZiI6MTc4ODQ1OTYwMSwicGF0aCI6Ii8zMzI1NDQ3LzI1NDkzMjU3Ni0wZDBiNDRlMi04ZjRhLTRlOTktOWI1Mi1hNWMxYzc0MWM4ZjcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDkwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA5MDNUMTgyMDAxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzE2ZjQxMGI3OTBhMmMyYjQwMTc2MDMxODQ2YjU1ODlhZjI4N2Q5OTgwMzgyMmFkNTMwZjU4MDhmZTc3ZTM1NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.GOV7OepBrR4o_Nm9U3aum6WNb1bj0QvNwFpI16R8r8w" alt="ollama" width="200"&gt;
  &lt;/a&gt;
&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Ollama&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;Start building with open models.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Download&lt;/h2&gt;
&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;macOS&lt;/h3&gt;
&lt;/div&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;curl -fsSL https://ollama.com/install.sh &lt;span class="pl-k"&gt;|&lt;/span&gt; sh&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;or &lt;a href="https://ollama.com/download/Ollama.dmg" rel="nofollow noopener noreferrer"&gt;download manually&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Windows&lt;/h3&gt;

&lt;/div&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;irm https://ollama.com/install.ps1 &lt;span class="pl-k"&gt;|&lt;/span&gt; iex&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;or &lt;a href="https://ollama.com/download/OllamaSetup.exe" rel="nofollow noopener noreferrer"&gt;download manually&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Linux&lt;/h3&gt;

&lt;/div&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;curl -fsSL https://ollama.com/install.sh &lt;span class="pl-k"&gt;|&lt;/span&gt; sh&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://docs.ollama.com/linux#manual-install" rel="nofollow noopener noreferrer"&gt;Manual install instructions&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Docker&lt;/h3&gt;

&lt;/div&gt;

&lt;p&gt;The official &lt;a href="https://hub.docker.com/r/ollama/ollama" rel="nofollow noopener noreferrer"&gt;Ollama Docker image&lt;/a&gt; &lt;code&gt;ollama/ollama&lt;/code&gt; is available on Docker Hub.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Libraries&lt;/h3&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/ollama/ollama-python" rel="noopener noreferrer"&gt;ollama-python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/ollama/ollama-js" rel="noopener noreferrer"&gt;ollama-js&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Community&lt;/h3&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://discord.gg/ollama" rel="nofollow noopener noreferrer"&gt;Discord&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://x.com/ollama" rel="nofollow noopener noreferrer"&gt;𝕏 (Twitter)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://reddit.com/r/ollama" rel="nofollow noopener noreferrer"&gt;Reddit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Get started&lt;/h2&gt;

&lt;/div&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;ollama
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;You'll be prompted to run a model or connect Ollama to your existing agents or applications such as &lt;code&gt;Claude Code&lt;/code&gt;, &lt;code&gt;OpenClaw&lt;/code&gt;, &lt;code&gt;OpenCode&lt;/code&gt; , &lt;code&gt;Codex&lt;/code&gt;, &lt;code&gt;Copilot&lt;/code&gt;,  and more.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Coding&lt;/h3&gt;

&lt;/div&gt;

&lt;p&gt;To launch a specific integration:&lt;/p&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;ollama launch claude
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Supported integrations include &lt;a href="https://docs.ollama.com/integrations/claude-code" rel="nofollow noopener noreferrer"&gt;Claude Code&lt;/a&gt;, &lt;a href="https://docs.ollama.com/integrations/codex" rel="nofollow noopener noreferrer"&gt;Codex&lt;/a&gt;, &lt;a href="https://docs.ollama.com/integrations/copilot-cli" rel="nofollow noopener noreferrer"&gt;Copilot CLI&lt;/a&gt;, &lt;a href="https://docs.ollama.com/integrations/deepseek-harness" rel="nofollow noopener noreferrer"&gt;DeepSeek Harness&lt;/a&gt;, &lt;a href="https://docs.ollama.com/integrations/droid" rel="nofollow noopener noreferrer"&gt;Droid&lt;/a&gt;, and &lt;a href="https://docs.ollama.com/integrations/opencode" rel="nofollow noopener noreferrer"&gt;OpenCode&lt;/a&gt;.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;AI assistant&lt;/h3&gt;

&lt;/div&gt;

&lt;p&gt;Use &lt;a href="https://docs.ollama.com/integrations/openclaw" rel="nofollow noopener noreferrer"&gt;OpenClaw&lt;/a&gt; to turn Ollama into a personal AI assistant across WhatsApp, Telegram, Slack, Discord, and more:&lt;/p&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;ollama launch openclaw
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Chat with a model&lt;/h3&gt;

&lt;/div&gt;

&lt;p&gt;Run and chat with &lt;a href="https://ollama.com/library/gemma4" rel="nofollow noopener noreferrer"&gt;Gemma 4&lt;/a&gt;:&lt;/p&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;
&lt;pre class="notranslate"&gt;&lt;code&gt;ollama run&lt;/code&gt;&lt;/pre&gt;…&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/ollama/ollama" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



&lt;h2&gt;
  
  
  Downloading Your First Model
&lt;/h2&gt;

&lt;p&gt;For an older or modest computer, start with a small model:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ollama pull llama3.2:3b
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This downloads the model to your computer. The download may take a few minutes, depending on your internet connection. You only need to download it once.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;3b&lt;/code&gt; in the model name means that it has around three billion parameters. You do not need to understand the technical details yet. The important thing to remember is that smaller models are easier for regular computers to run.&lt;/p&gt;
&lt;h2&gt;
  
  
  Starting a Conversation
&lt;/h2&gt;

&lt;p&gt;After the model has finished downloading, start it with:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ollama run llama3.2:3b
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;You can now type questions directly into the terminal.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Explain Docker to me as if I have never used it before.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;You can also ask the model to explain error messages, help write small scripts, or summarize text.&lt;/p&gt;

&lt;p&gt;When you are finished, press &lt;code&gt;Ctrl + D&lt;/code&gt; to exit.&lt;/p&gt;

&lt;p&gt;That is all it takes to run your first local AI model.&lt;/p&gt;
&lt;h2&gt;
  
  
  What If the Model Is Too Slow?
&lt;/h2&gt;

&lt;p&gt;If your computer becomes slow or the model takes a long time to respond, try a smaller model:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ollama pull phi3:mini
ollama run phi3:mini
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Smaller models normally use less memory and respond faster. The trade-off is that their answers may be shorter or less detailed.&lt;/p&gt;

&lt;p&gt;A simple way to think about it is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Smaller models are faster and easier to run&lt;/li&gt;
&lt;li&gt;Larger models usually give better answers but need more memory&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is no need to start with the largest model available. A small model is perfectly fine for learning.&lt;/p&gt;
&lt;h2&gt;
  
  
  Creating a Home Lab Assistant
&lt;/h2&gt;

&lt;p&gt;Ollama lets you create a model with your own instructions.&lt;/p&gt;

&lt;p&gt;Create a file named &lt;code&gt;Modelfile&lt;/code&gt; and add this:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;FROM&lt;/span&gt;&lt;span class="s"&gt; llama3.2:3b&lt;/span&gt;

SYSTEM """
You are my home lab assistant.
Explain things clearly and avoid unnecessary technical language.
When giving commands, explain what each command does.
Warn me before suggesting commands that could delete or change data.
"""
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Now create the custom model:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ollama create homelab-assistant &lt;span class="nt"&gt;-f&lt;/span&gt; Modelfile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Start it with:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ollama run homelab-assistant
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;You now have an assistant designed to help with home lab topics.&lt;/p&gt;

&lt;p&gt;It can help explain Linux commands, Docker containers, networking concepts, Python scripts, and server errors. It will not always be correct, but it can be a useful learning companion.&lt;/p&gt;
&lt;h2&gt;
  
  
  Using Ollama from Another Program
&lt;/h2&gt;

&lt;p&gt;Ollama also provides a local API. This allows your own scripts and applications to communicate with the model.&lt;/p&gt;

&lt;p&gt;The API is usually available at:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:11434
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For example, you can send a request using &lt;code&gt;curl&lt;/code&gt; from a Linux or macOS terminal:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl http://localhost:11434/api/generate &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
  "model": "llama3.2:3b",
  "prompt": "Explain what a reverse proxy does",
  "stream": false
}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This makes it possible to build small projects such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A private chatbot&lt;/li&gt;
&lt;li&gt;A log file assistant&lt;/li&gt;
&lt;li&gt;A documentation helper&lt;/li&gt;
&lt;li&gt;A command-line question tool&lt;/li&gt;
&lt;li&gt;A local coding assistant&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You do not need to build an application immediately. It is enough to know that Ollama can connect to other programs when you are ready.&lt;/p&gt;
&lt;h2&gt;
  
  
  Adding a Web Interface
&lt;/h2&gt;

&lt;p&gt;The terminal works well, but a web interface can be more comfortable.&lt;/p&gt;

&lt;p&gt;Tools such as &lt;a href="https://github.com/open-webui/open-webui" rel="noopener noreferrer"&gt;Open WebUI&lt;/a&gt;, &lt;a href="https://github.com/danny-avila/LibreChat" rel="noopener noreferrer"&gt;LibreChat&lt;/a&gt;, and &lt;a href="https://github.com/Mintplex-Labs/anything-llm" rel="noopener noreferrer"&gt;AnythingLLM&lt;/a&gt; can connect to Ollama and provide a browser-based chat interface.&lt;/p&gt;

&lt;p&gt;For example, Open WebUI can be started with Docker:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 3000:8080 &lt;span class="nt"&gt;--add-host&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;host.docker.internal:host-gateway &lt;span class="nt"&gt;-v&lt;/span&gt; open-webui:/app/backend/data &lt;span class="nt"&gt;--name&lt;/span&gt; open-webui &lt;span class="nt"&gt;--restart&lt;/span&gt; always ghcr.io/open-webui/open-webui:main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;After it starts, open this address in your browser:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:3000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Docker commands can vary slightly between operating systems. Check the &lt;a href="https://docs.openwebui.com/getting-started/quick-start/connect-a-provider/starting-with-ollama/" rel="noopener noreferrer"&gt;Open WebUI documentation&lt;/a&gt; if the connection does not work immediately.&lt;/p&gt;
&lt;h2&gt;
  
  
  Common Problems
&lt;/h2&gt;
&lt;h3&gt;
  
  
  The Model Runs Slowly
&lt;/h3&gt;

&lt;p&gt;This is normal when running a model using only the computer's processor.&lt;/p&gt;

&lt;p&gt;Try closing other applications and switching to a smaller model. You may also get better performance by adding more RAM or using a supported graphics card.&lt;/p&gt;

&lt;p&gt;For simple questions, slower responses are usually acceptable.&lt;/p&gt;
&lt;h3&gt;
  
  
  Your Computer Runs Out of Memory
&lt;/h3&gt;

&lt;p&gt;This normally means that the model is too large for your system.&lt;/p&gt;

&lt;p&gt;Try a smaller model and avoid running many other applications at the same time.&lt;/p&gt;
&lt;h3&gt;
  
  
  The Answers Are Incorrect
&lt;/h3&gt;

&lt;p&gt;Local models can make mistakes. They may sound confident even when the information is wrong.&lt;/p&gt;

&lt;p&gt;Be especially careful with answers about security, medical topics, legal matters, and commands that can delete or change data.&lt;/p&gt;


&lt;div class="crayons-card c-embed"&gt;

  &lt;br&gt;
&lt;strong&gt;Security note:&lt;/strong&gt; Use a local LLM as a learning assistant, but verify important information before acting on it. Be especially careful with commands that modify or delete files.&lt;br&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  The Model Does Not Follow Instructions
&lt;/h3&gt;

&lt;p&gt;Try giving it more information.&lt;/p&gt;

&lt;p&gt;Instead of writing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Fix this.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Try:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I am new to Linux. Explain why this command failed and show me a safe way to test the fix.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clear prompts usually produce better answers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Home Lab Project Ideas
&lt;/h2&gt;

&lt;p&gt;Once everything is working, try building a small project.&lt;/p&gt;

&lt;p&gt;Some ideas include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A chatbot that explains server logs&lt;/li&gt;
&lt;li&gt;A private assistant for your home lab documentation&lt;/li&gt;
&lt;li&gt;A tool that summarizes text files&lt;/li&gt;
&lt;li&gt;A script that explains Linux commands&lt;/li&gt;
&lt;li&gt;A helper for learning Python&lt;/li&gt;
&lt;li&gt;A question-and-answer tool for your personal notes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These projects do not need to be complicated. The goal is to understand how the different pieces work together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep Your Setup Private
&lt;/h2&gt;

&lt;p&gt;Even though the model runs locally, you should still be careful about how you expose it.&lt;/p&gt;

&lt;p&gt;Do not make the Ollama API publicly available unless you understand the security risks. For a home lab, it is usually safest to keep it available only on your computer or local network.&lt;/p&gt;

&lt;p&gt;It is also a good idea to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use a password for web interfaces&lt;/li&gt;
&lt;li&gt;Keep your operating system updated&lt;/li&gt;
&lt;li&gt;Keep Docker updated&lt;/li&gt;
&lt;li&gt;Check unfamiliar commands before running them&lt;/li&gt;
&lt;li&gt;Back up important configuration files&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Is Coming Next?
&lt;/h2&gt;

&lt;p&gt;In my next post, I will explore how to run larger LLMs on a modest GPU with limited VRAM.&lt;/p&gt;

&lt;p&gt;Having a smaller GPU does not necessarily limit you to tiny models. With compressed model formats, the right settings, and a few practical techniques, you can run surprisingly capable open models without investing in expensive hardware.&lt;/p&gt;

&lt;p&gt;I will cover:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to choose a model that fits your available VRAM&lt;/li&gt;
&lt;li&gt;Practical ways to reduce memory usage&lt;/li&gt;
&lt;li&gt;How to split the workload between GPU VRAM and system RAM&lt;/li&gt;
&lt;li&gt;The balance between speed, memory usage, and answer quality&lt;/li&gt;
&lt;li&gt;Some capable open models available for home lab use&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal will remain the same: to keep the setup affordable, practical, and easy to follow.&lt;/p&gt;

&lt;p&gt;If you want to get more from a modest GPU, follow me on DEV so you do not miss the next guide.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Running a local LLM is a useful and affordable home lab project.&lt;/p&gt;

&lt;p&gt;You can start with an older computer, a small model, and Ollama. The experience may not be exactly the same as using a large online AI service, but that is part of the appeal.&lt;/p&gt;

&lt;p&gt;You get to experiment, learn how local AI works, and keep your data close to home.&lt;/p&gt;

&lt;p&gt;Start with a small model, try a few simple projects, and upgrade your hardware only when you understand what you actually need.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>homelab</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
