<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Llm on homelab</title>
    <link>https://homelab.nbkelley.com/tags/llm/</link>
    <description>Recent content in Llm on homelab</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 02 May 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://homelab.nbkelley.com/tags/llm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Wiki Pipeline Scripts</title>
      <link>https://homelab.nbkelley.com/docs/ai/wiki-pipeline-scripts/</link>
      <pubDate>Sat, 02 May 2026 00:00:00 +0000</pubDate>
      <guid>https://homelab.nbkelley.com/docs/ai/wiki-pipeline-scripts/</guid>
      <description>&lt;h1 id=&#34;wiki-pipeline-scripts&#34;&gt;Wiki Pipeline Scripts&lt;a class=&#34;anchor&#34; href=&#34;#wiki-pipeline-scripts&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;what-was-established&#34;&gt;What Was Established&lt;a class=&#34;anchor&#34; href=&#34;#what-was-established&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Eight Python scripts in &lt;code&gt;/opt/wiki/homelab/scripts/&lt;/code&gt; implement the full wiki pipeline: file conversion, document ingestion, conversation crystallization (standard, DeepSeek, and Claude formats), shared LLM infrastructure, wiki health-checking, and knowledge-graph integration. All scripts were ported from the work wiki pipeline (itself developed 2026-04-21 → 2026-04-26) with homelab-specific infrastructure baked in.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;crystallize.py&lt;/code&gt; (Claude format) uses a two-step LLM approach: gemma4:e2b cleans, qwen3.6:35b crystallizes. &lt;code&gt;crystallize_deepseek.py&lt;/code&gt; skips gemma — JSON parsing is handled deterministically in Python (&lt;code&gt;load_conversation&lt;/code&gt; + &lt;code&gt;_clean_text&lt;/code&gt;), so only qwen is needed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>wiki-llm</title>
      <link>https://homelab.nbkelley.com/docs/machines/wiki-llm/</link>
      <pubDate>Sun, 26 Apr 2026 00:00:00 +0000</pubDate>
      <guid>https://homelab.nbkelley.com/docs/machines/wiki-llm/</guid>
      <description>&lt;h1 id=&#34;wiki-llm&#34;&gt;wiki-llm&lt;a class=&#34;anchor&#34; href=&#34;#wiki-llm&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;what-was-established&#34;&gt;What Was Established&lt;a class=&#34;anchor&#34; href=&#34;#what-was-established&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Dedicated Ubuntu 24.04 VM for hosting the homelab wiki system and Claude Code sessions. Chosen as a VM rather than an LXC for stronger isolation (wiki infrastructure handles credentials and embeddings).&lt;/p&gt;&#xA;&lt;h2 id=&#34;deployment&#34;&gt;Deployment&lt;a class=&#34;anchor&#34; href=&#34;#deployment&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Detail&lt;/th&gt;&#xA;          &lt;th&gt;Value&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Hostname&lt;/td&gt;&#xA;          &lt;td&gt;wiki-llm&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;IP&lt;/td&gt;&#xA;          &lt;td&gt;192.168.1.206&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;VLAN&lt;/td&gt;&#xA;          &lt;td&gt;Gandalf (192.168.1.x)&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;OS&lt;/td&gt;&#xA;          &lt;td&gt;Ubuntu 24.04&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;CPU&lt;/td&gt;&#xA;          &lt;td&gt;2 cores&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;RAM&lt;/td&gt;&#xA;          &lt;td&gt;4 GB&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Type&lt;/td&gt;&#xA;          &lt;td&gt;VM (Proxmox)&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;SSH user&lt;/td&gt;&#xA;          &lt;td&gt;iluvatar (sudo, PermitRootLogin no)&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;access&#34;&gt;Access&lt;a class=&#34;anchor&#34; href=&#34;#access&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;VS Code Remote SSH&lt;/strong&gt;: Primary method for Claude Code sessions — VS Code connects to wiki-llm via remote SSH, giving Claude Code native filesystem access to &lt;code&gt;/opt/wiki/homelab/&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Direct SSH&lt;/strong&gt;: &lt;code&gt;ssh iluvatar@192.168.1.206&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;wiki-file-structure&#34;&gt;Wiki File Structure&lt;a class=&#34;anchor&#34; href=&#34;#wiki-file-structure&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/opt/wiki/&#xA;  homelab/        ← git repo, all homelab wiki pages and skills&#xA;  work/           ← git repo, work/princelobel wiki + pipeline scripts&#xA;  projects/       ← git repo, projects wiki (planned)&#xA;  personal/       ← git repo, personal wiki (Gemma-only)&#xA;  raw-sources/    ← symlink to /mnt/wiki-nas/LLMWiki&#xA;  skills-reference/  ← clone of vanillaflava/llm-wiki-claude-skills (reference only)&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Each wiki directory is an independent git repository (&lt;code&gt;git init&lt;/code&gt;&amp;rsquo;d) for clean version history per namespace.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Troubleshooting DeepSeek Language Switching</title>
      <link>https://homelab.nbkelley.com/docs/ai/deepseek_language_switching/</link>
      <pubDate>Tue, 25 Mar 2025 00:00:00 +0000</pubDate>
      <guid>https://homelab.nbkelley.com/docs/ai/deepseek_language_switching/</guid>
      <description>&lt;h1 id=&#34;troubleshooting-deepseek-language-switching&#34;&gt;Troubleshooting DeepSeek Language Switching&lt;a class=&#34;anchor&#34; href=&#34;#troubleshooting-deepseek-language-switching&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;what-was-established&#34;&gt;What Was Established&lt;a class=&#34;anchor&#34; href=&#34;#what-was-established&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Local DeepSeek models may intermittently switch from English to Chinese mid-response. This is typically caused by training bias (heavy Chinese dataset influence), loss of context during long conversations, or mixed-language input prompts.&lt;/p&gt;&#xA;&lt;h2 id=&#34;key-decisions&#34;&gt;Key Decisions&lt;a class=&#34;anchor&#34; href=&#34;#key-decisions&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;To maintain English-only responses, the following parameters and prompting strategies should be applied:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Explicit Instruction&lt;/strong&gt;: Always include a system-level or initial prompt instruction to respond exclusively in English.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Temperature Control&lt;/strong&gt;: Use lower temperature settings (e.g., &lt;code&gt;0.3&lt;/code&gt;) to make the model more deterministic and less likely to drift.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Repetition Penalty&lt;/strong&gt;: Implement a &lt;code&gt;repetition_penalty&lt;/code&gt; (e.g., &lt;code&gt;1.2&lt;/code&gt;) to discourage the model from falling into repetitive patterns that might trigger language switching.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;current-configuration&#34;&gt;Current Configuration&lt;a class=&#34;anchor&#34; href=&#34;#current-configuration&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;system-message-pattern&#34;&gt;System Message Pattern&lt;a class=&#34;anchor&#34; href=&#34;#system-message-pattern&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;p&gt;When using APIs or local inference engines that support system roles:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
