<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Model Architecture on Programmer.ie: Modern AI programming</title>
    <link>http://programmer.ie/tags/model-architecture/</link>
    <description>Recent content in Model Architecture on Programmer.ie: Modern AI programming</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 08 Aug 2026 15:00:00 +0100</lastBuildDate>
    <atom:link href="http://programmer.ie/tags/model-architecture/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Models From First Principles 06: Inside Tiny — Residual Blocks, Attention and Sparse Autoencoders</title>
      <link>http://programmer.ie/post/models-from-first-principles-06/</link>
      <pubDate>Sat, 08 Aug 2026 15:00:00 +0100</pubDate>
      <guid>http://programmer.ie/post/models-from-first-principles-06/</guid>
      <description>&lt;h1 id=&#34;inside-tiny-residual-blocks-attention-and-sparse-autoencoders&#34;&gt;Inside Tiny: Residual Blocks, Attention and Sparse Autoencoders&lt;/h1&gt;&#xA;&lt;p&gt;In the previous post, we built a compact recursive model around one idea:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;context + candidate + latent state&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          projection&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         reusable core&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       proposed update&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      z ← z + α · update&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            repeat&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That architecture looked more sophisticated than MR.Q, EBT or SICQL because it introduced recurrence.&lt;/p&gt;&#xA;&lt;p&gt;But the central idea of this series is that a model stops looking mysterious when we keep opening it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Models From First Principles 03: SICQL — Building a Model From Q, V and Policy Networks</title>
      <link>http://programmer.ie/post/models-from-first-principles-03/</link>
      <pubDate>Sat, 08 Aug 2026 14:44:00 +0100</pubDate>
      <guid>http://programmer.ie/post/models-from-first-principles-03/</guid>
      <description>&lt;h1 id=&#34;sicql--building-a-model-from-q-v-and-policy-networks&#34;&gt;SICQL — Building a Model From Q, V and Policy Networks&lt;/h1&gt;&#xA;&lt;p&gt;In the previous post we took the MR.Q idea and expanded it into something richer.&lt;/p&gt;&#xA;&lt;p&gt;Instead of asking one question of a shared representation, EBT asked several:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;How good is this state-action pair?      -&amp;gt; Q&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;How good is the state more generally?    -&amp;gt; V&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;What action should be preferred?         -&amp;gt; Policy&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;How much better is Q than V?              -&amp;gt; Advantage&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That already gave us a more expressive system.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Models From First Principles 01: MR.Q — Building a Neural Quality Model From Two Embeddings</title>
      <link>http://programmer.ie/post/models-from-first-principles-01/</link>
      <pubDate>Sat, 08 Aug 2026 14:33:00 +0100</pubDate>
      <guid>http://programmer.ie/post/models-from-first-principles-01/</guid>
      <description>&lt;h1 id=&#34;mrq--building-a-neural-quality-model-from-two-embeddings&#34;&gt;MR.Q — Building a Neural Quality Model From Two Embeddings&lt;/h1&gt;&#xA;&lt;p&gt;In the previous post, we established the core idea behind this series:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;A complicated model becomes understandable when you recursively decompose it into smaller models, blocks, layers and tensor operations.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;Now we build the first real model.&lt;/p&gt;&#xA;&lt;p&gt;Not a transformer.&lt;/p&gt;&#xA;&lt;p&gt;Not a giant language model.&lt;/p&gt;&#xA;&lt;p&gt;Not an agent.&lt;/p&gt;&#xA;&lt;p&gt;A scorer.&lt;/p&gt;&#xA;&lt;p&gt;We will take two embeddings:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;context embedding&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;response embedding&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;combine them, encode the relationship between them, and predict one scalar:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Models From First Principles 00: The Model Inside the Model</title>
      <link>http://programmer.ie/post/models-from-first-principles-00/</link>
      <pubDate>Sat, 08 Aug 2026 14:27:00 +0100</pubDate>
      <guid>http://programmer.ie/post/models-from-first-principles-00/</guid>
      <description>&lt;h1 id=&#34;the-model-inside-the-model&#34;&gt;The Model Inside the Model&lt;/h1&gt;&#xA;&lt;p&gt;This is the first post in &lt;strong&gt;Models From First Principles&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The previous &lt;strong&gt;PyTorch: Zero to Hero&lt;/strong&gt; series worked from the bottom up.&lt;/p&gt;&#xA;&lt;p&gt;We started with tensors.&lt;/p&gt;&#xA;&lt;p&gt;Then gradients.&lt;/p&gt;&#xA;&lt;p&gt;Then &lt;code&gt;nn.Module&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Then data pipelines, convolution, attention, debugging, performance and finally a small GPT-style language model built from scratch.&lt;/p&gt;&#xA;&lt;p&gt;That series answered:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;What are the pieces?&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;This series asks a different question:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;What happens when we start composing those pieces into increasingly sophisticated models?&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
