<?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: Argoness Vane</title>
    <description>The latest articles on DEV Community by Argoness Vane (@argoness-prime).</description>
    <link>https://dev.to/argoness-prime</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%2F4267830%2F4c4a5443-6b09-4935-8948-6afef5dc7deb.jpg</url>
      <title>DEV Community: Argoness Vane</title>
      <link>https://dev.to/argoness-prime</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/argoness-prime"/>
    <language>en</language>
    <item>
      <title>Exact GQA KV-Cache + ClassLRU MoE Math for Running 35B Models on 16 GiB VRAM</title>
      <dc:creator>Argoness Vane</dc:creator>
      <pubDate>Thu, 26 Nov 2026 23:42:09 +0000</pubDate>
      <link>https://dev.to/argoness-prime/exact-gqa-kv-cache-classlru-moe-math-for-running-35b-models-on-16-gib-vram-3066</link>
      <guid>https://dev.to/argoness-prime/exact-gqa-kv-cache-classlru-moe-math-for-running-35b-models-on-16-gib-vram-3066</guid>
      <description>&lt;p&gt;Most OOM crashes when running 30B–35B Mixture-of-Experts models (&lt;code&gt;Qwen3-30B-A3B&lt;/code&gt;, &lt;code&gt;Qwen3.6-35B-A3B&lt;/code&gt;) on &lt;strong&gt;16 GiB consumer GPUs&lt;/strong&gt; come from two miscalculations:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Forgetting ~1.25 GiB of OS compositor + CUDA workspace headroom.&lt;/li&gt;
&lt;li&gt;Offloading whole transformer layers (&lt;code&gt;-ngl&lt;/code&gt;)—which pushes latency-critical attention projections over PCIe—instead of keeping &lt;strong&gt;100% of attention + GQA KV cache in VRAM&lt;/strong&gt; and offloading &lt;strong&gt;only cold routed expert FFN tensors&lt;/strong&gt; (&lt;code&gt;-cmoe&lt;/code&gt; / &lt;code&gt;--moe-cache-mib&lt;/code&gt; in &lt;code&gt;llama.cpp v1.0&lt;/code&gt; or &lt;code&gt;--n-cpu-moe&lt;/code&gt;).&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The Exact 16 GiB Split
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Attention + Shared Routers + Quantized KV (&lt;code&gt;--cache-type-k f8_e4m3 --cache-type-v q4_1 -np 1&lt;/code&gt;):&lt;/strong&gt; Stays 100% resident in GDDR6/GDDR7.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cold Routed Experts:&lt;/strong&gt; Because only ~3B parameters activate per token, caching hot experts in VRAM (&lt;code&gt;--moe-cache-mib 6400&lt;/code&gt;) while streaming cold experts from dual-channel DDR5 sustains &lt;strong&gt;55–73+ tok/s&lt;/strong&gt; at 16K–32K context without OOM cliffs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Embeddings / Rerankers:&lt;/strong&gt; Keep RAG encoders on CPU INT8 or NPU (&lt;code&gt;0 MiB&lt;/code&gt; GPU VRAM) so they never fragment the KV allocation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Try the Open-Core Planner CLI
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install git+https://github.com/argoness-prime/silicon-tuner.git
silicon-tuner-core --help
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MIT Open-Core VRAM &amp;amp; MoE Calculator:&lt;/strong&gt; &lt;a href="https://github.com/argoness-prime/silicon-tuner" rel="noopener noreferrer"&gt;https://github.com/argoness-prime/silicon-tuner&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full Hybrid Silicon Tuner ($9), Iron Veil Agent Firewall ($5), &amp;amp; Same-Day $5 Express Bugfix/Config Triage:&lt;/strong&gt; &lt;a href="https://argoness-prime.github.io/veristrux/" rel="noopener noreferrer"&gt;https://argoness-prime.github.io/veristrux/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
    <item>
      <title>Cutting Claude Code &amp; Cursor Read-Context Burn by 40-70% with a &lt;5ms Python PreToolUse Guard</title>
      <dc:creator>Argoness Vane</dc:creator>
      <pubDate>Thu, 26 Nov 2026 23:33:59 +0000</pubDate>
      <link>https://dev.to/argoness-prime/cutting-claude-code-cursor-read-context-burn-by-40-70-with-a-5ms-python-pretooluse-guard-5bl2</link>
      <guid>https://dev.to/argoness-prime/cutting-claude-code-cursor-read-context-burn-by-40-70-with-a-5ms-python-pretooluse-guard-5bl2</guid>
      <description>&lt;p&gt;Two silent failure modes hit heavy &lt;strong&gt;Claude Code&lt;/strong&gt; and &lt;strong&gt;Cursor&lt;/strong&gt; workflows on production repositories:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Unbounded 800-line file reads busting prompt-cache budgets&lt;/strong&gt; when the agent only needed a 35-line function.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Untrusted third-party repositories smuggling instructions&lt;/strong&gt; inside &lt;code&gt;.claude/&lt;/code&gt;, &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt;, &lt;code&gt;.cursorrules&lt;/code&gt;, active &lt;code&gt;.git/hooks/*&lt;/code&gt;, or invisible Unicode Tag blocks (&lt;code&gt;U+E0000&lt;/code&gt;–&lt;code&gt;U+E007F&lt;/code&gt;).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To solve both without adding an LLM judge or confirmation popups on normal test runs, we built &lt;strong&gt;Iron Veil&lt;/strong&gt;—a deterministic &lt;code&gt;&amp;lt;5 ms&lt;/code&gt; pure Python 3.10+ stdlib guard.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. AST Symbol Windowing Instead of Blind Full-File Dumps
&lt;/h3&gt;

&lt;p&gt;When an agent issues an unwindowed read on a source file over 350 lines, returning a compact Python AST symbol map (&lt;code&gt;Lstart-Lend&lt;/code&gt;) + 50-line header preview lets the model jump straight to the exact target symbol on the next call—cutting read-context bloat by &lt;strong&gt;40–70%&lt;/strong&gt; with zero accuracy loss.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Quarantining Priority-1 Repo Traps Before Opening Unfamiliar Code
&lt;/h3&gt;

&lt;p&gt;Before opening an unfamiliar repository in a coding agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Install via Claude Code Plugin Marketplace:&lt;/span&gt;
/plugin marketplace add argoness-prime/iron-veil

&lt;span class="c"&gt;# Or run the 11-vector open-core sanitizer &amp;amp; repo quarantiner via pip:&lt;/span&gt;
pip install git+https://github.com/argoness-prime/iron-veil.git
iron-veil-core selftest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MIT Open-Core Sanitizer &amp;amp; Repo Quarantiner:&lt;/strong&gt; &lt;a href="https://github.com/argoness-prime/iron-veil" rel="noopener noreferrer"&gt;https://github.com/argoness-prime/iron-veil&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full &lt;code&gt;PreToolUse&lt;/code&gt; Firewall + Token Miser Pro Kit ($5 one-time) &amp;amp; Same-Day $5 Express Bugfix/Config Triage:&lt;/strong&gt; &lt;a href="https://argoness-prime.github.io/veristrux/" rel="noopener noreferrer"&gt;https://argoness-prime.github.io/veristrux/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>security</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
