<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Local AI on Benjamin Italiaander</title><link>https://tlnd.org/topic/ai/</link><description>Recent content in Local AI on Benjamin Italiaander</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 28 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tlnd.org/topic/ai/index.xml" rel="self" type="application/rss+xml"/><item><title>Local AI with Ollama</title><link>https://tlnd.org/Linux/ai/</link><pubDate>Sat, 28 Nov 2026 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/ai/</guid><description>&lt;h1 id="-local-ai-with-ollama"&gt;🤖 Local AI with Ollama&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://ollama.com/" class="external-link" target="_blank" rel="noopener"&gt;Ollama&lt;/a&gt; runs large language models (LLMs) on your own computer. Nothing you type leaves your machine, it works offline, and it costs nothing per question. I use it for quick questions and for code.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="1-install"&gt;1. Install&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl -fsSL https://ollama.com/install.sh &lt;span class="p"&gt;|&lt;/span&gt; sh
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This installs &lt;code&gt;ollama&lt;/code&gt; and a systemd service that listens on &lt;code&gt;http://localhost:11434&lt;/code&gt;. With an NVIDIA or AMD graphics card it uses the GPU automatically.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;systemctl status ollama
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama --version
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="2-get-a-model-and-talk-to-it"&gt;2. Get a model and talk to it&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama pull qwen3:8b &lt;span class="c1"&gt;# download a model (about 5 GB)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama run qwen3:8b &lt;span class="c1"&gt;# chat in the terminal; /bye to stop&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama run qwen3:8b &lt;span class="s2"&gt;&amp;#34;Explain what a TOTP code is in two sentences.&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama list &lt;span class="c1"&gt;# models on disk&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama ps &lt;span class="c1"&gt;# models in memory, and whether they run on the GPU&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama rm ministral-3:3b &lt;span class="c1"&gt;# remove a model&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="3-which-model-fits"&gt;3. Which model fits?&lt;/h2&gt;
&lt;p&gt;The model has to fit in your &lt;strong&gt;video memory (VRAM)&lt;/strong&gt;, otherwise it runs (much slower) on the CPU. A rough guide for the usual 4-bit models:&lt;/p&gt;</description></item></channel></rss>