<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How Large Language Models Work on Signal &amp; Syntax</title><link>https://tomarcher.io/learningpaths/how-large-language-models-work/</link><description>Recent content in How Large Language Models Work on Signal &amp; Syntax</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 22 Aug 2026 06:00:00 -0700</lastBuildDate><atom:link href="https://tomarcher.io/learningpaths/how-large-language-models-work/index.xml" rel="self" type="application/rss+xml"/><item><title>Inside Attention, Part 1: The Mechanism</title><link>https://tomarcher.io/posts/inside-attention-part-1/</link><pubDate>Sat, 22 Aug 2026 06:00:00 -0700</pubDate><guid>https://tomarcher.io/posts/inside-attention-part-1/</guid><description>The transformer architecture is composed of many repeating transformer layers, or blocks. Each block contains an attention sublayer followed by a feedforward sublayer, wrapped in residual connections and layer normalization. Positional information is added to the input so the model knows what order the tokens came in. The attention sublayer sets the table for the feedforward sublayer: it does the work of looking at other tokens and deciding what information to absorb from them.</description></item><item><title>Implementing a Minimal Transformer in PyTorch</title><link>https://tomarcher.io/posts/minimal-transformer/</link><pubDate>Wed, 01 Apr 2026 06:00:00 -0700</pubDate><guid>https://tomarcher.io/posts/minimal-transformer/</guid><description>In 2017, Vaswani et al. published &amp;ldquo;Attention Is All You Need,&amp;rdquo; a paper that quietly rearranged the entire landscape of machine learning. It introduced the Transformer architecture — a design that has since become the backbone of every major language model you&amp;rsquo;ve heard of: GPT, BERT, Claude, Gemini, and dozens of others. The paper&amp;rsquo;s title was a provocation. Attention mechanisms already existed. The claim was that you could throw out recurrence entirely and let attention carry the whole load.</description></item><item><title>The Discrete Mathematics Hiding Inside LLMs</title><link>https://tomarcher.io/posts/discrete-math-in-large-language-models/</link><pubDate>Tue, 31 Mar 2026 06:00:00 -0700</pubDate><guid>https://tomarcher.io/posts/discrete-math-in-large-language-models/</guid><description>A recent LinkedIn post from Michael Palmer described how discrete mathematics is the foundation for how computers reason about problems. That thread got me thinking about just how many discrete math concepts show up inside systems that seem purely statistical. LLMs are often described in terms of neural networks, gradient descent, and probability distributions. If you&amp;rsquo;ve taken discrete mathematics and wondered what it has to do with modern AI, the answer is: more than you&amp;rsquo;d expect.</description></item><item><title>How Large Language Models (LLMs) Know Things They Were Never Taught</title><link>https://tomarcher.io/posts/how-large-language-models-know-things-they-were-never-taught/</link><pubDate>Mon, 09 Feb 2026 06:00:00 -0700</pubDate><guid>https://tomarcher.io/posts/how-large-language-models-know-things-they-were-never-taught/</guid><description>When you ask an LLM without web search enabled a question like &amp;ldquo;What happened in the news this morning?&amp;rdquo;, the LLM will respond by telling you that it doesn&amp;rsquo;t have access to current events and suggest you check a more current news source such as Reuters or Google News.
Conversely, ask an LLM with web search enabled the same question, and you receive a detailed rundown of breaking stories, political controversies, and sports news from the past 24 hours.</description></item><item><title>Temperature and Top-P: The Creativity Knobs</title><link>https://tomarcher.io/posts/temperature-top-p-creativity-knobs/</link><pubDate>Wed, 24 Dec 2025 12:00:00 -0800</pubDate><guid>https://tomarcher.io/posts/temperature-top-p-creativity-knobs/</guid><description>Every API call to ChatGPT , Claude , or any other LLM includes two parameters most people either ignore or tweak randomly: temperature and top-p. The defaults work fine for casual use, so why bother understanding them? Because these two numbers fundamentally control how your model thinks.
The temperature value determines whether the model plays it safe or takes creative risks while the top-p value decides how many options the model even considers.</description></item><item><title>How Large Language Models (LLMs) Tokenize Text: Why Words Aren't What You Think</title><link>https://tomarcher.io/posts/how-large-language-models-tokenize-text/</link><pubDate>Tue, 11 Nov 2025 06:00:00 -0700</pubDate><guid>https://tomarcher.io/posts/how-large-language-models-tokenize-text/</guid><description>When you type &amp;ldquo;I love programming&amp;rdquo; into ChatGPT, you might assume the model reads three words. It doesn&amp;rsquo;t. It reads somewhere between three and seven tokens, depending on how the text is split.
When you ask Claude to count the letters in the word &amp;ldquo;strawberry,&amp;rdquo; it often gets it wrong. The reason is simple. Claude never saw the word &amp;ldquo;strawberry&amp;rdquo; as a complete unit. It saw tokens like &amp;quot;str&amp;quot;, &amp;quot;aw&amp;quot;, &amp;quot;berry&amp;quot; and tried to reason about letters it couldn&amp;rsquo;t directly access.</description></item><item><title>How Large Language Models (LLMs) Handle Context Windows: The Memory That Isn't Memory</title><link>https://tomarcher.io/posts/how-large-language-models-handle-context-windows/</link><pubDate>Mon, 10 Nov 2025 06:00:00 -0700</pubDate><guid>https://tomarcher.io/posts/how-large-language-models-handle-context-windows/</guid><description>When you have a long conversation with a large language model (LLM) such as ChatGPT or Claude , it feels like the model remembers everything you&amp;rsquo;ve discussed. It references earlier points, maintains consistent context, and seems to &amp;ldquo;know&amp;rdquo; what you talked about pages ago.
But here&amp;rsquo;s the uncomfortable truth: the model doesn&amp;rsquo;t remember anything. It&amp;rsquo;s not storing your conversation in memory the way a database would. Instead, it&amp;rsquo;s rereading the entire conversation from the beginning every single time you send a message.</description></item><item><title>How Large Language Models (LLMs) Learn: Calculus and the Search for Understanding</title><link>https://tomarcher.io/posts/how-large-language-models-learn/</link><pubDate>Wed, 08 Oct 2025 06:00:00 -0700</pubDate><guid>https://tomarcher.io/posts/how-large-language-models-learn/</guid><description>When you interact with a large language model (LLM) such as ChatGPT or Claude , the model seems to respond instantly relative to the question&amp;rsquo;s degree of difficulty. What&amp;rsquo;s easy to forget is that every word it predicts comes from a long history of learning where billions of gradient steps have slowly sculpted its understanding of language.
Large language models don&amp;rsquo;t memorize text. They optimize it. Behind that optimization lies calculus.</description></item><item><title>How Large Language Models (LLMs) Think: Turning Meaning into Math</title><link>https://tomarcher.io/posts/how-large-language-models-think/</link><pubDate>Tue, 07 Oct 2025 06:00:00 -0700</pubDate><guid>https://tomarcher.io/posts/how-large-language-models-think/</guid><description>When you enter a sentence into a Large Language Model (LLM) such as ChatGPT or Claude , the model does not process words as language. It represents them as numbers.
Each word, phrase, and code token becomes a vector — a list of real-valued coordinates within a high-dimensional space. Relationships between meanings are captured not by grammar or logic but by geometry. The closer two vectors lie, the more similar their semantic roles appear to the model.</description></item></channel></rss>