AI by Hand ✍️

AI by Hand ✍️

LLaMA 1 → 2 → 3 → 4 (May 14, 2025)

AI by Hand ✍️ Seminars

Prof. Tom Yeh's avatar
Prof. Tom Yeh
May 14, 2025
∙ Paid

Library › Seminar Series 2025

  1. Draw DeepSeek (Feb 20, 2025)

  2. LLaMA 1 → 2 → 3 → 4 (May 14, 2025)

  3. Scaling LLMs by Hand ✍️ in JAX (Aug 13, 2025)

  4. GPU by Hand ✍️ Together (Nov 2, 2025)

  5. Agent Hallucination (Nov 12, 2025)

  6. Gated Attention ~ NeurIPS 2025 Best Paper (Dec 18, 2025)

LLaMA 4, despite its lackluster reception, makes a fitting endpoint for this special seminar. I use LLaMA 1 → 2 → 3 → 4 as a backdrop to walk through the major architectural advances in Transformer models over the past few years. My goal is to use a popular open-source model family as a concrete reference point for when and why certain techniques became necessary.

Working inside a live Excel spreadsheet, we start from a minimal Transformer and evolve it step by step. As models scale, we introduce the corresponding innovations that emerged across the research community: changes in attention structure, dimension scaling, head organization, vocabulary growth, and routing mechanisms. Each idea is implemented visually and mechanically, so you can see exactly what changes in the computation and parameter layout.

Concepts like Grouped Query Attention, KV reuse, deeper stacks, and Mixture of Experts are presented as responses to real constraints (memory, latency, and training cost) rather than abstract design choices. By tying these shifts to a recognizable LLaMA timeline, the seminar helps you build an intuitive mental map of how modern Transformer architectures evolved, and how today’s frontier models are assembled from a series of practical, cumulative decisions.

The emphasis is on understanding the logic of progress, not memorizing architectures.

Recording & Workbook

Become a paid subscriber to access the full recording and the associated Excel workbook.

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2026 Tom Yeh · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture