Skip to content

feat(blog): full-transformer forward + training slideshows (and restore video embed) - #5

Merged
codemug merged 2 commits into
mainfrom
feat/llm-transformer-diagrams
Aug 1, 2026
Merged

codemug merged 2 commits into
mainfrom
feat/llm-transformer-diagrams

Conversation

@codemug

@codemug codemug commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Adds two full-transformer slideshows to the LLM Part 1 post, and restores the YouTube-embed work that was stranded when #4 merged.

Two new frame-player figures

Both render the transformer as a vertical stack of layers with a forward-flowing highlight (same FramePlayer system as the other figures: theme-aware tokens, keyboard/ARIA, reduced-motion aware).

  • forward (placed after "That is the whole forward pass") — a prediction pass: select embeddings → attention (layer 1) → feed-forward (layer 1) → the repeated middle layers → the final layer → dot-product scoring for the next token. Each step lights up in turn; the predicted token appears at the end.
  • trainpass (placed after "Now step back and notice one thing about all of this") — a training step: input + embeddings → the full layer stack → a (wrong) prediction → error vs the real next token → a teal backprop pass that nudges every weight and the input tokens' embeddings.

Also: restores the YouTube embed (was orphaned)

PR #4 was merged at the draft-flip commit, just before the video-embed commit landed, so origin/main (and the live site) still had the 4 bare links. This PR cherry-picks that commit back, so YouTubeGrid.astro and the click-to-play grid return.

Verification

npm run build clean. Built page has all 13 figures, the YouTube grid (4 video ids), draft: false, and 0 bare links. New figures are em/en-dash-free.

Note: I could not capture screenshots — this environment's headless-Chromium screenshot subsystem hangs on every page (even a trivial static one), though the DOM renders fine. Please give the two new figures a visual once-over in the browser.

🤖 Generated with Claude Code

codemug and others added 2 commits August 1, 2026 17:28
Two frame-player figures rendering the transformer as a stack of layers: `forward` walks a prediction pass (embedding lookup, attention, feed-forward, the repeated middle layers, the final layer, then dot-product scoring), and `trainpass` walks a training step (input, layers, prediction, error, then a teal backprop pass updating weights + embeddings).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the four bare 3Blue1Brown YouTube links with a responsive grid of thumbnail facades that load the cookieless player only on click (fast, private, dependency-free). Reordered into chapter order (5, 6, 7, then the TNG talk).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant