Skip to content

feat(blog): Deploying LLMs, Part 1 — with animated transformer illustrations - #3

Merged
codemug merged 1 commit into
mainfrom
feat/llm-series-part-1
Aug 1, 2026
Merged

codemug merged 1 commit into
mainfrom
feat/llm-series-part-1

Conversation

@codemug

@codemug codemug commented Aug 1, 2026

Copy link
Copy Markdown
Owner

What

Adds "An SRE's guide to deploying Large Language Models, Part 1: understand the workload" — a ground-up tour of the transformer aimed at SREs: tokens → embeddings → attention → the feed-forward step → layers → sampling, plus three appendices with worked numeric examples.

The post ships as a draft (draft: true), so it's hidden in production builds and visible only in astro dev. Flip the flag to publish.

Illustrations

The article is carried by 11 animated, self-contained "frame-player" illustrations (think old Flash frames: play/pause/loop + prev/next). Two new components implement them:

  • AnimRuntime.astro — shared player CSS + JS, included once per page. A vanilla, dependency-free controller auto-inits every .fp figure, builds the control bar (‹ ▶ ›) + aria-live caption + progress dots, supports keyboard (←/→/space), is theme-aware via the site's design tokens, and honors prefers-reduced-motion (starts paused).
  • Fig.astro — all 11 figures, selected by a name prop: tokenloop, tokenize, config, embeddings, training, attention, ffn, nextword, temperature, whyattention, whyffn.

Verification

  • npm run build passes.
  • Rendered live in astro dev: all 11 figures initialize (control bars, progress dots, ready-flags present in the post-JS DOM).
  • Theme-aware and responsive by construction (tokens only, max-width: 100%); .prose blog styles don't clash with the figures.
  • No em/en-dashes; no MDX parse hazards.

Not included

Working docs (source markdown, plan, briefs), the downloaded model files under llm/, and the scratch preview page public/llm-illustrations.html are intentionally left untracked and out of this PR.

🤖 Generated with Claude Code

An SRE's ground-up tour of the transformer (tokens, embeddings, attention, the feed-forward step, and sampling), published as a draft post.

Adds a dependency-free frame-player illustration system:
- AnimRuntime.astro: shared player CSS + JS that auto-inits every .fp figure; theme-aware via design tokens, honors prefers-reduced-motion, keyboard- and ARIA-accessible.
- Fig.astro: 11 self-contained figures selected by a `name` prop.

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